Finally the help of IT is here

Blog of computer solutions.

Show only products on Prestashop Product List

Written by Xaus Xavier Nadal on November 29th, 2014

Save pagePDF pageemail pagePrint page

To show alone products in product listings Prestashop oddly it should be easy and there should be a specific configuration for that, is not it.

In the current version 1.6.0.9 to 29 / 11 / 2014 we not have this functionality and we touch the code to get our current issue that only products we have available are visible to the public.

What we want to show only products available?

For only so that potential buyers do not have to be sailing and discarding products you will not be able to buy, it is true, the known and may purchase or request the customer of the store, but also can do if are the product, the SEO by this configuration will not be affected because the products through search engine also continue to exist only modify the view of products within a category.

Surely there are several methods to perform the same action, but I'll leave that I have implemented some of my stores and if you have a better solution please Send it, or write a comment in the article.

We will explain how to do this little modification.

How to show available products only on Prestashop.

The first thing to get is access to FTP and edit the file product-list.tpl

We look for the following string:

{Foreach from = $ products = product item name = products}

We add this line right below the following code:

{If $ product.quantity> 0}

Now we seek the end of foreach and add the following line just before the {/ foreach}

{/ If}

With this we will make in the product list only the available products are displayed.

One drawback of this solution is that if we have several product pages settings pages where products should be visible but have hidden will still appear. If someone comes and fix the prestashop community will thank you.

Greetings and see you soon MegaCracks.

By the way I leave the link to one of my new store online https://www.todenka.com where we have applied this functionality. We hope you like and we buy some some article.

Related Posts Plugin for WordPress, Blogger ...
Tags: , ,


Leave a Reply

XHTML: You can use in Original tags: <a href="" title=""> <abbr title = ""> <acronym title = ""> <b> <blockquote cite = ""> <cite> <code> <del datetime = ""> <em> <i> <q cite = ""> <s> <strike> <strong>