Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

How to hide the category block in navigation on all pages if the user is not a login

How to hide the category block in navigation on all pages if the user is not a login? Also, if a user tries to navigate to a category via a link, it should be redirected to the login page.
1
vote
1answer
34 views

Import categories programatically in magento 2

I have 250+ categories and sub categories with me. I want to import it in my magento 2. It is not possible to manually add it. Can anyone help me with some scripts or code to import categories from ...
0
votes
1answer
23 views

Magento2 category url

I want to change my url to the endpoint of slug on categories. Ex: www.example.com/level1/level2/level3.html should be like this: www.example.com/level3.html
0
votes
0answers
24 views

404 on all Category Pages

Have upgraded from 1.8.1.0 to 2.3.3. But every single category page is now 404'd. Have truncated a url_rewrite and catalog_url_rewrite_product_category, but no luck. Have gotten rid of the other ...
0
votes
0answers
15 views

List sub categories in navigation menu M 1.9

I'm new to magento and i'm using M 1.9. I want to load sub categories to left navigation. Here is the structure of my categories, -Default category -- Girl ---Clothing ---- T-shirt ---- leggins ...
0
votes
1answer
57 views

How to show categories in the left column in magento?

Like u see in above picture i want it to show my categories and subcategories also i want this column to work on products to not just in the home page Thanks Resolved using "Sebwite" extension.
1
vote
4answers
119 views

Magento2: Pagination on listing page using static block

I have added a static block in the category Static block content: Category : It shows all the products on a page. toolbar not showing: How can I add the toolbar:
0
votes
0answers
14 views

Some Category pages slow

Some Category pages very slow slow. Takes 196,781 ms to load Magento\Framework\Session\SaveHandler\Native::read very slow
0
votes
1answer
29 views

Show/Hide Products on Category page on button click

I want to show/hide the Product listing on Category page on button click. On my category page i am displaying one static block before products, this block contain one button. My requirement is on ...
0
votes
1answer
37 views

Why display Price zero some items, but others are ok

I'm new for magento. I'm in trouble with product prices and categories.See snapshot i post. some item's price shown zero. Why so that? Can anybody guess?what are the configs I have missed.
0
votes
0answers
20 views

How to design custom menu with category and subcategoris - Magento 1.9

anybody know how to customize custom menu like this. Can I do it just changing configurations without coding?
1
vote
0answers
28 views

Is there any way to automaticly add a product to a product-page when the product gets a special price?

Is there any way that when I give a product a special price, it automatically adds the product to a special "Sale" page at my homepage without manually adding the product to any type of category? So ...
0
votes
0answers
7 views

How to add custom sort by option on list page and result should be based on discount percentage of products in Magento 2

I wants to display products on list pages based on discount percentage in descending and ascending order. Thanks
0
votes
0answers
99 views

Sub categories are not showing for the category in the backend Magento 2

I moved the category Ducati clothing inside Ducati Accessories category and then pushed it back as original but after this, when I click on the category Ducati clothing it is not showing the ...
0
votes
0answers
14 views

Products not showing up in category but are showing up in layered navigation drilldown

I am running into an issue where I have about 1000 products in a category. I have it sorted by price as the default. When I go to the page, it is showing the price order correctly, only, there are ...
0
votes
2answers
65 views

How to get product category Id on product detail page Magento 2?

I have a product which have assigned into more than 5 categories. I want to show the category detail of that product on product detail page. But which category detail I need to show? I want to show ...
0
votes
2answers
36 views

Magento2: How to get current product parent category on product detail page?

I want to get the current product parent category on the product detail page in Magento2? My Code: <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $...
0
votes
1answer
48 views

Magento 2.3: Getting wrong product count on category page

I'm facing a strange issue which I couldn't point out where am I wrong. The issue is, when I navigate to any category page, the total result of product is showing as 1 though the category having many ...
0
votes
0answers
18 views

SQLSTATE[42000] while creating categories using REST API?

