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

Questions tagged [category]

Questions about product categories in the Magento catalog

0
votes
0answers
8 views

Category attribute's value does not get updated when in store emulation mode

I am trying to update some category attribute's value for a specific store, and i need to do it in emulation mode. So i do something like this: $appEmulation = Mage::getSingleton("core/...
0
votes
3answers
602 views

data scraping for categories and products

I want to scrape a data from one of ecommerce website. Where i want to pull all categories and products details. What will be the best method to do it?
0
votes
0answers
12 views

Magento 2 delete specific product categories

how can I delete specific categories for a product in Magento 2.Forex: I have a product with a,b,c categories, I have some conditions if the conditions meet my categories remains same but if those ...
1
vote
1answer
1k views

Fix Category Url Filter in Magento 2 Layered Navigation

By default in Magento 2, the category links look like this They lead to ?catId=xxx, instead of the better SEO friendly links, like the product name. I found a solution for this issue, but it's for ...
1
vote
1answer
18 views

Product Category is not displaying in front end in magento 1

I have created a new category in the backend. But it is not automatically showing in front end.
0
votes
0answers
24 views

Magento 2 - Hide or remove category form after verification on admin

I want to hide OR remove category form after a verification So, I succeed to hide it by creating category_form.xml on view\adminhtml\ui_component <fieldset name="general" sortOrder="5"> &...
2
votes
1answer
36 views

magento 2.3.1 “Catalog Category Link” widget blank

