PrestaShop Forums: remove the add to cart button on list pages!!! - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


remove the add to cart button on list pages!!!


remove the add to cart button on list pages!!!

#1 fitgura

    PrestaShop Apprentice

  • 07 Sep 2009
  • Members
  • PipPip
  • 183 posts

Posted 14 March 2010 - 09:11 PM

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.5

thank you
The road to success always Under Construction!

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 March 2010 - 01:52 AM

Hi,

you can remove it in the folder product-list.tpl

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 March 2010 - 02:56 AM

The file /themes/prestashop/product-list.tpl

Look for the text "Add to cart" and remove the entire botton code.

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 16 March 2010 - 07:19 AM

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!

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 17 March 2010 - 01:35 AM

why don't you set the quantities directly in your product settings ?

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 21 March 2010 - 12:12 PM

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!!!!

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 21 March 2010 - 12:32 PM

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


#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 21 March 2010 - 01:37 PM

Rocky!!!

you are a genuine hero :)

thanks for advise I could try it now!!!

#9

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 April 2011 - 01:49 AM

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">


{/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?

#10

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 April 2011 - 02:18 AM

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.

#11

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 15 April 2011 - 02:25 AM

thanks man! worked like a charm!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users