Skip to main content

New answers tagged

0 votes

Updating "Include In Menu" on categories programmatically in Magento 2 and not updating in the admin

You can inject the StoreManagerInterface in your constructor and change the default store before updating the category: public function __construct( \Magento\Store\Model\StoreManagerInterface $...
diazwatson's user avatar
  • 2,440
0 votes

If the current category ID exists in this array of IDs, then show something

To achieve the condition you're looking for, you should use the in_array() function to check if the category ID is in the specified array of IDs. Here's how you can modify your code: <?php if(...
Jigar Karangiya's user avatar
0 votes

Magento 2 : Catalog Layer has been already created

This is default magento issue, You can add condition or override this Resolver.php to sort this issue: vendor/magento/module-catalog/Model/Layer/Resolver.php You can add in try catch to sort out the ...
Sangeeta Chandaliya's user avatar
0 votes

After magento version update from 2.4.3 to 2.4.7 the category information is not displayed in the admin

We upgraded from Magento 2.4.6.p4 to Magento 2.4.7 with only Developer Extension Issues with PHP 8.3. You might try increasing php_value max_input_vars I will check with our Development Team to see ...
richardwendrock's user avatar
0 votes

Adding anything after category page URL needs to be ignored

Create di.xml file <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
Magento TridhyaTech's user avatar
0 votes

After magento version update from 2.4.3 to 2.4.7 all category url returns 404 error

The issue you're facing with Magento categories after an update can be complex, especially if the category data is not displaying correctly in the backend. Here are some additional steps and checks ...
Amal 's user avatar
  • 76
0 votes

Adding anything after category page URL needs to be ignored

Ideally, you should not do this. Reasons Whenever we hit the URL, Magento checks it across the Url Rewrite module. If we make a condition and in the future, another category level is added, the ...
Magento TridhyaTech's user avatar

Top 50 recent answers are included