Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

All Questions

Tagged with
0
votes
0answers
18 views

Magento 2.2 - Layered Navigation for Custom Product Collection

I am trying to use my custom product collection for layered navigation in Magento 2.3. But products list are 100% correct but "The layered navigation still displays full collection." Any solution and ...
0
votes
0answers
58 views

magento 2 how to redirect disabled product to category page?

I want to redirect disabled products to the related category page. I have tried discontinued option which is available in admin but it is not working. How can I fix the issue?
0
votes
0answers
22 views

Google Analytics not tracking categories on M2

When I go on my GA Conversions : E-commerce : Overview and then I click on Product Category (Enhanced E-commerce) it give all results for category (not set), how can I verify if the Enhanced is up ...
1
vote
0answers
15 views

How to add category Path when creating product progrmatically in magento 2

I want to create products programatically by reading an xml file. Reading from xml, and creating product part is completed. I have no idea how to assign the products to category. This is my xml node ...
2
votes
2answers
39 views

Magento 2 - Best way to check if the current category is child

I want to change the design of my store depends of the categories and subcategories. I need to check if the current category is subcategory and if is subcategory then display something there. I ...
5
votes
3answers
159 views

Get category id

How can I get ID from this code which is typed into CMS page content? {{block class="Vendor\Module\Block\CategoryList" category_id="49" template="Vendor_Module::subcategorylist.phtml"}} I need to ...
0
votes
1answer
34 views

Subcategories of disabled Categories are still accessible

I have the following scenario: + Primary Category <---- DISABLED | +-- Secondary Category <---- ENABLED | +---- Tertiary Category <---- ENABLED So the primary category is not web-...
0
votes
0answers
30 views

The value of attribute “Is Active” must be set -error always when trying to create category via SOAP

I'm trying to create a category via SOAP $category_data = [ 'parentId' => 2, 'name' => 'NIMI', 'is_active' => 1, // also tried 'isActive' => 1 'position' => 1, '...
0
votes
2answers
25 views

Change a Category Name without affecting the existing products within that category

I just realized that I incorrectly named a sub category and its url on a Magento 2.2.7 site. This category currently has approximately 150 products in it. Can I just simply edit the Category Name or ...
0
votes
0answers
52 views

Magento 2 URL Rewrite not taking to correct category

Ever since the Magento 2.2.7 update one particularly category tree has been messing up for me. Take the following category structure (this just lists URLs) category-example-one subcatone sub-sub-...
0
votes
0answers
67 views

Magento 2 category updated programmatically not working

from upload the CSV file trying to created&update the category, while I create the category from the below script it's working, but while I update the category with the same script does not work. ...
0
votes
3answers
327 views

Magento 2 - Categories not display when Page Cache is on

I have a very strange issue on Magento 2.2.2, if I enable the Page Cache (Full page caching - FPC) the top navigation is not display anymore. What I can do? Thank you
0
votes
1answer
189 views

Magento 2 - Change top navigation submenu position

