Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
26 views

Wrong dropdown attribute value on the admin panel magento 2.3.5-p2

I have trying to find something here but with no results. I have strange problem. We have multistore (8 views). All dropdown and multiselect attributes are global, but has different values for each ...
peter's user avatar
  • 11
0 votes
2 answers
223 views

Get Dropdown Value from a Custom Customer Address Attribute

I'm trying to get the frontend label of my custom address attribute and trying this:$address->getCustomAttribute("custom_attribute")->getValue(), gives me the value "95905" instead of the label. ...
Gonzalo Gutiérrez's user avatar
1 vote
1 answer
31 views

GetLocalizedLabel not working under Grouped Products

I'm trying to extract 3 attributes for every associated product under a grouped product page. I use a multistore Italian-English but if I use $stato_label= $_item->getResource()->...
Francesco's user avatar
0 votes
1 answer
422 views

magento 1.9 "new" label not showing in catalog view

I am not seeing the new label being applied on the catalog page. There are 2 labels that I have applied but only one is working. Here is code; Sale Label <?php if($this->helper('framework')-&...
Craig Gillett's user avatar
3 votes
1 answer
1k views

Get attibute label option for current store

I have a 'size' attribute with lot of option. For each option, I have translation for each my stores : I want to get the translation label for a product and for a given store. So : I load my ...
Kozame's user avatar
  • 964
2 votes
0 answers
123 views

How to always get the attribute label from "default store"?

I'm trying to improve an extension. Currently it returns attribute labels from the store that the item was purchased, but I need it to always return the labels from the default store. This is a ...
Metal Mathematician's user avatar
1 vote
1 answer
2k views

How to get selected option of the attribute for the product?

Struggling to get value of the selected option for product. Example:Product require assembly so created attribute dropdown Below few methods I've tried echo $data = $_product->getAssembly(); echo ...
Rob D. A.'s user avatar
  • 867
4 votes
2 answers
13k views

Magento 2: get attribute label (considering current store view)

I defined for 2 different store views 2 different attribut labels: $_product->getResource()->getAttribute($_code)->getFrontendLabel(); This is how I get the attribute Label, but this ...
Blackpanther0001's user avatar
2 votes
1 answer
10k views

Get attribute label by attribute code without load by product id

Is it possible to get the attribute label (depending on the storeview) only by the attribute code? I don't want to enter any product or product id. This is my code to get the attribute label: <?...
Reinsch's user avatar
  • 482