janek1234 Posted May 8, 2017 Share Posted May 8, 2017 (edited) hi can you please let me know where to change that I dont want to be these large buttons with product when listed in category, as here http://mycoppercraft.com/6-copper-mirrors-frames buttons "add to cart, more, and in stock. help please I can work in tpl files a bit thanks ok sorted https://www.prestashop.com/forums/topic/389356-remove-add-to-cart-button-prestashop-1609/ Edited May 8, 2017 by janek1234 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2017 Share Posted May 8, 2017 you need to alter product-list.tpl file located in your theme directory, for default theme the path is: /themes/default-bootstrap/product-list.tpl From file remove a part of code that is responsible for these elements, for example, this is add to cart button: {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} 1 Link to comment Share on other sites More sharing options...
janek1234 Posted May 8, 2017 Author Share Posted May 8, 2017 (edited) I have that made, thank you , now where will I control to size of that large box that is poping up when I hover my mouse on the product ? I d prefer to delete that extra area with "more" and in stock info...I am talking about the category , here http://mycoppercraft.com/6-copper-mirrors-frames Edited May 8, 2017 by janek1234 (see edit history) Link to comment Share on other sites More sharing options...
janek1234 Posted May 9, 2017 Author Share Posted May 9, 2017 (edited) edit Edited May 9, 2017 by janek1234 (see edit history) Link to comment Share on other sites More sharing options...
janek1234 Posted May 9, 2017 Author Share Posted May 9, 2017 (edited) edit Edited May 9, 2017 by janek1234 (see edit history) Link to comment Share on other sites More sharing options...
janek1234 Posted May 9, 2017 Author Share Posted May 9, 2017 (edited) sorted. I had to add this in my global css file, it works but at the same time product name disappered . How to make that code so the product name would stay ? .product_list .right-block {display:none;} Edited May 9, 2017 by janek1234 (see edit history) Link to comment Share on other sites More sharing options...
janek1234 Posted May 9, 2017 Author Share Posted May 9, 2017 anyone ? 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