I am trying to use the following widget: {{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="ewrrewq" title="rqewrqrq" template="category/widget/link/link_block.phtml" id_path="...
0
votes
0answers
16 views

Getting all store categories into first store

I have created a multistore website and after that create root category for all different store, When I try to get store vice category I am getting all store categories into the first store $storeId =...
5
votes
2answers
64 views
+50

How to show Categories in System.xml in magento 2

I'm getting all the categories in System.xml using the class Vender\Module\Model\Config\Source\Category <?php namespace Vender\Module\Model\Config\Source; use Magento\Framework\Data\...
0
votes
2answers
926 views

How can i Bulk Change Category Page Title, Meta Description/Keywords

I need to Change SEO keywords for categories. How can i Bulk Change Category Page Title, Meta Description/Keywords.
3
votes
3answers
7k views

Magento 2 - Category list for custom magento system configuration section

My problem to get all available categories and display them in a system config multi-select field list. Here is a link for Magento 1.x. How can it be achieved for Magento 2.x?
0
votes
3answers
982 views

How to create custom link for category?

I have to create category in Magento backend, it display to front end, can it possible if category name is Ex. like Football, and when i click it football category, it redirect to another sites link? ...
1
vote
0answers
20 views

Product page and category page disappeared

Developed on developer mode and everything is OK, just set production mode, home page and admin panel is OK but category page completely disappeared and shows a blank page and also product page is ...
5
votes
3answers
151 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 ...
1
vote
2answers
8k views

How to Get All Custom Category Attribute Values?

I have created module that add custom attribute in Manage Categories section. Say My custom category attribute is category_sku, and it is a text field. I see that the value of my custom attribute is ...
0
votes
0answers
21 views

Always Showing Layered Navigation

So I've extended the Layered Navigation to include a few extra option collectables that are always there, regardless of filters applied. I would like to have the Layered Nav show up on all category ...
2
votes
1answer
42 views

URL Rewrite Duplicates and Product URL

My headache begins with a common URL Rewrite issue. I am running Magento 2.3 and rely heavily on an extension called Firebear Import / Export to handle my suppliers CSV feed imports. Let's say in ...
1
vote
1answer
17 views

How to create Admin-User for (Role) specific category-only access in magento2, It Possible or Not?

I have Created two-stores, And I have Add two Root-Category , But I Need to Create Two AdminUser for make(Role to) access for specific one-Store Category. Example (AdminUser A)-> Specific access ...
0
votes
1answer
25 views

Move static block on category page

I'm trying to have 2 pieces of static content on a category page. One directly beneath the category title and another below the product listings. I notice Categories have a "description" and support a ...
1
vote
3answers
4k views

Magento 2 - Category Listing in Left Column

I need to list out categories and child categories in the left nav of the category page and I'm trying to use this extension: https://github.com/Sebwite/magento2-category-sidebar As of now all that ...
4
votes
2answers
2k views

How to display category image in home page with custom css?

I want to display all of my category image with in home page. What should i do for this? I am using CE:1.9.2.4
3
votes
1answer
29 views

Magento 2.3.0 TinyMCE removes anchor tag href suffix when used with {{store url=''}}

I am trying to add category link in the CMS block. <ul class="list-unstyled"> <li><a href="{{store url=''}}test-collection.html">Test Collection</a></li> </ul> ...
1
vote
0answers
23 views

Magento2 Catalog Price Rule

Magento2 Catalog Price Rule Not Working when i create rule and click on save and apply rule not applied on Category without re-indexing my indexing is on update on save mode.
1
vote
3answers
4k views

Get custom category attribute value

I have created a custom category attribute using this tutorial http://gauss-development.com/blog/tutorials/adding-custom-category-attributes-magento/. <?php $installer = $this; $installer->...
4
votes
4answers
4k views

How to set category Is Anchor default to yes for all categories

I am trying to set category Is Anchor default to yes for all categories I tried these database queries UPDATE catalog_category_entity_int set value = 1 where attribute_id = 51; query run ...
2
votes
1answer
26 views

Magento 2 - Multiple collection on same block

I have a block where I want 3 different collections with different category filters. I have created collection object in constructor like this: protected $collection; public function __construct( ...
3
votes
1answer
4k views

Add a custom text field to categories in Magento 2

I want to add a new text area to my categories in Magento2, similar to this, but its for Magento 1: adding custom drop down field to category Basically there should be a field for each category where ...
2
votes
0answers
20 views

Error: getParentCategories() on null

I am working on my custom module where I added a button on Configurable products. The Content I was showing through button was by getting the Parent Category ID. The main issue I am facing is that ...
0
votes
1answer
1k views

Magento : How to Implement Automatic Related Products and Category Based Upsell Products

We have 5000 products at our webstore. We can not use magento default feature related products & upsell, cross-sell products. Is there any customize code or modules which can implement to display ...
1
vote
1answer
36 views

Magento 2 categories backend error: Call to a member function getId() on null in /var/www/src/vendor/magento/framework/Data/Tree/Dbp.php:380

When I try to open Catalog->Categories in the backend, I get the following error: Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/src/vendor/magento/framework/Data/...
0
votes
1answer
1k views

Check page url is category page or cms

I have an page url of magento site. my question is : how can i check the page url is category page or cms page or other page? for example: page URL is : http://example.com/craft.html(category page)...
5
votes
1answer
1k views

How to get first product from category in 1column.phtml?

I'm searching for a way to get the main image from the first (or random) product from the current category and use it as a background for the category title. As the title is created in 1column.phtml (...
0
votes
1answer
1k views

New Category Page Showing 404

So I have made a new category and copied all settings from another working category with a new name and url etc but I get a 404 when hitting the category frontend. When trying to debug this I have ...
0
votes
0answers
23 views

Layred navigation display all sub level category for non anchor category

I came to know that magento layred navigation is only render first child of current category on layred navigation for non anchor category. File for non anchor category HTML render. vendor\magento\...
0
votes
1answer
576 views

Category menu linking direct to product

I have a single product and I'd like to link straight to it from the category button is this possible? For example I have a category called "custom Cut Board" I only have one product attached to the ...
0
votes
1answer
13 views

How to get category image based on category ID?

I am trying to get an image which is uploaded for the category. & also I have category id and want to load complete details of that category based on category ID. How can I achieve this?
0
votes
1answer
30 views

Magento2: How to build a custom category link widget with attributes?

I'm trying to build a category link widget similar to the core one, but that can pull in additional information from the category selected, such as the image thumbnail and maybe some custom category ...
0
votes
0answers
22 views

How to create select form to choose categories in Magento 2.3.1?

I would like to create a search by selecting the categories in select form. So there will be four select forms and search button. &1 SELECT TYPE and there will be categories to select: ...
3
votes
1answer
2k 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....
2
votes
1answer
319 views

Magento 2 admin catalog category page isn't redirecting properly

I'm migrating a website from Magento 1.9.0.1 to 2.2, I've only migrated data, that's all I need, the migration completed sucessfully, all the products, customers, orders, categories are there, all ...
1
vote
4answers
12k views

Getting Sub Category Images in Magento2

I am trying to get at Category Images from within Magento_Catalog\template\navigation\left.phtml. This file shows a list of sub-categories. This is that file: <?php if (!$block->getCategory())...
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 ...
6
votes
2answers
6k 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 ...
3
votes
2answers
3k views

Magento2: Could not save product “330664” with position 0 to category 3567

When i save product after unassigned all category from product. I am getting error Could not save product "330664" with position 0 to category 3567 I have checked log and i can see same thing in ...
0
votes
0answers
99 views

Could not save product “” with position 0 to category - Magento 2 [duplicate]

I have gone through all the links as possible..but i don't find any solution for this.. From this Link ..its already fixed in 2.2.4 My current version is 2.2.7 and still i am facing the issue.. ...
-1
votes
1answer
141 views

removing categorty in product page is giving error [duplicate]

We are facing issues - https://prnt.sc/mgdybf why we are not able to remove the Deal and Pre Owned category. Could not save product "26652" with position 0 to category 435 What is this error ...
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 \...
3
votes
1answer
39 views

How to get all categories in configuration (system.xml). magento 2

I'm getting all the categories in system.xml using <?php namespace Vender\Module\Model\Config\Source; use Magento\Framework\Option\ArrayInterface; class Category implements ArrayInterface{ ...
1
vote
3answers
1k views

Cannot create category in magento2

I am trying magento 2 for first time and it's driving me crazy. I have successfully installed magento 2 on my cloud shared hosting and everything looks ok except these: Cannot create category: there ...