cancel
Showing results for 
Search instead for 
Did you mean: 

Error: 'Attribute "Available Product Listing Sort By" is required' when I try to save category

Error: 'Attribute "Available Product Listing Sort By" is required' when I try to save category

Hi, I get Attribute "Available Product Listing Sort By" is required error when I try to save category in another language store (for example, when unchecking "Use default value" and changing the Name of Category for the language I'm interesting for). The "Use default value" are checked for both "Available Product Listing Sort By" and "Default Product Listing Sort By". Please check the image below:image21.jpgAnyway, the category cannot be saved in another language store unless I uncheck the "Use default value" for both. Then the category can be saved and I get the following: image22.jpgNotice that the "Use default value" for "Default Product Listing Sort By" is now checked again although I unchecked it before saving. Can anybody help me to fix this? (I use Magento CE 1.9.2.4)

3 REPLIES 3

Re: Error: 'Attribute "Available Product Listing Sort By" is required' when I try to save

This is MegaMenu issue. It rewrites the Magento_Adminhtml_Catalog_Category controller. Just remove this rewrite from MegaMenu config.xml or move this code upper  (right before "Use Config Settings" check):

/**
* Check "Use Default Value" checkboxes values
*/
if ($useDefaults = $this->getRequest()->getPost('use_default')) {
foreach ($useDefaults as $attributeCode) {
$category->setData($attributeCode, false);
}
}

 They moved this check after validation.

Re: Error: 'Attribute "Available Product Listing Sort By" is required' when I try to save

 

uncheck.PNGGo to -> Display setting and uncheck box 'Available Product Listing sory by' and 'Default product listing sort by' and 'Save category' .  Working for me. 

Re: Error: 'Attribute "Available Product Listing Sort By" is required' when I try to save

Hi,

Thank you. It worked for me.