<< Home

ADD TO CART does not add the item to the cart

Use this forum for issues related to TriniTronic's Nice PayPal Button Plugin.

Moderator: jamesSBT

Re: ADD TO CART does not add the item to the cart

Postby wayneft » Sun May 01, 2011 4:04 pm

Michael,
I decided to email PayPal also to see if they had any ideas. They don't believe its an "international" issue but something else. Do you know if what they are referring to below is due to the plugin? Here was their response...

Hello Wayne,

This is not a country issue but an issue with how the browser is interpreting the redirect. For example in IE 7 the redirect works but in FireFox 3.5 it does not and I get the PayPal homepage. This is because the form post url that is being used is not the full path and one browser does not allow PayPal to forward the information where the other does. For example this is the first line of the Add to Cart button on the page you referenced:
<form action="https://www.paypal.com" method="post" target="_self">

It should be directing to
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_self">

By replacing the domain with the full path url it will resolve the issue referenced.

Sincerely,
Justin
Merchant Technical Services
PayPal, an eBay Company
wayneft
Tropos
Tropos
 
Posts: 10
Joined: Tue Mar 08, 2011 9:34 am

Re: ADD TO CART does not add the item to the cart

Postby Michael » Mon May 02, 2011 9:27 am

Hi,

- I use the paypal profile for shipping based off total weight of items (looks like that is not a problem from what I read)


This is no problem. You simply include the item weight (in lbs.) in the button tag and leave the shipping field empty.

Syntax
Code: Select all
{nicepaypal:button type|amount|item name|item number|shipping|shipping2|tax|item quantity|weight|option1|option2}


Example
Code: Select all
{nicepaypal:cart|10.00|Circuit Board|SKU 123456||||1|.75}


- I use the paypal profile for tax rate to only be applied for my home state (again looks like that is not a problem)


This is the same as the shipping, simply leave the tax field blank.

Syntax
Code: Select all
{nicepaypal:button type|amount|item name|item number|shipping|shipping2|tax|item quantity|weight|option1|option2}


Example
Code: Select all
{nicepaypal:cart|10.00|Circuit Board|SKU 123456||||1|.75}


- I use paypal to track my inventory and alert me when the item is low on stock and I do not allow the buyer to checkout if the item is out of stock. Tracking inventory is the most important aspect for me and I couldn't tell if this was available or not from that link.


I am not sure if the standard buttons will work with PayPal's inventory control. But, I don't think they do.

~ Best regards
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: ADD TO CART does not add the item to the cart

Postby wayneft » Mon May 02, 2011 9:39 am

Thanks Michael but what do you think about PayPal's response that I posted?
wayneft
Tropos
Tropos
 
Posts: 10
Joined: Tue Mar 08, 2011 9:34 am

Re: ADD TO CART does not add the item to the cart

Postby Michael » Mon May 02, 2011 10:03 am

Sorry Wayne,

I completely missed that last post. I am looking into it now.

~ Best
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: ADD TO CART does not add the item to the cart

Postby Michael » Mon May 02, 2011 10:20 am

Hi Wayne,

I think they might be correct. After looking the extension's script, I found a discrepancy.

Here is some of the form code for the standard button and hosted button generation, that designates the submission URL.

Standard Button
Code: Select all
$insert = '<form action="'.$this->paypal_url.'/cgi-bin/webscr" method="post" target="'.$this->open_window.'">


Hosted Button
Code: Select all
$insert = '<form action="'.$this->paypal_url.'" method="post" target="'.$this->open_window.'">


You can clearly see that the "/cgi-bin/webscr" portion of the URL is missing from the hosted button code.

The only thing that has me wondering is that I did test this for you on IE, FireFox, Safari, Opera and Chrome. All of my tests came back positive. So, if the theory is true, this anomaly must be localized to a specific browser version and not just to the browser make.

I will build a new version of the extension and send it to you. Hopefully, that will do the trick.

~ All the best
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: ADD TO CART does not add the item to the cart

Postby Michael » Mon May 02, 2011 11:08 am

Hi Wayne,

I just emailed you a new revision of the extension with PayPal's recommended alterations. I gave it a quick test and the plugin appears to be operating correctly.

To upgrade, uninstall the original extension and install the new one. You will NOT need to reinsert your buttons. However, you will need to enable the plugin and reenter your seller's paypal account email and other plugin parameters.

Let me know if the new revision works for you or if you have any questions regarding this process.

Thanks again for your patience and the opportunity to work with you on this matter.

~ All the best
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: ADD TO CART does not add the item to the cart

Postby wayneft » Tue May 03, 2011 4:50 pm

Hi Michael,
I had a friend of a friend who is in Germany at the moment try my buttons prior to installing the patch you sent. He was using Firefox 3.6.17 and he was able to consistently reproduce the problem. I installed the patch and had him retry it and it looks like it has fixed the problem. Just thought I'd give you an update. Thanks for all the help.

Wayne
wayneft
Tropos
Tropos
 
Posts: 10
Joined: Tue Mar 08, 2011 9:34 am

Re: ADD TO CART does not add the item to the cart

Postby Michael » Wed May 04, 2011 7:47 am

Hi Wayne,

That is such good news! I am very happy that we were able to get to the bottom of this. Thanks for the tip from PayPal tech support. I think, I would not have detected the discrepancy if it had not been for your diligence.

If you need anything else, please let me know.

Good luck on you future endeavors and have a great day!

~ All the best
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Re: ADD TO CART does not add the item to the cart

Postby Adam Brown » Fri Sep 30, 2011 3:12 pm

I was having this same problem! I am so glad I ran into this post! My blog on travel (more specifically travel medical insurance) has some miscellaneous goodies you can buy and it was not working for the longest time, but now we're good! You are doing great things with this site! Thanks! :)
Last edited by Adam Brown on Thu Oct 20, 2011 7:08 pm, edited 2 times in total.
Adam Brown
Tropos
Tropos
 
Posts: 6
Joined: Thu Sep 29, 2011 12:58 pm

Re: ADD TO CART does not add the item to the cart

Postby Michael » Fri Sep 30, 2011 5:20 pm

I am glad that you got the issue sorted out. And thanks for the kudos!

~ Enjoy
Contributed by Michael Babcock
User avatar
Michael
Cosmos
Cosmos
 
Posts: 2478
Joined: Thu Aug 14, 2008 12:30 am

Previous

Return to Joomla: Nice PayPal Button

Who is online

Users browsing this forum: No registered users and 1 guest