Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [category]

Questions about product categories in the Magento catalog

Filter by
Sorted by
Tagged with
7
votes
4answers
10k views

Assign products to category programatically in magento2

How can I assign 'New products' to 'NEW PRODUCTS category' programatically in magento 2.
0
votes
0answers
15 views

Magento 2: Multi-Store Functionality Achievements

Store Requirements Admin Panel Restriction Admin Panel Store Wise Admin Dashboard Store Wise User Permissions and Resources control Different Admin panel views store wise Customers: Customers ...
0
votes
1answer
814 views

Magento 2 Category Url not working after migration from magento 1

I have a problem with my magento 2 site. this site was originally migrated from magento 1. now my problem is that. the original url is not working for example: Instead of this one: site.com/products ...
0
votes
0answers
38 views

Magento 2.3 Invalid URL when updating category name in a store view

I am working on magneto 2.3. It has two store views: English and Chinese. I type a category name in Chinese store view, So I want to change it. But when I tried to save the new name in Chinese store ...
1
vote
1answer
65 views

GET Products by brand and category

I'm trying to create some type of search method for customers where they select the product's brand they want to search and then, if they want, they can also select the category they want (if there ...
0
votes
2answers
80 views

Magento 2: Load multiple categories by category ids

Hi i want to load multiple categories in Magento 2.3. but it only fetch 1st category of a subcategory, not rest of category. $categories = $_objectManager->create('Magento\Catalog\Model\Category')...
0
votes
0answers
35 views

Magento 1.9 SOAP v2: Specify a store view on category update

I would like to update categories in a specific store view via the SOAP API. Below is the code I'm using: $catu = '628'; $store = '9'; $cat = "name2"; $proxy = new SoapClient('http://example.com/api/...
0
votes
0answers
23 views

Parent category products set as anchor do not show on front-end - Magento 2.3.1

We are facing a very strange problem and hope someone has maybe an idea to help. We are using Magento version 2.3.1 No products of the main category, set as anchor are showing up in the front-end. ...
0
votes
2answers
1k views

Magento 2 product list page pagination not working

I am using Magento 2.1.5 and and on category listing page i have 48 products but its default display 12 products but not showing the pagination. how to solve it ? default value for product is set 12 ...
3
votes
1answer
3k views

Remove parent categories from subcategory in URLs in 1.9.2.3

Magento version is 1.9.2.3. I have tried following solution which doesn't work for me. Step 1: Go to app/code/core/Mage/Catalog/Model/Url.php copy this file to app/code/local/Mage/Catalog/Model/Url....
0
votes
0answers
13 views

Magento 2.X: How change Category name to not necessary

i have this question, how can add category but without category name in magento 2.3? so i need this category name print in navbar but not in container theme.
0
votes
3answers
46 views

Fetch category id's through sql in magento 2.3

I want to get the list of category id's with category name through sql. how can i do that?
0
votes
1answer
757 views

how to change text color in category view in magento2

I am trying to change text color in magento 2 for product names and nested names in category view. Can someone point me in right direction.
0
votes
1answer
40 views

Magento2 - How to implement slow loading

I want to implement slow loading for my homepage. My homepage consist of category image then 9 products related to that category.This continues for all categories. For that, I want to implement lazy ...
0
votes
1answer
23 views

Magento 2.3: Is it possible import/create a category tree with category_id assigned

I have to import a 3rd party catalog into Magento 2.3. I need to recreate in Magento the category tree with the same category_id in the original tree because I need it when I update inventory. How can ...
6
votes
2answers
7k views

URL Rewrite: From category to CMS Page

I've created a CMS Page. URL Key = about/page1. I've created some Categories. One of them, category #1, it's called about. URL Key = about and its first subcategory, category #2, is named Page ...
0
votes
1answer
608 views

Magento 2: How to display the category in product URL?

I want to get the product URL with categories in home page where I just load the product collection and used the getProductUrl() function. But it returns only product URL key.
2
votes
1answer
2k views

Magento2 - create new/update category programmatically for specific storeView not working

When I try to update a category category name programmatically only for StoreView 2, it does not work. The changes will go to StoreView 1 every time and not to the StoreView that I defined: use \...
0
votes
0answers
20 views

Magento 2.3: Change the store view when a certain category is clicked

How do I set up store views to be switched as soon as a category is clicked? We do run a Magento store that offers products for various customers. Let's set three categories in order to simplify the ...
0
votes
1answer
27 views

Magento 2 - Get only categories Names and Id in REST API Programmatically

I am trying to get only the category name and category id with the parent and child segregation programmatically using REST API. Can anyone please suggest some solution or provide some sample code ...
0
votes
2answers
657 views

Products are showing up under magento subcategories but not on categories - system

I'm having an issue as I have to organise some products to display on the top of the pages on the website. It works on the subcategories and I change the position, everything fine. But when I go to ...
0
votes
0answers
16 views

Magento2.1 category URL structure

Want to set my category pages URL like this: https://domain.com/categories/{category name} Also is it possible to set https://domain.com/category/{category name} for main categories and https://...
0
votes
0answers
20 views

Unable to modify categories in magento due to error

Fatal error: Uncaught Error: Call to a member function toHtml() on boolean in /var/www/vhosts/Site/httpdocs/app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tabs.php:153 Stack trace: #0 /var/www/...
1
vote
2answers
4k views

Search Results: List categories and products

In magento, it is not possible to search for categories. Currently it shows only the products in the list. I need Categories and products in the search result. Search results for categories should ...
1
vote
1answer
1k views

Magento Category Pages are too slow

Time to first byte is almost 6 seconds and full page load time is 8.60 second I try to run profiler and here is the results Memory usage: real: 45350912, emalloc: 44510384 I can't figure out why ...
4
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 ...
1
vote
1answer
248 views

Magento 2, category disappeared on “Catalog > Category” tree, does show everywhere else

I have a Magento 2.2.2 build, I imported my products, categories and orders from a Magento 1.6.2 (don't blame me, I just got this) build using cart2cart Everything looks to be fine, until I tried to ...
0
votes
3answers
3k views

How to get all active categories and subcategories in product listing page?

My categories and subcategories hierarchy to a product listing page : Products Refrigerator back-bar fridges Product listing(here) Now, what i'm trying to get is while i'm in product listing ...
2
votes
1answer
1k views

Cannot sort by position in Magento 1.9.2.4

I am trying to force a category of products to sort by position in Magento 1.9.2.4. I have assigned the position to each product in the category but I notice there is no position option - only by Best ...
2
votes
2answers
3k views

Display categories and sub-categories

I'm tryng to display categories and subcategories on a cms page <?php $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ...
7
votes
1answer
2k views

Magento 2 how to filter product collection on category page with custom filters

I have one category in system... For example EMT. There are many products assigned to it. Now I want to filter some products for particular customers for that category. I mean only specific products ...
0
votes
0answers
19 views

What class is responsible for adding the category url suffix to the URL?

I need to prevent the category URL suffix from being added to a select few pages. The suffix is set to .html, and I need it to be that for 99% of category pages, but the issue arises when trying to ...
2
votes
2answers
1k views

How to display all sub categories from one category?

I'm trying to show all the subcategories of the category id3. Category ID3 -> Category Level 2 for Category ID3 -> Category Level 3 (for category Level 2) <?php if (!Mage::registry('...
0
votes
0answers
25 views

Magento 2 Mobile menu, make all the categories collapsible and collapsed by default

I am having a hard time finding anything related to the mobile menu. My problem is that in the Magento 2 default (blank) theme it's not possible to toggle categories collapsible in the mobile menu. ...
2
votes
2answers
586 views

Automatically use Default Value for category/product Changes (always inherit “All Store Views” scope)

Working on a pretty complex multi-store setup now, and I'm trying to find a way to set all fields as being checked to "Use Default" by default so that a product name change (or etc) wouldn't have to ...
1
vote
2answers
1k views

Magento 2: How to remove Category using category id by Mysql script

I want to remove category using MySql Script So I can delete the category using category ID completely from magento 2 as we did in admin area category section.
2
votes
1answer
5k views

How to add attributes set column to category products grid?

How to add attributes set column to category products grid under Catalog -> Manage Categories -> Category_to_be_edited I've added a special price since it was already available in the collection. ...
1
vote
1answer
159 views

Is it possible to access categories from an outside root category?

I have a root category set up for all the products. What I am trying to do is set up what I call a meta category. This category would be used for things like holiday themes, gifts for him, etc. What ...
6
votes
1answer
7k views

Is it possible to delete root category?

Is it possible to delete an empty root category once accidentally created or not required anymore? It looks like there's no "Delete" button.
0
votes
2answers
621 views

URL issue with categories

I am using Magento 1.9.2.4 I have created 3 root categories with multiple sub categories in each root category. First root category (Category) works fine, but their is some issue with sub-...
5
votes
3answers
2k views

Show product of a category in a custom page

I create a category with some product. Also create a custom layout for my page that I add new cms page with this layout that I created. I need to have this page with my layout because I want to add ...
1
vote
1answer
592 views

Sort products in category by stock quatity or stock availabilty

I show out of stock items on my website and they are all over the place but I dont want to get rid of them. I want to sort the category so that products that are out of stock appear last, is this ...
0
votes
1answer
22 views

How can I add brands and flavors in navigation menu with categories?

I want to show categories of items also want to show the brands and flavors of item according to the parent it has.
0
votes
0answers
41 views

Magento 2: Categories import via CSV not updated same name child category as assign in different parent categories

I am importing categories via CSV and it is working. After updating categories data like description, is_active, etc. But same name categories are not updating in different parent. I want to update ...
0
votes
2answers
578 views

Display only third level category

My categories are displayed this way: - Main Category   - Product type     - Brand I want to display the image of the third level category on the homepage. Can anyone ...
0
votes
1answer
2k views

How can I change H1 title in categories?

I need to change the h1 title using Custom Layout Update field in the category edit view How can I do this? Change many categories h1 titles without change the category name?
0
votes
1answer
13 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
0
votes
0answers
64 views

Magento 2: Category page empty after re-index (E.E 2.2.9)

I am working on Magento E.E 2.2.9 Category page is not able to display product once I ran re-index. I ran re-index using crontab. Category pages are empty until I flush cache manually. Any idea ...
4
votes
1answer
35 views

Magento 2 - All Products Page with filters and Pagination

I need to create a page where product collection from all categories or you can say from root level category (Default Category) generally it has id 2. I need to make sure that the page is look like ...
0
votes
0answers
24 views

Category SQL error

I recently found the following error in Magento2 log. Reading the query is missing there's an error in where condition --> WHERE (()) How I can debug? Tryed a crude "grep" in my filesystem but I ...