ednukros Posted August 30, 2023 Share Posted August 30, 2023 I have created a new template where I show a thumbnail of the product to be placed next to the tabs that are displayed below the product. This miniature has an add to cart button. What I try is to add the product to the cart based on the id of the product attribute but it doesn't work. Somebody could help me? {block name='product_buy'} <form action="{$urls.pages.cart}" method="post" id="add-to-cart-or-refresh"> <input type="hidden" name="token" value="{$static_token}"> <input type="hidden" name="id_product" value="{$product.id_product_attribute}" id="product_page_product_id"> <input type="hidden" name="id_customization" value="{$product.id_product_attribute}" id="product_customization_id"> {block name='product_add_to_cart'} {include file='catalog/_partials/product-add-to-cart2.tpl'} {/block} {block name='product_refresh'}{/block} </form> {/block} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now