Rissinko Posted February 13, 2016 Share Posted February 13, 2016 Hi guys, Maybe someone here can help me with this problem.. I want create on product-list.tpl hover effect which will show to customer all sizes of product and add to cart button. So when customer will go with mouse over product then he will see all sizes and he will be able to select one size and hit add to cart button... I have the ajax button code : <a class="button ajax_add_to_cart_button btn btn-default WhiteRounded" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' }" data-id-product="{$product.id_product|intval}"> <span class="fa-button-cart">{*{l s='Add to cart' }*}</span> </a> and if iam right i need to add this id to the link of the button: &id_product_attribute={$product.id_product_attribute} But I don't know more about it ... I can't find any informations or documentations about "add to cart" button... so please if someone know what to do or how to edit this add to cart link please help Link to comment Share on other sites More sharing options...
safa Posted February 13, 2016 Share Posted February 13, 2016 you can look this topic for more detail and works about this. https://www.prestashop.com/forums/topic/279551-how-to-show-product-attribute-option-in-product-list/ Link to comment Share on other sites More sharing options...
Rissinko Posted February 14, 2016 Author Share Posted February 14, 2016 Thanks I don't know why I didn't find this topic :-/ 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