Jump to content

Help me please! Need to add cart button to homepage


Recommended Posts

Hi -

 

I have just started to use Prestashop to try to create a new store, and so far its a great system.

 

I have my first problem with setting it up the way i need it to be and wondered if anyone can help me out here? Sorry if i posted this in the wrong place! I'm new to the forum to.

 

What i wanted to do is add some of my products on the home page, but use the 'home text editor' module to do it.

 

This way i can have a html table, product images, an audio player for each product with music sample etc (it's a music store) and have control over what is shown on the front page.

 

I have got this to work, by pasting html links to images and media files (my knowledge is limited).

 

So, here is the problem, i also want to be able to paste an 'add to cart' button for individual products into each product section of my table. I cannot work out how to this at all! Does anyone have any advice please. It would be very much appreciated.

 

Thanks

 

James

Link to comment
Share on other sites

you cna copy the add to cart button code like

 

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

Link to comment
Share on other sites

×
×
  • Create New...