Questions tagged [category-attribute]

Denotes questions related to attributes of categories.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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
16 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
37 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 ...
0
votes
1answer
31 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
0answers
30 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
29 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->...
0
votes
2answers
94 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 ...
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
0answers
45 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 ...
0
votes
2answers
35 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
1answer
221 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
35 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
70 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
23 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 ...
0
votes
0answers
60 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
41 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()): ?> <...
2
votes
1answer
97 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 ...
1
vote
2answers
141 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->...
0
votes
3answers
215 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
1answer
249 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
50 views

UpgradeData.php script is not Working

I want to remove some new category attributes but it is not working. Am I missing something? I dont know what is the problem. Please someone help it.. UpgradeData.php <?php namespace Vendor\...
1
vote
1answer
21 views

when i add category it give me this “Secondary Description” attribute value is empty"

Suddenly Magento starts giving this error ... I tried to var_dump() what is missing, also check the file but there is no problem with it.
3
votes
3answers
254 views

Magento2 How to get category custom image attribute on frontend phtml page

I need to get category custom image attribute on frontend. Anyone have solution for this? Thanks
1
vote
2answers
718 views

Magento2: Adding custom attribute to category doesn't show store specific value

I have created a custom category attribute using the custom code from here, attribute created successfully and able to save the value. But I want to save store specific value in this custom attribute,...
0
votes
0answers
97 views

Magento 2 - Category attribute not getting saved to database

I am facing an issue where if i update few information such as meta title, meta keywords, meta description from admin panel for any category, then the meta title is not getting saved to database. ...
0
votes
1answer
114 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
1answer
28 views

Remove category attribute script not working in magento 2.3.1

Hi I am trying to remove the category attribute using Uninstall script but it is not working. Here is my code. Setup\Uninstall.php <?php namespace Company\Module\Setup; use Magento\Eav\Setup\...
0
votes
0answers
161 views

Adding 'insert images' button to WYSIWYG editor for category default attribute 'description' / remove setting from ui xml file

Is there any chance to add the image button to the WYSIWYG editor for the category description? The button is remove by the ui category_form.xml setting files_browser_window_url = false. magento/...
0
votes
0answers
39 views

Magento 2 : Data not display in custom field of category edit page

In magento 2.3.1, I added custom field in category edit page and it's display in category edit page. But, I can't get data of that field in edit page field. How can I get it? Any help would be ...
0
votes
1answer
874 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
2answers
171 views

Magento 2.3 : Get category attribute by store wise

I have used below code to get attribute value, $category = $this->registry->registry('current_category'); $external_url = $category->getData('attribute_code'); How to get it by store ...
3
votes
1answer
121 views

Getting Custom Image Attribute in Frontend

I've followed a tutorial found here: https://webkul.com/blog/add-custom-image-attribute-category-magento-2/ With a slight modification which can be found in the InstallData, where I specified '...
0
votes
1answer
117 views

File Upload as Category Attribute - Magento2

I want to create a custom attribute for Category, which is File Attribute. I want to upload any kind of documents in it. Like PDF,txt, doc, etc,. Anyone helps me to do that via setup Upgrade? Same ...
0
votes
0answers
36 views

Magento 2.3 : Category attribute disabled when changing the store?

In Magento 2.3 we have few custom attribute and one of which is Wyswyg type and that went disabled i.e., can't editable when switching store. NOTE : when changing the use default option from ...
3
votes
2answers
89 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) ...
0
votes
2answers
317 views

How to create category attribute of type int in Magento 2?

I am using Magento 2.3 I have created the Custom extension for category attribute "Popular category" and I have installed this extension successfully but the issue is I have set the default value as ...
3
votes
0answers
28 views

issues while editing the custom attribute for a category in multi-language store

My store is multilanguage and I created an image type attribute for my category. What happens is that when I edit this image with the "all store views" option enabled, it changes correctly in all ...
3
votes
2answers
462 views

Category attribute is not being saved

I have two custom attributes for categories. The code for both is similar apart from the attribute_code but one is not being saved when trying to add a value in adminhtml. That's the UpgradeData.php ...
1
vote
2answers
727 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=...
0
votes
1answer
103 views

adding custom attribute to category

I'm trying to add a new custom image attribute for category, following the guide here "https://webkul.com/blog/add-custom-image-attribute-category-magento-2/comment-page-1/#comment-16835" However, ...
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 ...
1
vote
0answers
88 views

Save an EAV attribute in Magento2 without touching the model, repository

This can be done easily in magento1 with the saveAttribute() -method of Mage_Eav_Model_Entity_Abstract . For example, if you only need to save the is_active -flag for a category, you can do: $data = ...
1
vote
2answers
608 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 ...
1
vote
0answers
20 views

How to skip any category in seo meta title template?

We have magento 2 on website we have 4 categories, we sell photocopier parts, let me give an example what issue we are facing and what we want. Konica Minolta - Bizhub Color Series- Bizhub 203 - ...
0
votes
2answers
372 views

Scope Store not working for custom category attribute

We are using Magento 2.2.6 and created a new category attribute. But the store_view scope is not working. I searched already in the database and also diverse blogs on the internet but don't get a ...
7
votes
3answers
1k views

Set Use Default Value for all categories attributes Magento 2

I have around 1260 categories.If i switch the store view , the all attributes have own value.But i want to set the all attribute values as parent main store view value. I can not open each category ...
1
vote
1answer
873 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 ...
1
vote
1answer
2k views

Category collection with filter Magento2

I have created custom Drop down attribute for category with attribute_code is "is_homecategory" Used below methods to create it. Setup/InstallData.php public function install( ...
2
votes
2answers
1k views

Custom category attribute is not showing in magento2

I have created the custom attribute using the solution given here. Create Custom category Yes/No attribute magento2 The attribute is created and i can see entry in database eav_attribute table. But ...
1
vote
3answers
3k views

Create Custom category Yes/No attribute magento2

Is it possible to create the custom attribute for a category called is_featuted category as 'Yes/No' attribute? I am looking for code how to create the custom attribute for category and get all the ...

1
2 3 4 5