Jump to content

Creating Add To Cart button


Recommended Posts

I've managed to find the link for adding Products to cart

 
        <a 
class="ajax_add_to_cart_button exclusive btn_add_cart" 
rel="ajax_id_product_{$bestseller.id_product|intval}" 
href="{$link->getPageLink('cart',false, NULL, 
"add&id_product={$bestseller.id_product|intval}", false)} title="{l 
s='Add to 
cart'}">                              
<span>{l s='Add to 
cart'}</span>                             
</a>

But when I click on the button I get a message says there is "No Product is found. The produt is not available anymore".

 

Any hints?

Link to comment
Share on other sites

×
×
  • Create New...