Questions tagged [attribute-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
302 views

Magento 2.3: How to add new product attribute options programmatically on Controller save?

Is there a way to add new options, programmatically, for a product attribute with attribute code 'brand' that is already created from admin? I want to add new options on Controller Save action. The ...
mechanic's user avatar
  • 360
0 votes
1 answer
154 views

Getting List / Deleting the Unused Option values using API in Magento 2

Need to get all the unused attribute value and delete it via API. How to get the Unused attribute list using SQL Query.
Sabareesh's user avatar
  • 328
0 votes
2 answers
2k views

How to retrieve product attributes values in Magento 2

I want to get configuration product attributes values in phtml file. Above two value i want to get in magento 2. So please Explain me How to get. THANKS.
Mohit Patel's user avatar
  • 3,681
1 vote
0 answers
138 views

how to add a value to new column created by my module in the table 'sales_order_item'

How I can add a value to new column created by my module in the table 'sales_order_item'? I have a problem, could you help me ? I explain : In the Magento table, 'eav attribute set', the 'attribute ...
learner's user avatar
  • 21
0 votes
0 answers
22 views

Magento 2.3 How get selected options from custom product attribute to list format?

How i can get only selected options from custom multi-select attribute in block? I used $attribute = $_product->getResource()->getAttribute('attribute_name')->getFrontend()->getValue($...
David Young's user avatar
0 votes
0 answers
35 views

magento atrributes values not showing on admin and frontend

I have upgraded magento version from 2.1.8 EE to magento 2.3.1, after upgrade some attributes values are not showing in admin and frontend, like full short description is showing blank in admin and so ...
chanchal's user avatar
  • 407
2 votes
1 answer
120 views

Magento 2 - All products attributes updated after update from collection

I have got collection in $collecction from Magento\Catalog\Model\ResourceModel\Product\CollectionFactory with some certain conditions I am updating a custom attribute viewed_count in foreach loop ...
Shoaib Munir's user avatar
  • 9,344
0 votes
1 answer
233 views

How to save programatically attribute option value in Default Store View in attribute in magento 1.9?

How to save programatically attribute option value in Default Store View in attribute in magento 1.9? public function saveAttributeValueAction() { $arg_attribute = 'ram'; $...
Devidas's user avatar
  • 3,328
0 votes
1 answer
707 views

Customer custome attribute value get by customer id in magento 1.9

Hi I have custom customer attribute for customer in my magento 1.9. I want that custom attribute value by customer id.
Divyarajsinh Dodiya's user avatar
0 votes
1 answer
774 views

Magento2. Error with attributes on front-end

After filling in all field in an attribute (id160) i get an error on the frontend when loading this page. (Exception): Notice: Array to string conversion in /vendor/magento/module-catalog/Block/...
Ronny's user avatar
  • 433
10 votes
3 answers
19k views

How to set cookie in magento 2?

I need to set a value to the cookie in a phtml file and I need to get it's value in another phtml file. Is it possible to set and get the values using jQuery?
Rita Jose's user avatar
  • 1,842
1 vote
2 answers
1k views

Update single attribute value

I'm a Magento newbee so please forgive me if there is ... a crap in the code ... Sending Ajax request with Brand ID and current state "status = 1 or 0" and would like to update state in table: public ...
Rob D. A.'s user avatar
  • 867
1 vote
0 answers
32 views

How to add a value to the final product that would not be multiply by the number of products from the basket?

How to add a value to the final product that would not be multiplied by the number of products from the basket? If I have for example a wedding invitation that I want to sell on my website and the ...
Rilandi's user avatar
  • 11
2 votes
0 answers
878 views

Magento 2 : How to Load a Cms Block and Set Custom Variable Values

I created cms block with custom variable name 'redemption'. I wanted to load cms block, pass and replace value to custom variable 'redemption'. Please help, It's Urgent.
Akhil Kurian's user avatar