I created categories using REST api by below code. <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $directory = $objectManager->get('\Magento\Framework\Filesystem\...
0
votes
1answer
34 views

Magento1.9.6 migrate Magneto2.3.3 after data migration getting issue

I have done success fully data migration M1.9.6 to M2.3.3 after in admin side product inside category not assign default cateogry so any idea how to assign it automatically because our product data ...
0
votes
1answer
54 views

How to create Form action on click of a Button under Modal Widget

I have created a modal widget on a category section under Admin. A custom button is created along with Save and when we click on that button, it opens a modal with custom form. Inside that form, ...
0
votes
0answers
26 views

How to get top 3 most purchased category list in magento 2?

There are modules that get top best selling products list but I want to get the topmost purchased categories list instead of products. Please help me with this. Is there any free module available? ...
0
votes
1answer
51 views

Category Issue Magento 2.3 (Porto Theme)

We have an issue with Category (www.lsxgarasjen.no). We have 2 subchild categories ( so the path is Motordeler Og tuning - AN koblinger og Slanger) If wee try to go to the next step the next box (not ...
0
votes
0answers
28 views

Magento2.3: Products are not displaying at all in Category page

I have created a simple product and attached with one of the category. However, the product is not displaying at all when I go to the corresponding category page. I can only browse the product when I ...
0
votes
0answers
14 views

How to Add Product Category filter to Nav Menu

Is it possible to move the Product Category filter to My Custom Nav Menu?
0
votes
1answer
38 views

Magento 2 saving category with incorrect store_id

After Migration of Magento 1.9 to Magento 2 Some categories have duplicated values (different store_id) on our database. (i dont know if this problem ocurred in Migration) In a category: Category ...
0
votes
1answer
30 views

We're sorry, an error has occurred while generating this content M2

I have checked log file exc.log [2020-01-06 11:20:35] main.CRITICAL: Notice: Undefined offset: 2 in /var/www/vhosts/exmp.com/httpdocs/app/design/frontend/Smartwave/porto/Magento_Catalog/templates/...
1
vote
0answers
22 views

Magento 2 - Visual Merchandiser rebuild automatically

I'm using Magento Visual Merchandiser to create smart categories. I created conditions to add products into my smart categories, but if I update product attributes value, the products didn't add ...
0
votes
1answer
42 views

Magento - Canonical URL for catagory page is not taking

I am trying to add a canonical URL in category page custom design. But it is not taking. Here is my code, <reference name="head"> <action method="addItem"><type>skin_js</...
3
votes
0answers
158 views

How to display out stock products in one category if disabled out of stock products

Below script shows out of stock products in only one category with Display Out Of Stock option yes in the admin by using helper file. Here is the code: <?php namespace Vendor\Module\Helper\...
1
vote
0answers
30 views

Problems re-indexing Category Products and Products Categories in Magento 2.3

We are facing the Reindex for the Category Products and Product Categories and we are getting the following error while reindexing through SSH (php bin/magento indexer:reindex) Category Products ...
1
vote
0answers
33 views

Magento 2 - Category filter on custom search page

I have custom search page that is working perfectly and all the filters are applying properly except category filter. Following is the code: $indices = $this->searchResult->getIndices(); ...
0
votes
1answer
42 views

Magento 2 Delete All Categories from Database

I want to delete all categories from the database so I can import new ones. I need to also delete the rewrites. I tried this code: SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE ...
1
vote
0answers
20 views

How create a custom category programmatically in magento 2.3.x

Hi im looking a custom module for insert a custom category on frontend, so i learn a some post to create that, ok i found this post https://community.magento.com/t5/Building-Extensions/create-module-...
0
votes
2answers
40 views

Display “only X left threshold” and stock status on category view

I'm new to Magento(2) and I'm trying to display Stock Status, stock count, and quantity field in category view like in product view. I don't know where to get theses values and where to put it... I'm ...
1
vote
1answer
34 views

Magento2: Category URL rewrite issue

I am trying to import product from magento but when I try import I will get below errors. I have flushed all category then update the new category. Got the error message below: General system ...
0
votes
0answers
32 views

How to get parent category id using product id - mysql?

How to get parent category id, Books/Spiritual Books/Boys Books -> 5 [id] Spiritual Books -> 18[id] Boys -> 78[id] How to get parent category id using product id using mysql, here Books is ...
0
votes
1answer
44 views

Magento 2 : To show category with in the top search bar results

How to show categories on the top search bar results? Do not want to interact with ElasticSearch as using MySQL search engine. Any sort of note would be much helpful.
0
votes
3answers
71 views

Delete Stores in Magento 2

I have a Magento Site which have around 20 stores. I have deleted 17 stores as they are not useful to me but when I go to Admin panel and go Catalog -> Categories then it shows me the following ...
0
votes
1answer
59 views

Magento 1.9 - How to assign all products in a sub categories to it's parent categories?

My products assigned as sub categories and child categories, how to assign all products in a category to it's parent categories. eg: Books/Children/Boys, Now the products assigned with Boys child ...
1
vote
1answer
43 views

Magento 2.3.1 Category Page is not loading in Magento admin panel

My Magento version is 2.3.1. all pages in the admin panel working correctly. but my category page is not loading shows console error. I am already trying some solution like delete pub/static ...
1
vote
0answers
34 views

How to Customize Category URL?

Regarding Customize Category Url like : storename.com\category_id+category_name+category_attribute I read before : "If you have a small amount of customization necessary, the URL rewrite ...
2
votes
3answers
61 views

The correct implementation of the output of subcategories in the main category

i want to display subcategories in the root category, i found this way that works for me. app/design/frontend/[Vendor]/[theme]/Magento_Catalog/templates/category/products.phtml <?php $category =...
1
vote
0answers
17 views

Restrict access to categories and products

How can turn off the display of categories and products in them for unauthorized users. In case of transition to url of not logged user, redirect to login page.
3
votes
1answer
147 views

How to exclude specific Products, Categories and CMS Pages from sitemap.xml generation in Magento 2?

I need to create a custom module that allows excluding/skipping the Products, Categories and CMS Pages URLs from generating in sitemap.xml. I had tried this solution for Magento 1, How could I do it ...
2
votes
1answer
41 views

How to shown all the category on home page in magento2

public function getShopCategories() { $objectManagerr = \Magento\Framework\App\ObjectManager::getInstance(); $categoryFactory = $objectManagerr->create('Magento\Catalog\Model\ResourceModel\...
1
vote
0answers
41 views

Magento 2 Mobile view menu links redirect to undefined page

I have an instance Magento 2.3.3 In that I have installed the Weltpixel mega menu module and configure it. In sub-menu I have added custom HTML with ul > li tags. The sub-menus are working perfectly ...
1
vote
0answers
34 views

Magento 2.3: How to create a custom filter?

I'm having a requirement that is related to filtering the products. By default, when the user clicks on the category, it will be redirected to the corresponding product listing page. But my ...
0
votes
0answers
10 views

How to change start time for Magento 2 Shared catalog

I am Using Magento 2 EE.I created shared catalog and assigned some product to and custom price for products.but frontend not effecting those prices How to change start time i don't want wait till ...
1
vote
1answer
60 views

Magento 2.3 After changing product all categories are unassigned

I have a problem with Magento 2.3.3. We have a lot of normal products and also use Group and Bundle products. All products are assign to a category (or multiply categories) and also displayed in ...

1
2
3 4 5
50