View Single Post
Old 10-10-2017, 02:22 PM
ogrimany ogrimany is offline
Join Date: Aug 2017
Posts: 1

Default Add 2 Cart Product Variants Error

Hello everyone,

Working with X-Cart 4.7.7.

I'm trying to implement a solution that allows customers to add product variants directly from the product list page. I've enabled Buy Now in the product list page and I put the {include_cache file="customer/main/buy_now.tpl" line in a smarty foreach loop so that it creates a buy now button for each product variant. When ajax finishes it's like the variables in the foreach loop disappear and I get an error when I try to add more of that variant to the cart. Can anyone tell me what's happening and what I can do to fix it?

Orlando Grimany
Web Developer
Reply With Quote