Linked Questions

2 votes
4 answers
12k views

Get specific attribute for each product on catalog page

On catalog page, I want to display custom attribute near each product (e.g. shoes_model). When I try to fetch it: $_product->getAttributeText('shoes_model'); // returns nothing ... it returns ...
Marvin3's user avatar
  • 639
3 votes
2 answers
2k views

How to get the value of an EAV attribute from a model class in Magento2

I have got an object of this model magento/catalog/model/product and I want to use one of the EAV attributes values of it. How to access this EAV attribute through model object.There is no issue with ...
Amin Memariani's user avatar
0 votes
2 answers
1k views

get Some custom attributes in Cart magento 2

I have added 2 custom attributes to product. I want to display them in the cart so how to proceed to get them in the cart page because i can't understand this form.phtml how it works?? I need a help ...
Developper Magento 's user avatar
0 votes
1 answer
1k views

Checkout Page List Item Add Custom Attribute

We have a custom product level attribute created in the Catalog. Whenever product added to the Cart, using events/Observer, I could bring down the custom attribute value to Quote.item. Now I need to ...
kadalamittai's user avatar
1 vote
1 answer
2k views

Output custom text attribute in catalog list.phtml (Magento 2)

I made a attribute set and custom text field attribute. Now I need the value of the attribute shown in list.phtml (catalog). I tried without success: Fail 1 <?php echo $product->...
Oliver Schmid's user avatar
1 vote
0 answers
850 views

Magento 2 : How to display custom values under product on cart page?

I have manually added one combo box on product view page. Now when customer add that product to the cart, I want to display selected combo box value on cart page. Please refer my below screen shot to ...
Krupali's user avatar
  • 379
1 vote
2 answers
655 views

Custom attribute in cart not working

Getting a custom attribute in the cart should be simple enough: adding a app/code/<Vendor>/<Module>/etc/catalog_attributes.xml with e.g. the following content: <?xml version="1.0"?> ...
fritzmg's user avatar
  • 747
0 votes
0 answers
569 views

magento 2: get configurable product custom attributes at checkout/confirmation page

I have configurable product with custom attributes (not front end visible) I get the $item from when looping over $items. I'm getting $items like so: $itemsVisible = $cart->getQuote()->...
vector's user avatar
  • 113
1 vote
0 answers
462 views

get specific option value and label

In the default.phtml for the checkout cart this is used to get all options: <?php if ($_options = $block->getOptionList()):?> <dl class="item-options"> <?php foreach ($...
steros's user avatar
  • 1,622
0 votes
0 answers
95 views

Custom attribute value required in catagory page by using plugins

I want to add value my custom attribute in catagory product page i am using this code "$temp= $subject->getCustomAttribute('option')->getValue();" it give me a value but value is not in my attribute ...
Wahaj Moin's user avatar