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
-
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
Hi there,
What version of Magento2 in your working now. That is a issue of Magento2 with your data migrated. You could see more information at:
https://github.com/magento/magento2/issues/8681
https://github.com/magento/magento2/issues/8018
Regards,
Mall.
I am currently using Magento 2.1.7
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
Thanks
have you already ran the commends or should I?
so far no changes on frontend
oystein
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.
Hi Mall
looks like it is working perfectly
thanks a lot
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” 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>
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.