I create a new theme for Magento 2 based on Luma theme. I change the submenu of the top navigation to be 100% width. .navigation .level0 .submenu { max-width: 1280px; width: 1280px; ...
1
vote
0answers
10 views

Magento 2, How copy and resize image of category atfer upload

Using Magento 2, Admin, Catalog-Category. I would like make an image which copy and resize after upload category image. Example: I upload image name : rest04.jpg magento will genterate : /pub/media/...
0
votes
1answer
204 views

Magento 2 - How to remove/unset all categories from a product using plugin?

I am trying to remove/unset all categories from a product using below code. It's working with Magento 2.1 but not with Magento 2.2. How can we do this? app/code/Vender/Module/etc/di.xml <plugin ...
0
votes
1answer
165 views

Magento 2 : No products displaying on sub category pages

On sub category listing pages there should be a grid view of all products in that sub catagory, however the page is not displaying any of the products. The parent categories are set to not show ...
0
votes
0answers
101 views

Magento 2 Category custom attribute display standard way

I have added image upload attribute Category_Banner to category but in category collection it doesn't come. Loaded all the categories collection and loading the category by id under foreach loop. ...
1
vote
0answers
13 views

Can you re merchandise categories through import on CE 2.2?

We are on Magento 2.2 CE and so have no way of merchandising categories without going into the categories and re merchandising by changing their numbers manually. Is there a way to change the ranking ...
2
votes
1answer
255 views

Magento 2 How to show multiple Or category wise Layered Navigation on home page?

I want to show multiple Layered Navigation on Home Page. I want to show multiple Layered Navigation category wise on Home Page. I refer this Magento 2 How to show Layered Navigation on home page? ...
0
votes
0answers
394 views

Magento 2.2. - Show subcategories on category page

After searching online, I found this approach to my problem of showing subcategories inside the category page. The above solution states to create a custom module, and then reference it with a cms-...
1
vote
1answer
145 views

Magento 2 tries to load old theme on category pages

I'm using Magento 2.2.3 and after switching from the custom theme (Infortis - Ultimo) to Luma, all category pages are still displaying the Ultimo theme. The rest of the website displays using Luma so ...
0
votes
2answers
260 views

Category save not working

I am trying to update the category using following code. $category = $this->categoryFactory->create()->load($categoryId); foreach($data as $d) { $category->setDataUsingMethod($d['...
0
votes
1answer
447 views

Magento 2 REST API get categories names by list of ids

If you use Magento's REST APIs to get product, you use this endpoint: GET /V1/products/{sku} This endpoint returns response with category_ids in it. What I want to do is to get the product with ...
0
votes
1answer
690 views

Remove “We can't find products matching the selection” category with not products

How do you remove "We can't find products matching the selection" from categories with not products assigned? I have set display settings to Display Mode: Static Blocks Only Anchor: Yes and also ...
1
vote
0answers
460 views

How to show all categories and their subcategories on Layered Navigation?

I am using Mageplaza Layered Navigation module to show categories and their subcategories but its only showing subcategories. I want to show all categories and their subcategories like below format - ...
0
votes
2answers
2k views

Magento 2.2.3 - Get all categories in store programmatically

I'm trying to gather all categories in my store. As a start I'm using the object manager. I know it is bad practise to use the objectmanager directly, but after this I will convert it into a block ...
1
vote
1answer
2k views

Category order does not work, always sort by the entity_id desc

I have a problem with my categories, and I don´t know if this is normal or not. In Magento 2.2.2 I created a custom attribute, and added it for sorting attributes. But when I tried to order product ...
1
vote
1answer
789 views

Magento 2.2 Shopping options sidebar should display on sub category

Currently this shopping options displays only on main category page. How to display this shopping options under sub category page navigation?
6
votes
1answer
483 views

How to solve CRITICAL error of getimagesize() after data migration in Magento2.2.0?

After data migration process in Magento2.2.0, When I open category page at frontend than I get this type of error in system.log file, [2018-01-02 11:56:58] main.CRITICAL: Warning: getimagesize(/...
3
votes
1answer
2k views

Magento 2.2 - Breadcrumbs issue

Currently i've got products in a category sub of default for example: Root -> Sub cat -> product I've noticed that on the product page itself the breadcrumbs are working fine for some products and ...
0
votes
1answer
188 views

Magento 2.2 : Cannot Add Subcategory [closed]

I can't add subcategory in "Catalog > Categories", I get the following error message : Something went wrong while saving the category. In var/log/debug.log, I have this : [2017-11-13 04:34:03] ...
1
vote
1answer
320 views

How to apply visibility filter to category view's product collection in magento 2?

How do I apply setVisibility() to 'Not Visible Individually' in Category view's collection? Basically, I want to load products with visibility 'Not Visible Individually' only for a specific category. ...
0
votes
2answers
393 views

How to move layered navigation above toolbar for specific category in Magento 2

I'm trying to move layered navigation above description block for specific category and category page set in full width from backend in Magento 2 but it's not working. Can anyone help or suggest?