Questions tagged [category-attribute]

Denotes questions related to attributes of categories.

Filter by
Sorted by
Tagged with
0
votes
1answer
973 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 ...
11
votes
7answers
40k views

Magento2 - Get category URL by ID

I'm trying to get the URL key of any given category with the ID. I have this; $categoryId = 3; $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $object_manager = $_objectManager-...
0
votes
4answers
2k views

How to get custom category attribute value in front end in Magento 2?

I am using Magento 2.3 I have Created one custom attribute "Popular Category" for categories. Now I am trying to get the value of this attribute in front end but I am not getting it. I have tried ...
3
votes
4answers
3k views

Magento as a product information management (PIM) tool for multiple marketplaces (ebay, amazon, Rakuten, etc)

We are selling products on over 10 different platforms, each of which has different category sets. Also, we are selling internationally and a product can belong to different categories on different ...
0
votes
1answer
24 views

Custom category attribute is not being saved - issue

I managed to create my custom attribute: $installer = $setup; $installer->startSetup(); $categorySetup = $this->categorySetupFactory->create(['setup' => $setup]); $...
2
votes
1answer
18 views

Install Data is not executed in magento 2

I am trying to create a category attribute: This is my file form Vendor/Module/Setup: use Magento\Catalog\Model\Category; use Magento\Catalog\Setup\CategorySetupFactory; use Magento\Framework\Setup\...
0
votes
2answers
15 views

Magento 2 Category Custom attribute doesn't exists error

I have created a module where i have added two custom attribute to category page. Here is my code. Setup\InstallDate.php <?php namespace Vendor\Module\Setup; use Magento\Eav\Setup\...
0
votes
1answer
20 views

Magento 2: how to change Category page design

I have a theme installed on my Magento V2.2.3 site and now i would like to change the category page design with requirements new custom fields for category option on each category if this category ...
0
votes
1answer
28 views

get Custom attributes category Magento 2

after add new custom attribute, i am trying to get my custom attribute category, filter by the parent id, actually it return me a null value or empty array I used $category->getData('label_text'), $...
0
votes
1answer
872 views

MySQL-Query: GROUP_CONCAT() doesn't work correctly

I try to execute this SQL-query, but I don't get the right result: SELECT k.product_id, product.sku, group_concat(i.value) FROM catalog_product_super_link AS par LEFT JOIN staging....
1
vote
1answer
977 views

Magento2: Category custom textarea with wysiwyg editor attribute value blank issue

I have created two custom category attribute with wysiwyg editor and my attributes also shows in categories. But my issue is if i'm adding content in one attribute using wysiwyg editor then another ...
0
votes
2answers
1k views

How search category by name or new attribute in magento 2

How to get category by name and custom attribute programmatically? Custom attribute is val_code. Custom code was added using InstallData
0
votes
1answer
20 views

Magento 2 adding custom category attribute to backend after being migrated from M1 1.9.4.1

I have a question regarding a custom category attribute that was added via a module/extension in a Magento 1.9.4.1 webshop and now is migrated correctly to the Magento 2 webshop (2.3.4). I checked the ...
1
vote
2answers
863 views

Magento2 Unable to save custom category attribute

I want a custom category attribute for my categories, so I have created a module with all the necessary files and code, in admin, I am able to see the custom field but when I am trying to save it the ...
2
votes
2answers
811 views

Magento 2 product attribute filter url rewrite?

I have override url-rewrite router in my custom module,and add my custom rewrite code in override router file. after filter url created like below : http://domainname.com/services.html?manufacturer=...
1
vote
3answers
1k views

Add Wysiwyg attribute to category in Magento 2.2.4

I followed this reference Inchoo to add new Wysiwyg attribute to category in Magento 2.2.4. It's working fine. My custom attribute successfully added in the category but it's showing only textarea ...
2
votes
1answer
2k views

Magento 2 - Get custom attribute within .phtml file using Magento\Catalog\Block\Navigation class?

I am trying to get a custom attribute value within my phtml file but struggling to get this to work? getData() & getCustomAttribute() doesn't seem to work. I believe this is because I am using the ...
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
2k views

How to create custom category attribute with wysiwyg editor in magento2?

Hi i want to add custom category attribute with wysiwyg enable editor i get the code of custom category attribute but not able to find with wysiwyg editor.if anyone is there help me please.
2
votes
1answer
2k views

Custom Category Image Attribute Preview

I've created a custom image attribute for the category. The image will be saved in media/catalog/category/example location. When I upload the image, preview showing as a broken image even though ...
0
votes
0answers
12 views

uploading category's images for multiple stores

I am Sharing 1 root category to multiple stores I've created (exactly 24 stores) each store have 2 store views (EN and AR) for English store views, I need to upload the images 1 time on "all stores" ...
0
votes
0answers
18 views

Can't get custom attribute for value magento 1.9.4.2

I have created a Custom Attribute ( attribute id: custom_attribute ) for the category. It shows up in the backend and able to save the value to it. I just wanted to print the value in the Category ...
1
vote
2answers
70 views

Magento 1.9 How to sort product in category page by stocks product

I want the products to be displayed on the category page, if available That is, first those that are stocks , then those that are not stocks I didn't find anything with the title in the attribute Is ...
1
vote
2answers
4k views

Set default value for attribute in Setup Script in Magento 2

