Questions tagged [category-attribute]

Denotes questions related to attributes of categories.

Filter by
Sorted by
Tagged with
0
votes
3answers
33 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
18 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
53 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
0
votes
2answers
61 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
28 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
0answers
23 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
17 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
19 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
27 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
112 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
54 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
47 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
29 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
26 views

Magento 2: Snippets for call (get) product attributes incl. helper via if statement in phtml to get the values in custom tab in product page

Trying to reproduce the phtml files content from M1.9 to M2.3. Calling a phtml file via: {{block class="Magento\Framework\View\Element\Template" name="delivery" template="Magento_Theme::html/...
0
votes
0answers
26 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 ...
2
votes
0answers
38 views

Magento 2 - Get Categories by Custom Category Attribute

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) all categories ...
0
votes
2answers
73 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 ...
2
votes
0answers
22 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
141 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
1answer
183 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
59 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
3answers
471 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
45 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
1answer
129 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 ...
0
votes
0answers
196 views

Magento2 - category update attribute and add attribute not working together?

I need to change existing category attribute code from "thumbnail" to "thumbnail_migration" and just after that create a new category attribute with name "thumbnail". In upgrade data I have ...
1
vote
0answers
18 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
0answers
205 views

Magento2 - Category Thumbnail image not uploading

I am using an extension of Amasty for layered navigation which also provides facility of category thumbnail image upload. Unfortunately the upload of Thumbnail is not working for me, I am not getting ...
0
votes
2answers
111 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
716 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 ...
0
votes
1answer
333 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
0answers
50 views

The value of attribute “Ratio” must be set

I am using magento 2.2.6, and when i am trying to create new category, i am getting this error "The value of attribute "Ratio" must be set" Where is this attribute, i am not able to find in database. ...
1
vote
1answer
830 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( ...
1
vote
2answers
509 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
1k 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 ...
0
votes
0answers
120 views

Magento 2 Can't Save Category

I am receiving the following error when trying to save category: The value of attribute "name" must be set I've no idea what could have happened I've got no Layout Update XML Exception.log: [...
0
votes
1answer
122 views

How to get product root category name or ID using product ID in magento 2.2.6?

I am working on magento 2.2.6 I am using file vendor/magento/module-catalog/Helper/Product/View.php In this, I am trying to get root category name or ID of product using product id in function ...
1
vote
0answers
22 views

Custom category attribute not showing back end

I have a small module that creates an attribute for categories. Works fine on my dev site but not on my live. I can see the module in system>config>advanced>advanced and it is enabled. I can't see ...
0
votes
1answer
158 views

Magento2: Custom attribute of category. Add default value in all existing category once we InstallData script

Here I need to Add defaul value of my custom category attribute in all existing category while I install the script. here is my code: <?php namespace CommercePundit\HtmlSitemap\Setup; use ...
0
votes
2answers
173 views

Can't get a new category attribute value

I have added a new category attribute but after creating attribute, Im not able to fetch value... A custom attribute is visible on the backend but how could I get value. I have followed this ...
1
vote
1answer
231 views

Magento2 : Base table or view not found: 1146 Table 'magento_mymodule.catalog_category_entity_textarea' doesn't exist

I have created a custom module to create attribute for categories in Magento 2.2.4. When I run the setup upgrade command then it gave me this error. 1146 Table 'magento_mymodule....
0
votes
1answer
69 views

How increase product view size on category page?

I am using magento 1.9 for learning purpose. On category page i want to increase product view dimension and make the changes in list.phtml file. Also change the column count 3 in place of 4, But on ...
0
votes
0answers
105 views

Magento 2 Category custom attribute display standard way

I have added image upload attribute Category_Banner to category but in category collection it doesn't come. Loaded all the categories collection and loading the category by id under foreach loop. ...
0
votes
1answer
19 views

The sequence of Category form messed up after inserting a new attribute

I have a new attribute on category which is successfully installed and show on Category form. I planned to place it inside field group Display Settings which is successful. However, the sequence is ...
1
vote
3answers
756 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 ...
1
vote
3answers
1k views

Magento2 : Add Category Attribute Dropdown

I want to Create Category Attribute With Drop down Drop down options are all list of Product Attributes like http://prntscr.com/juglsn : I tried but it didn't works 1.In setup file $eavSetup -> ...
1
vote
2answers
190 views

Issue in creating custom category attribute Magento2

I am creating custom attribute of type select, its creating but not picking values from defined source, instead its showing 'yes/no' option to select . Here is mine code in Setup/InstallData.php ...
0
votes
1answer
818 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.
0
votes
1answer
374 views

Add “Use Default Option” In Custom Category Attribute In Magento 2

I am creating a custom category attribute. When I am changing the store view language, then Use Default Option not appearing.
0
votes
1answer
2k views

Magento 2 : How to create custom Fieldset and Add custom attribute In It?

I am trying at custom attribute to category edit form in Magento 2.2.3 admin. I have created category_form.xml at below path. Vendor/Module/view/adminhtml/ui_component/catgory_form.xml <?xml ...
1
vote
2answers
1k views

Custom image upload attribute for category not working in Magento 2.2.3

I have upgraded magento 2.1.7 to 2.2.3. I have some custom image attribute in category. It was working fine in magento 2.1.7 but not working in upgraded magento 2.2.3