Jump to content

[SOLVED] add button in productscategory


Recommended Posts

Products Category is a module for product page, where you can see "similar" products (from the same category).

 

to add there button, you have to modify the module template file. Add there code with add to cart button:

<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$categoryProduct.id_product|intval}" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$categoryProduct.id_product|intval}&token={$static_token}", false)|escape:'html'}" title="{l s='Add to cart'}"><span></span>{l s='Add to cart'}</a>
Link to comment
Share on other sites

take a look, there is an animation:
JwNHOcy.png

 

 

but for.... main product image :D

 

 

the solution is easy.

 

in module tpl file, where you've got product image anhor, add class product_image

<a href="http://presta.simplydesign.sk/index.php?id_product=30&controller=product" class="product_image lnk_img" title="Pneumatiky Bear VI."><img src="http://presta.simplydesign.sk/img/p/1/0/5/105-produkt.jpg" alt="Pneumatiky Bear VI."></a>

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...