I have created install script to add an attribute to category. Default value has to be set, thus 'default' => '1', is used. InstallData.php file: public function install(...
0
votes
1answer
33 views

How to add product category to page title as data attribute?

I am brand new to Magento and am a Wordpress developer and am trying to get my bearings on something that seems like it should be simple to accomplish. I am trying to simply add a data-attribute to my ...
0
votes
2answers
119 views

Magento 2 showing category in homepage with products using enable/disable attributes

How to get the all custom category on homepage with products. I want to create these types, Please check screens-short:- https://prnt.sc/r5b2q5 Showing this category:- Above category showing this ...
0
votes
1answer
127 views

How to add select multiple images attribute in category in Magento 2

I want to display more then one images of category in category page so i want to add more then one images in category in backend, please help me
0
votes
0answers
36 views

Multiple Images for categories in magento 2

I need to upload multiple images for categories like in products in Magento 2. How can I do this? Any help is appreciated. Thank you
0
votes
1answer
2k views

Magento2: Category Select Attribute Not Saving?

I've registered a custom select option to my categories using the files below in my module. The select option appears in the backend with my custom options however it doesn't save the selected option ...
0
votes
1answer
33 views

Magento 2 : How can i get all category with all eav attributes in collection?

How can I get all categories with all EAV attributes in the collection? $categories = $objectManager->create('Magento\Catalog\Model\ResourceModel\Category\Collection'); $categories->...
1
vote
2answers
694 views

Magento 2: Custom category attribute is missing scope

In Magento 2.2.7 I have created a custom attribute (textarea, wysiwyg) for categories. This is my InstallData namespace MyVendor\Mods\Setup; use Magento\Framework\Setup\InstallDataInterface; use ...
2
votes
1answer
695 views

Magento how to set attribute seo meta title and description product

I have a catalog of 30,000 products on Magento, and I would make sure that the plugin I of seo (free) all products have tag, store name, category name. I turned on the network, to see how to build an ...
2
votes
1answer
127 views

Magento 2.3: Create custom category attribute with WYSIWYG

I want to add WYSIWYG enabled textareas as custom fields for categories. I have read all related topics on this site for this issue, but none of the mentioned answers seem to do the trick. Can ...
0
votes
3answers
276 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?
1
vote
0answers
17 views

M2.3 - Adding custom category image removes default thumbnail

I've used this module to add an extra category image field to my categories. The field itself is working fine, but whenever I add an image to it, it removes the default Category Image. When I go to ...
0
votes
2answers
36 views

Custom Category Attribute saves in fresh instance but not in migrated instance

I have added custom attribute to category. <?php namespace ................ use Magento\Framework\Module\Setup\Migration; use Magento\Framework\Setup\InstallDataInterface; use Magento\Framework\...
0
votes
0answers
46 views

Magento 2.3.2 - “A technical problem with the server created an error” category custom image attribute

I have created a module for custom category image attribute. But whenever I uploaded the image it's showing - A technical problem with the server created an error. Try again to continue what you were ...
3
votes
1answer
649 views

How to create and display custom category attributes

As the title says, i want to be able to create and display custom category attributes. I tried this extension: http://www.magentocommerce.com/magento-connect/manage-category-customer-and-customer-...
0
votes
1answer
266 views

Magento 2 wysiwyg editor hide/show button not showing with custom category attribute?

I have create custom category attribute as wysiwyg editor under content fieldset. Attribute is showing and working fine but I want to add Hide/Show Editor button with atribute. How can I do this? ...
0
votes
1answer
38 views

Wrong sort order on category page Magento 2.3.0

I have created an attribute that is used for sorting on the category pages. The sorting order is numeric. Expectation is that sorting order is: 1. 1 2. 2 3. 11 But the actual sort order is: 1. ...
1
vote
1answer
80 views

How to remove custom attribute of category using object manager in magento 2

I created 4 custom attributes for category. Now I want to remove it. I want to use object manager for delete attributes and its values. See this image. Created attributes are display in this manner. ...
0
votes
0answers
24 views

Magento 2.3.1 Sorting on front end category page not working

I've added a custom attribute 'screen_size' and given it set values as drop-down list, but when I've added it as a sort-able field it's not actually picking up the value of the attribute but rather ...
3
votes
2answers
99 views

Magento 2 - Get Categories by Custom Category Attribute

In Magento2 - I've created a yes/no toggle category attribute named is_featured, its shown as "Homepage Category" in the screenshot below. I'd like to be able to display (on the homepage cms page) ...
11
votes
8answers
27k views

Magento 2 Get category id using category title

I would like get category id by only using category title by using this kind of function. ->load($categoryTitle, 'title') ->getId(); Use case: Get category id by title and put id data to array ...
0
votes
0answers
66 views

Magento 2 Create Date Attribute for Category

I can create date attribute for category but for some reasons date is not saved in database. Please check code and assist me if I am missing any backend model or anything else. app/code/Namespace/...
0
votes
1answer
48 views

Get Custom Category Attribute Value On List Page : Magento 2

i have created custom category attribute now i want to get the attribute value on list.phtml page i can i achieve this in magento2. <?php if($category->getColThreeCategory()): ?> <...
1
vote
2answers
173 views

Magento 2: Get custom category attributes by category id

I have category ID and need to get all custom attribute for example thumbnail image. my code does not return all attributes $category = $this->categoryRepository->get($childId, $this->...
2
votes
0answers
137 views

plugin create seo question attribute default title product [closed]

I downloaded this plugin, and in default meta title product, I would select the attribute category. I do not know how to create it and how to set it. I wish in SEO product and the name and the name of ...
1
vote
1answer
276 views

Use Default Value checkbox for custom category ui_component

I added a custom category attribute "Listing Image" and want to display the checkbox "Set Default Value", like "Thumbnail" and "Category Image". I already compared the ui_component, but couldn't find ...
0
votes
2answers
2k views

Magento 1.9 MySQL bulk enable products

Trying to enable all products based on category. I have category id = 14. Went into MySQL PHPMyAdmin and fetched all products from that category: SELECT * FROM catalog_category_product where ...

1
2 3 4 5