Jump to content

Manufacturers page not showing products


Recommended Posts

Hi

 

I've just updated to 1.6.0.14 and now when I select any of the manufacturers page it displays:

 

"No products for this manufacturer."

 

This is definitely not the case and I'm certain this was not a issue before I upgraded.

 

Is this something that has already been reported?

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Under Admin > Advanced Parameters > Performance > Optional Features > Combinations > Set to "Yes"

 

I have no idea why this works. I upgraded from 1.6.0.9 to 1.6.0.14 and this is a new requirement.

 

Hi

 

I am having the same problem.

https://www.prestashop.com/forums/topic/436257-upgraded-from-1609-to-16014-all-products-moved-to-1-manufacturer/

 

I tried the following

Under Admin > Advanced Parameters > Performance > Optional Features > Combinations > Set to "Yes"

It was already selected to YES. So I selected No, pressed saved. Still did not work. I switched it to Yes. Still did not work.

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
  • 3 months later...
  • 1 month later...
  • 1 year later...
  • 1 month later...
  • 1 year later...

I solved this problem (PS 1.6.1.7) in \controllers\front\ManufacturerController.php → function assignAll() (near end of file).

There was IF statement with PS_DISPLAY_SUPPLIERS:
 

        if (Configuration::get('PS_DISPLAY_SUPPLIERS')) {
            $data = Manufacturer::getManufacturers(false, $this->context->language->id, true, false, false, false);
            $nbProducts = count($data);
            $this->n = abs((int)Tools::getValue('n', Configuration::get('PS_PRODUCTS_PER_PAGE')));
            $this->p = abs((int)Tools::getValue('p', 1));
            $data = Manufacturer::getManufacturers(true, $this->context->language->id, true, $this->p, $this->n, false);
            $this->pagination($nbProducts);

            foreach ($data as &$item) {
                $item['image'] = (!file_exists(_PS_MANU_IMG_DIR_.$item['id_manufacturer'].'-'.ImageType::getFormatedName('medium').'.jpg')) ? $this->context->language->iso_code.'-default' : $item['id_manufacturer'];
            }

            $this->context->smarty->assign(array(
                'pages_nb' => ceil($nbProducts / (int)$this->n),
                'nbManufacturers' => $nbProducts,
                'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
                'manufacturers' => $data,
                'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY')
            ));
        } else {
            $this->context->smarty->assign('nbManufacturers', 0);
        }

I just added || 1==1 like this:

if (Configuration::get('PS_DISPLAY_SUPPLIERS') || 1==1) {

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...