tozi Posted December 26, 2013 Share Posted December 26, 2013 (edited) Hi all, how i can add button (buy) in modul Products Category? Edited December 28, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
matzmu Posted December 26, 2013 Share Posted December 26, 2013 a buy button is all ready in category page. Link to comment Share on other sites More sharing options...
vekia Posted December 26, 2013 Share Posted December 26, 2013 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 More sharing options...
tozi Posted December 27, 2013 Author Share Posted December 27, 2013 Again thanks vekia. Is possible display also animation when i click on the button (add to cart)? The same as when I click on the product anywhere else. Link to comment Share on other sites More sharing options...
vekia Posted December 27, 2013 Share Posted December 27, 2013 animation should be there by default, can you share url to your website? i will inspect it Link to comment Share on other sites More sharing options...
tozi Posted December 27, 2013 Author Share Posted December 27, 2013 (edited) Here http://presta.simplydesign.sk/index.php?id_product=1&controller=product Edited December 27, 2013 by tozi (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted December 28, 2013 Share Posted December 28, 2013 take a look, there is an animation: but for.... main product image 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 More sharing options...
tozi Posted December 28, 2013 Author Share Posted December 28, 2013 Vekia thanks a lot. Link to comment Share on other sites More sharing options...
vekia Posted December 28, 2013 Share Posted December 28, 2013 you're welcome glad to hear that i could help you a little i marked whole topic as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now