Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Add to Cart Button Redirecting Users to Paypal Login Screen & Not Adding to Cart
- This topic has 3 replies, 3 voices, and was last updated 9 years, 9 months ago by wpCommerce.
-
AuthorPosts
-
January 27, 2015 at 2:59 pm #12127nickiceeMember
I’m using tablepress for my add to cart buttons because I sell workshops (one workshop per page) with many sessions for each workshop. I use table press to separate out the sessions and each row has an add to cart button for that particular session. Every once in a while, the first row in each table makes the Add to Cart Button not work and instead directs the user to their Paypal log in screen rather than adding the product to the cart. If I change the order of the items in the table, it’s always the add to cart button in the first row of the table whose add to cart button doesn’t work.
Here is the page where it is currently not working: [http://www.lawritersgroup.com/monthly-writers-room-la-writers-group/]
I’ve checked my shortcode and it is accurate. I’ve tried deleting the product and creating a new one, nothing. I’ve tried deleting that row and adding typing it in fresh and nothing. I’ve tried copying the code of a working button and nothing.
January 28, 2015 at 12:00 am #68299adminKeymasterThat means you have an HTML error on that page (most likely in the table code). Or it is missing a HTML end tag somewhere. So that error is breaking the add to cart form’s HTML code.
Crete a brand new test page then put all the shortcodes there to make sure it works. Then add the table to that page to see if it work. Then add other components to that page. This way you will be able to see which component has the HTML error and breaks the button.
February 5, 2015 at 3:50 pm #68300nickiceeMemberI figured it out. Somehow, there was some Paypal form action code on my page popping in just above the TablePress table that contains my add to cart buttons. You might want to test this because when I created this page, I started a brand new page (I did not copy it from another page) so the only way I can think that the form action code got in there is related to the add to cart button shortcode. I don’t know if this makes any sense programmatically but I definitely didn’t type it in. All I did was add the shortcode for the table. This is the page, in case you want to look at it: [http://www.lawritersgroup.com/monthly-writers-room-la-writers-group/]
February 5, 2015 at 11:58 pm #68301wpCommerceModerator@nickicee, eStore doesn’t actually insert HTML code directly. The content is rendered via shortcodes which can only get filtered on the front end.
-
AuthorPosts
- You must be logged in to reply to this topic.