lore_peter Posted February 12, 2017 Share Posted February 12, 2017 (edited) Hi, when I move my mouse cursor on top of each product there are 2 buttons that pop-up, these are: “add to cart” and ”more”. In which way can I get rid of them? I just want the possibility for my clients to click on the image of the product and let them go directly to the information page of each product (the one that displays various descriptions, quantity and more) I've looked for information in other answers around the web but none of it seems to fit my problem. thanks, Lorenzo Edited February 12, 2017 by lore_peter (see edit history) Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted February 12, 2017 Share Posted February 12, 2017 You can hide them from CSS (product-list.css) or you can delete them from TPL (product-list.tpl). Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2017 Share Posted February 12, 2017 It is Quick View that you should disable in theme configurator module Link to comment Share on other sites More sharing options...
lore_peter Posted February 12, 2017 Author Share Posted February 12, 2017 (edited) Thanks for the quick answer, I don't know much of coding but I did try this in the product-list.tpl: <!--...--> <!-- <div class="button-container"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.customizable != 2 && !$PS_CATALOG_MODE} {if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)} {capture}add=1&id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&token={$static_token}{/if}{/capture} <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}"> <span>{l s='Add to cart'}</span> </a> {else} <span class="button ajax_add_to_cart_button btn btn-default disabled"> <span>{l s='Add to cart'}</span> </span> {/if} {/if} <a class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}"> <span>{if (isset($product.customization_required) && $product.customization_required)}{l s='Customize'}{else}{l s='More'}{/if}</span> </a> </div> --> It didn't work. Can you walk me through these steps? And I've even tried to cancel all those lines and it did'nt work. Lorenzo Edited February 12, 2017 by lore_peter (see edit history) Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted February 12, 2017 Share Posted February 12, 2017 (edited) Sure, but please attach the file here so I attach it back modified.PS: Firstly make sure that in "Advanced parameters" -> "Performance" -> "Template compilation" is set to "Recompile templates if the files have been updated" or "Force compilation", otherwise those files won't be updated. Edited February 12, 2017 by Goe Burlibasa (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2017 Share Posted February 12, 2017 It is Quick View that you should disable in theme configurator module Have you tried this? Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted February 12, 2017 Share Posted February 12, 2017 Have you tried this? That options disables this button: http://i.imgur.com/UZpMAmc.png I think he wants to disable the other ones, "Add to Cart" and "More" Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2017 Share Posted February 12, 2017 That options disables this button: http://i.imgur.com/UZpMAmc.png I think he wants to disable the other ones, "Add to Cart" and "More" Correct - sorry We use list view rather than grid view which stops the hover effect - perhaps that is an option (and why I thought my suggestion worked) Link to comment Share on other sites More sharing options...
lore_peter Posted February 12, 2017 Author Share Posted February 12, 2017 (edited) Hi guys, thanks to these guys Goe Burlibasa and Ron , I've menaged to solve it. I'll attach the before and after pictures. I wanted to get rid of "add to cart" and "more" buttons and I disabled Quick View too (which is good) and theese are the steps: Firstly make sure that in "Advanced parameters" -> "Performance" -> "Template compilation" is set to "Recompile templates if the files have been updated" or "Force compilation", otherwise those files won't be updated. insert in the product-list.tpl file which yuo'll find in nameofyourwebsite\themes\default-bootstrap this <!-- before the <div class="button-container"> and this --> after </div> this. <!-- <div class="button-container"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.customizable != 2 && !$PS_CATALOG_MODE} {if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)} {capture}add=1&id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&token={$static_token}{/if}{/capture} <a class="button ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}"> <span>{l s='Add to cart'}</span> </a> {else} <span class="button ajax_add_to_cart_button btn btn-default disabled"> <span>{l s='Add to cart'}</span> </span> {/if} {/if} <a class="button lnk_view btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}"> <span>{if (isset($product.customization_required) && $product.customization_required)}{l s='Customize'}{else}{l s='More'}{/if}</span> </a> </div> --> In most cases you have to clear the cache and refresh the page to see the results. photos: Edited February 12, 2017 by lore_peter (see edit history) 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