thezey Posted October 27, 2014 Share Posted October 27, 2014 Hello, I have a specific CMS page, in which I want to insert an embedded product display area where people can add to cart a determined product without quitting the cms page. In other terms, I would like to have a visual shortcut (just like embedded Tweets) in the middle of the cms page where customers could see a picture of my product along with the "Add To Cart" icon and "quantity" wanted. How can I add that? Thank for your help. Link to comment Share on other sites More sharing options...
vekia Posted October 27, 2014 Share Posted October 27, 2014 hello you can add code to display add to cart button <a class="button ajax_add_to_cart_button btn btn-default" href="http://example-of-website.com/en/cart?add=1&id_product=6" rel="nofollow" title="Add to cart" data-id-product="6"><span>Add to cart</span></a> then when someone click on it, product will be added to cart (in url and in other params of <a> element - change the id of product) Link to comment Share on other sites More sharing options...
thezey Posted October 31, 2014 Author Share Posted October 31, 2014 hello you can add code to display add to cart button <a class="button ajax_add_to_cart_button btn btn-default" href="http://example-of-website.com/en/cart?add=1&id_product=6" rel="nofollow" title="Add to cart" data-id-product="6"><span>Add to cart</span></a> then when someone click on it, product will be added to cart (in url and in other params of <a> element - change the id of product) Hi Vekia, Thank you for your answer. It looks promising. Would it be possible to add a picture along with the quantity field? Like Widget style… Link to comment Share on other sites More sharing options...
Recommended Posts