Jump to content

Invalid token when I try to delete a product from the cart!


Jikdor
 Share

Recommended Posts

Hello, I'm having a weird problem with one of the templates i bought from prestastore. When i try to delete a product from the cart, when on the index page (homefeatured) or from the “Your Shopping Cart” (order.php) , the token in the link is missing for some reason, and I get a error saying “Invalid Token” and can not delete the item.

cart.php?delete&id_product=42&ipa=0&token;=

When I click the delete button again, or on any other part of the site, the link is right with the token and workes without problems.

cart.php?delete&id_product=42&ipa=0&token=78470010fdd3e1c781d6b83993d962ca

Also, when I click on “Add to cart” on a product on the homefeatured products on the index page, it does not do the normal animation where you see the item get dropped in the cart, it takes me directly to order.php and the item is in it. This workes perfectly fine when adding a product from any of the categories or on the product page, but not from the home featured products. Can't figure out WHY it does this, since the links are exactly the same.

When I change back to prestashops original template, everything works fine as it should. I have been comparing the tpl files but can not find where anything is different that is coursing this behavior and its driving me crazy. I am using 1.3.7. Have anyone had this problem before and knows how to figure it out?! Help would be very much appreciated.

41067_IknzYFLga3tIMdQAIkOl_t

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More