Slammer Posted November 9, 2010 Share Posted November 9, 2010 How do I remove the "Add To Cart" button on the home page featured products?I'm running "Featured Products on the homepage v0.9".My featured products come in various sizes and color, but when I click the Add to cart" button, it doesn't provide for selections.Is there a workaround or a newer module that will do this?Huh?? Either I'm missing something or PrestaShop is.... Link to comment Share on other sites More sharing options...
rocky Posted November 9, 2010 Share Posted November 9, 2010 PrestaShop v1.4 has the option to hide the "Add to cart" button for products with attributes, or hide it completely. Until it is released, the only option is to manually delete the code. To show the "Add to cart" button on products without attributes only, change lines 20-24 of modules/homefeatured/homefeatured.tpl from: {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} to: {if !$product.id_product_attribute} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if} {/if} or to remove the "Add to cart" button altogether, change it to: {*{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if}*} Link to comment Share on other sites More sharing options...
Slammer Posted November 9, 2010 Author Share Posted November 9, 2010 Rocky, you wanna double check this code again, doesn't work for me - I want to eliminate "all" the Add To Cart buttons: {*{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {l s='Add to cart' mod='homefeatured'} {else} {l s='Add to cart' mod='homefeatured'} {/if}*} Link to comment Share on other sites More sharing options...
rocky Posted November 9, 2010 Share Posted November 9, 2010 Yep, that should work, unless you are modifying the wrong file. Check whether themes/yourtheme/modules/homefeatured/homefeatured.tpl exists, as it will override modules/homefeatured/homefeatured.tpl. Link to comment Share on other sites More sharing options...
Slammer Posted November 9, 2010 Author Share Posted November 9, 2010 Yep, my bad... I wasn't in the /yourtheme/modules/homefeatured/homefeatured.tpThanks for the fix and thanks for the laser fast response! Link to comment Share on other sites More sharing options...
rocky Posted November 9, 2010 Share Posted November 9, 2010 You're welcome. Please edit your first post and add [sOLVED] to the front of the title. 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