Product custom options are not displaying at cart page
-
16-10-2019 - |
Question
I am facing a strange issue with my magento installation is with when i add values for my custom option and click on add to cart the filled custom values are not displaying with particular product on cart page, although when i edit the cart product and refill the custom option values the options displays properly in the cart i am not getting this because i haven't touch the code for this and never installed a extension who could rewrite the functionality below is my site url for you to check out what is going on
http://paperhug.instantwebsitecloud.com/
Also i have checked this on another magento installation where this working fine i am working on C.E. 1.7.2
Solution
It looks like your problem is on the product page, not in the cart. In order to add option data that page needs to submit a form, but the Add to Cart button is just doing a redirect on click
onclick="setLocation('http://paperhug.instantwebsitecloud.com/index.php/checkout/cart/add/uenc/aHR0cDovL3BhcGVyaHVnLmluc3RhbnR3ZWJzaXRlY2xvdWQuY29tL2luZGV4LnBocC9ncmVldGluZy1jYXJkcy9tb3RoZXJzLWRheS8xLWhvdXItZ3JlZXRpbmctY2FyZHMuaHRtbA,,/product/2/')"
should be:
onclick="productAddToCartForm.submit(this)"
It may have gotten changed when you were working on the add to cart buttons for the category pages.