fitgura Posted March 14, 2010 Share Posted March 14, 2010 I have an error message when try to put a product into the cart on a product short descriptioned list page.... doesn't matter even is a first or second ... product in the list the customers only can put the desired product when they see it on a full detailed page.....I searched the forum : http://www.prestashop.com/forums/viewthread/12617/ but this cannot give me a solution , so I decided ask you how to remove the order buttons from the listed products!!!Somebody could help me please!!???I use ps 1.1.0.5thank you Link to comment Share on other sites More sharing options...
Divine Posted March 15, 2010 Share Posted March 15, 2010 Hi,you can remove it in the folder product-list.tpl Link to comment Share on other sites More sharing options...
tomerg3 Posted March 15, 2010 Share Posted March 15, 2010 The file /themes/prestashop/product-list.tplLook for the text "Add to cart" and remove the entire botton code. Link to comment Share on other sites More sharing options...
fitgura Posted March 16, 2010 Author Share Posted March 16, 2010 Thanks for advise both of you!! But I have an Idea!!!!!does anybody know , in the mysql database which table contains the uploaded products quantity???????????????Because all of this problem came from the products quantity set to 0, and I could set them up to 999 or something big, and it couldsolve the problem without remove the button!!!!please tell me if you know!!thanks! Link to comment Share on other sites More sharing options...
Divine Posted March 17, 2010 Share Posted March 17, 2010 why don't you set the quantities directly in your product settings ? Link to comment Share on other sites More sharing options...
fitgura Posted March 21, 2010 Author Share Posted March 21, 2010 Please somebody tell me how to modify the products quantity in the mysql daabase!!!!!!!!!!!!!Divine: I have approx 800 products in the shop and I don't want to open evry products page sep by step... that is why I wanna modify all the 0 qt. products to 999!!!Please advise me!!!! Link to comment Share on other sites More sharing options...
rocky Posted March 21, 2010 Share Posted March 21, 2010 It is the `quantity` field in the `ps_product` table that you are looking for. You could write an SQL query like the following to change all products with quantity 0 to quantity 999: UPDATE `ps_product` SET `quantity` = 999 WHERE `quantity` = 0 Link to comment Share on other sites More sharing options...
fitgura Posted March 21, 2010 Author Share Posted March 21, 2010 Rocky!!!you are a genuine hero thanks for advise I could try it now!!! Link to comment Share on other sites More sharing options...
htech Posted April 15, 2011 Share Posted April 15, 2011 Hey guys,im also looking to remove the ADD to cart button on the product-list.tpl page but when i remove the code it still stays there? {/if} {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0) && $product.customizable != 2} getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'} {else} {l s='Add to cart'} {/if} {/if} {l s='View'} {if isset($comparator_max_item) && $comparator_max_item} <input type="checkbox"> {l s='Select to compare'} {/if} so i remove the following ... getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'} {else} {l s='Add to cart'} {/if} but that doesnt seem to work coz the button still appears there?any suggestions? Link to comment Share on other sites More sharing options...
rocky Posted April 15, 2011 Share Posted April 15, 2011 You probably have "Force compile" disabled. Go to the Preferences > Performance tab and make sure that "Force compile" is enabled while you are making changes to TPL files. Disable it again when you're done to speed up your website again. Link to comment Share on other sites More sharing options...
htech Posted April 15, 2011 Share Posted April 15, 2011 thanks man! worked like a charm! Link to comment Share on other sites More sharing options...
Recommended Posts