Jump to content

Show all products in Prestashop 1.5.5


Recommended Posts

nice solution

 

but it is necessary to overwrite original controles, 

what about overrides?

Yes we can override files like:

 

classes/Product.php to override/classes/Product.php

 

 

but these are not default Prestashop files, how can override these files like:?

controllers/front/AllProductsController.php to ?

all-product.php ?

Link to comment
Share on other sites

  • 4 months later...

Hi, I like to put a link on my main menu (using the blocktopmenu module) to show all my products on my store.

 

Can I do this using your solution?

 

If yes, where I need to put the folder? Under my main root site, under default theme?

 

Which will be the link to put on the URL the module is asking for?

 

Thank you in advance for your help

Link to comment
Share on other sites

  • 3 weeks later...

unpack this file right to the root dir of your store

then use link as it is suggested

Link: <a href="{$link->getPageLink('all-products')|escape:'html'}">{l s='All products'}</a>

 

Hi Vekia,

just stumbled upon this thread, 'cause I am also looking for a Show All Products feature. So is it the only way at the moment to do this? I am using PrestaShop 1.5.6.1 and wondering, if that feature was added in the release 1.5.6. Otherwise, how safe is this solution? By "safe" I mean, if there are some conflicts with e.g. other modules?

Link to comment
Share on other sites

  • 1 month later...

hmm I haven't changed names of files only unziped and copy to root dir Prestashop.
But now it's works I find solution "delete class_index.php in root dir/cache/" when I search about CaseSensitive in PrestaShop.

Thanks vekia for help :)

Link to comment
Share on other sites

Hi

 

ENGLISH

 

i create a module with override of product class based on file of 1st post

 

tested on PS 1.5.6.2 blank with default theme

 

1*) install this module showallproducts.zip with BO module page

 

2*) go in your menu top config and create link with url ==> index.php?controller=all-products

 

 

thanks to kashifkhan112 for originals files

 

FRENCH

 

j'ai créer cde module avec un override ce la classe product base sur les fichier du 1er post
 
testé sur un PS 1.5.6.2 vierge avec le theme par defaut
 
1*) installer le module showallproducts.zip par la BO
 
2*) aller dans la configuration votre modue de menu haut (Menu Haut horizontal par defaut)
      et créer un lien avec comme url ===> index.php?controller=all-products 
 
Merci a  kashifkhan112 pour les fichiers d'origines
 
@++
 
loulou66
 

showAllProducts-V_1.0.zip

Edited by loulou66 (see edit history)
  • Like 2
Link to comment
Share on other sites

i'm not sure but pagination doesn't work with index.php?controller=all-products . When you have <10 products is ok, but for more products don't have pagination and nbr product page.
when I change the number of products on the page, for example, 30.
index.php?controller=all-products is still shows 10 products

Edited by 126volt (see edit history)
Link to comment
Share on other sites

or maybe all products onone page
for me it will be ok


//I found a solution how to display all the products on one page
In AllProcuctsController.php in line
 

'products' => Product::getAllProducts($this->context->language->id, (int)($this->p) - 1, (int)($this->n), false, $this->orderBy, $this->orderWay),	

I changed $this->n to  $nbProducts

'products' => Product::getAllProducts($this->context->language->id, (int)($this->p) - 1, (int)($nbProducts), false, $this->orderBy, $this->orderWay),	

Anyone know how to display "quantityDiscount" from the product page for the list of products

Edited by 126volt (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 years later...
  • 2 weeks later...
×
×
  • Create New...