Missing products in catalog view

 Hello
After migration some categories are only showing a few products is catalog view. One category says 192 products found, but only 7 are listed. Second page of pagination is empty and says: We can’t find products matching the selection. Same problem in list and grid view.
Have reindexed and purged cache. No change.
Tool 3.0.9
Please advice
 

  1. Profile photo of Oystein BaadsvikToby 440.00 $tone July 5, 2017
    The total number of products in the category is also not correct.The correct number in the original Magento 1 store category is over 500 products.In the Magento 2 store the same category is listed with 7 products in the left column. When clicking it the top text says: Items 1-7 of 192We tried looking up one of the products that was not showing in the frontend and saved it in the backend, without changing any data.That resulted in the product showing correctly in the frontend.This is obviously not an option with over 500 products

10 answers

Profile photo of Oystein Baadsvik 440.00 $tone July 5, 2017
Public

Much appreciated
 
SSH / (S)FTP MAIN
———————-
HOST: 34.228.174.215
USERNAME: ovationmusic-ssh
PASSWORD: 14rRzOS4vMKEgGXf
PORT: 22
Backend admin
URL: test.ovationmusic.com/admin
possible protected directory password:
BASIC AUTH USER: test
BASIC AUTH PASSWORD: !test123!
Admin user: guestadmin
P: a6GH6%gat

#4
Profile photo of Mall Staff 184060.00 $tone July 5, 2017
Public

Hi there,

have you already ran the commends or should I?

No, you should do that commands at your end. And tell me know how it goes.
Regard,
Mall.

#7
Profile photo of Oystein Baadsvik 440.00 $tone July 5, 2017
Public

Just for our own records, is this what you did:
STEP 1: Create a new module or use an existing custom module
STEP 2: Create a new Class that extends the Full Action (see below)
STEP 3: Edit the di.xml in the etc directory to include a preference node (see below)
STEP 4: Clear Cache and Reindex
FILE: {company}{module}\Model\Indexer\Product\Category\Action\Full.php
namespace {company}\{module}\Model\Indexer\Product\Category\Action;
class Full extends \Magento\Catalog\Model\Indexer\Category\Product\Action\Full
{
protected function isRangingNeeded(){
return false;
}
}
FILE: {company}{module}\etc\di.xml
<?xml version=”1.0″?>
<config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”>
<preference
for=”Magento\Catalog\Model\Indexer\Category\Product\Action\Full”
type=”{company}\{module}\Model\Indexer\Product\Category\Action\Full” />
</config>

#9
Profile photo of Mall Staff 184060.00 $tone July 6, 2017
Public

Hi there,

Just for our own records, is this what you did:

Yes, that is right. For this case, i have added that overwrite code in our tool.
Regards,
Mall.

#10

Please login or Register to Submit Answer

Written By

Comments