prestashop-new Posted April 2, 2014 Share Posted April 2, 2014 (edited) Hi, I am unable to add To cart FORM on my Featured Product on home page as well in my product list page. Following is the code which I copied from Product.tpl for featured home:<form id="buy_block" {if $PS_CATALOG_MODE AND !isset($groups) AND $product->quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')}" method="post"><!-- hidden datas --><p class="hidden"><input type="hidden" name="token" value="{$static_token}" /><input type="hidden" name="id_product" value="{$product.id_product}" id="product_page_product_id" /><input type="hidden" name="add" value="1" /></p><p id="add_to_cart" class="buttons_bottom_block"><span></span><input type="submit" name="Submit" value="Add to cart" class="exclusive"></p></form> Please help. so that the following URL cannot be indexed by search engines. www.mysite.com/cart?qty=1&id_product=8&token=7775324f4cd8c884155af53ca90e44ad&add Actually moz analytics crawling these types of URL which is in <a href="http://www.mysite.com/cart?qty=1&id_product=8&token=7775324f4cd8c884155af53ca90e44ad&add">Add To Cart</a> as a duplicate page content. Dont know why as these URL are just a Add to cart URL and these are nothing to do with any content.So I decided to remove the links and instead add the Add To cart FORM Edited April 2, 2014 by prestashop-new (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts