0

how can i get the "Admin" label value, not the StoreView value

enter image description here

with

    $_product = $this->getProduct();
    $state = $_product->getResource()->getAttribute('m4y_state')->getFrontend()->getValue($_product);

    return $state;

i get the StoreView value, but i need the Admin Value (red).

enter image description here

How can i do that? Thanks for any help

  • Solve my Problem with ->setStoreId(0) – FloWord Mar 1 at 10:17
  • $_product = $this->getProduct(); $state = $_product->getResource()->getAttribute('m4y_state')->setStoreId(0)->getFrontend()->getValue($_product); – FloWord Mar 1 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.