View Full Version : EE Commerce - PayPal setup question
Mickey
22nd of April 2003 (Tue), 13:16
I'm trying to get my PayPal template set up but I'm not sure how to test it to make sure it works properly. Is the only way to set up a new account using a friend's credit card number and try out a payment (then pay him/her back of course)?
I think I've got it set up the way I want, but I have a client who's interested in ordering a print and I want to verify everything's working first. One thing I'm not clear on is when I click on "checkout", it says the currency is "US Dollars" under Payment Details even though I've set up my PayPal account to use Canadian Funds as my default currency. Does anyone know how to get this to display (and actually charge in) my Primary Currency of Canadian Dollars?
Thanks,
Michael
Mickey
23rd of April 2003 (Wed), 11:30
I found a section on PayPal that allows you to "create a button" which gives you the code to add your own "add to cart" button. It allowed me to enter "Canadian Dollars" as the currency and here's the code it spat out:
I just don't know how/where to add this info in the "paypalcart.php" file.
Any help would be appreciated,
Michael
Pekka
23rd of April 2003 (Wed), 13:38
Sorry for late reply, I disassembled by computer room and brought in a new table system and a light table.
First of all, if you use mail in ee commerce download a bugfixed version of mail.php from http://photography-on-the.net/gallery/mail.zip
To add the currency type:
Add your line
to "paypalcart.php" right after you see a "?>" preceeding a lot of "hidden" lines like
input_eecommerceform ("hidden", "amount", $price);
E.g. starting from line 102
input_eecommerceform ("hidden", "cmd", "_cart");
input_eecommerceform ("hidden", "business", $seller_email);
input_eecommerceform ("hidden", "item_name", $itemname);
input_eecommerceform ("hidden", "item_number", $code);
input_eecommerceform ("hidden", "amount", $price);
input_eecommerceform ("hidden", "image_url", "http://photography-on-the.net/ee/eecommerce.gif");
?>
Mickey
4th of May 2003 (Sun), 21:18
Thanks Pekka! I entered that line and it now works great!
I now have one more complex question that I hope you'll be able to answer. It seems Paypal doesn't have a way of properly charging Canadian taxes so I'm trying to build this into my own order form. I know nothing about PHP so adding this is proving rather difficult for me. What I'd like to do is add another dropdown menu that has "Shipping Location" options where the user could choose if they're in the United States or a particular Canadian province. This info would tell me what percentage of taxes to add to the original price as well as the shipping charges.
If you have the time, could you please take a look at my code to see what I need to add or change to get this to work. Right now it gives me a Parse Error on line 56. Here's a link to a .txt file for easier reading: http://www.morpheusmultimedia.com/gallery/ee_commerce/paypalcart_error.txt
I'd appreciate it if anyone could shed some light on my (probably many) coding errors.
Thanks,
Michael
P.S. Do you know how to remove the line in the PayPal shopping cart page that says "Shipping, tax, and handling costs will be calculated upon checkout." I don't want this to show up because the price displayed in the shopping card will already include the taxes and shipping costs.
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.