Finally the help of IT is here

Blog of computer solutions.

Archive for the 'Prestashop' Category

Appears in prestashop blank page when editing a hook

Posted by Xaus Xavier Nadal 28th on December 2014

When I try to edit a hook in prestashop page is blank.

Good morning, this problem I've had in prestashop 1.6.0.9 and it seems incredible that at this stage of the evolution of Prestashop, for me one of the best systems to mount online stores have these minor faults. I guess there is a version of the file that will modify in github, but for what to do explain you how to modify yourselves.

The solution to this problem is very simple, edit the file AdminModulesPositionsController.php located in the folder controllers / admin to edit this file enough to have ftp access to your online store.

We look for the following string:

getmoduleControllers

Remove the word module being as follows:

getControllers

Save the file and problem solved.

I have not put pictures or anything like that because I think it is not necessary, if anyone needs further clarification, you can put in comments and I'll try to resolve shortly.

Greetings and see you soon MegaCracks.

tags:
Posted by Prestashop | 2 Comments »

Show only products on Prestashop Product List

Posted by Xaus Xavier Nadal 29th on November 2014

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.

tags: , ,
Posted by Prestashop | No Comments »