The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
2CO not working...help!
Author Message
Reply with quote
Post 2CO not working...help! 
Hi!

Trying to set up the 2CO: I read the sticky--> does not work

I tried the link that 2CO provided --> does not work....

Can someone please tell me what is the exact link we should use ?

We have a 2CO # in the 30000 but seem to be on the 2nd server..

https://www.2checkout.com/2co/buyer/purchase

Thank you!

Dan

View user's profile Send private message
Reply with quote
Post  
2CO keeps changing things on their end and have not been forthcoming to the developers information to work out the problems.
I wish I could help, but this is a problem with what 2CO is doing on their API.
I have had a request in to 2CO for a week now with no response.
I'm sorry I can't be of more help.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Okay, I have been in touch with 2Checkout and they aren't all that helpful.
And their documentation isn't all that great.
But, I think I know what needs to be done.
In the 2Checkout_order_lib.pl you need to add a couple variables in the "hidden" fields area of
the "sub print_2checkout_SubmitPage" subroutine.

Add:
Code:

<INPUT TYPE=HIDDEN NAME=c_prod VALUE=\"AgoraCart Order\">
<INPUT TYPE=HIDDEN NAME=id_type VALUE=\"2\">


The URL to use for 2Checkout is:
https://www.2checkout.com/2co/buyer/purchase

Now at 2Checkout, you need to set up your database in there with the product, "AgoraCart Order". As their documentation says:
Quote:
The c_prod value should match whatever external vendor id is recorded in the 2Co system. The external vendor id maybe a cart assigned product id or the vendors own internal product id as long as the value matches the value stored in the 2Co system.


HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Did anybody find a fix to the "Invalid Parameter" problem with 2CO V2?

I saw few proposed fixes, but none of them seemed to work well.

I am still on V1 of 2CO, but have a customer who just signed up with them and he only has the V2. I can't get his store to work!

Any help would be appreciated.

Thanks

Kasia

View user's profile Send private message
Reply with quote
Post  
Hi, I went through all the steps outlined above but still can't get 2CO to work. I thought my $49 signup fee was going to give me peace of mind rather than this terrible headache.

In 2Checkout_order_lib.pl, I added the following as outlined above:
<INPUT TYPE=HIDDEN NAME=c_prod VALUE=\"AgoraCart Order\">
<INPUT TYPE=HIDDEN NAME=id_type VALUE=\"2\">

However, the 2CO guide says the following about the id_type:
# 1 is defined as vendor_product_id
# 2 is defined as assigned_product_id

Shouldn't we be using "1" instead of "2"?

I then created a product name = "AgoraCart Order" with product id = "AgoraCart Order" in the 2CO database. In the Agora Store Manager, i entered my vendor id in the "Gateway Username" field in the "shipping settings", and then entered the link to 2CO:
https://www.2checkout.com/2co/buyer/purchase

So why do i keep getting an "Invalid Paramter" message every time i try to process my order?

Thanks in advance for your help, i've spent hours and hours without any luck.
Ahmed

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Reply with quote
Post  
Ok, here is the fix. After going through some of the posts i went back to the Store Manager and edited the store settings to remove the "$" sign. Everything worked fine with 2Checkout afterwards.

But now all my prices in the products' pages are displayed without a "$" sign. Is there any fix that would allow "$" signs to be displayed and at the same time make 2Checkout work?

Thanks
Ahmed

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Reply with quote
Post  
As i played around with the code i found a solution to the problem that i posted earlier. To get 2Checkout to work and still be able to display the "$" signs in your products' pages and cart, do the following:

- First disable the "$" sign from the "Main AgoraCart Store Settings". This will display all prices on your website without the "$" sign. Now we have to add the "$" sign manually in our pages:

- Edit the following line in ProductPage.inc:
<FONT FACE="ARIAL" SIZE="2" color="#FF0000">%%price%%</font>
To:
<FONT FACE="ARIAL" SIZE="2" color="#FF0000">$ %%price%%</font>

- Search for all lines that contain the following line in agora_order_lib.pl:
print "<TD $order_item_def>$cart_font_style $val</FONT></TD>\n";
Change them to:
print "<TD $order_item_def>$cart_font_style \$ $val</FONT></TD>\n";

- Change the following line:
<TD $order_item_def>$cartnum_font_style $price</FONT></TD>
To:
<TD $order_item_def>$cartnum_font_style \$ $price</FONT></TD>

- Change the following line:
print "<TD $order_item_def>$cartnum_font_style
$grand_total</FONT></TD>\n";
To:
print "<TD $order_item_def>$cartnum_font_style
\$ $grand_total</FONT></TD>\n";

If you are using the code that generates the cart summary in your pages, then edit the following code:
"Subtotal: " . &display_price($total_cost) .
To:
"Subtotal: \$" . &display_price($total_cost) .

This should put the "$" sign almost every where you need it on your website. However, I couldn't figure out an easy way to add the "$" sign to the Price column in the shopping cart.

I tested all these changes with 2Checkout and everything worked fine. Please let me know if the suggestions i provided didn't work.

Cheers! Very Happy
Ahmed

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Reply with quote
Post  
Another fix to what i mentioned at the end of my last post. To display the "$" sign in the cart, edit agora_order_lib.pl by changing:
print qq!<TD $cart_item_def>$cart_font_style$lineTotal</FONT></TD>\n!;

To:

print qq!<TD $cart_item_def>$cart_font_style \$ $lineTotal</FONT></TD>\n!;

Cheers!
Ahmed

View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Reply with quote
Post  
Thank you! Thank you! Thank you!

It worked! Very Happy

Kasia

View user's profile Send private message
Reply with quote
Post  
Great job, Ahmed!


You've saved all these 2Checkout users!!



_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
I went through all of this and I still get the parameter error.

View user's profile Send private message Send e-mail
Reply with quote
Post  
Do you have a 2CO account? If you don't you will probably always get the parameter error.
HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
{sigh}

yes.

View user's profile Send private message Send e-mail
Reply with quote
Post  
SNT,
Sorry, I had to ask...
As is mentioned earlier in the thread, 2CO changes things and hasn't been very forthcoming to developers. You might want to check with them as to if they've changed the URLs or if there are new parameters that they need.

Not much help, but hopefully, you can find something out from them.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
They are not of much help either.

So no one using Agora can use 2CO?

-SNT

View user's profile Send private message Send e-mail
Reply with quote
Post  
SNT,
I don't know... I would just say to carefully go through EVERYTHING pertaining to 2CO and see if you might find a clue somewhere.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Ok, thanks for the replies.

-SNT

View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum