0

I want to add the following custom attribute to my upsell block:

enter image description here

So I tried

        <?php $_link->getBasePriceAmount(); ?>

and

        <?php $_link->getAttributeText('base_price_amount'); ?>

but both don't work.

1

My bad I forgot "echo" :/ ... the first variety works for text fields

  • if you solved the problem, please mark the answer as accepted (as soon as you are allowed to). – Marius Feb 4 '15 at 12:20
1
$_link->getResource()->getAttribute('base_price_amount')->getFrontend()->getValue($_link);

it is not work then you need to enable this attribute

used in product listing value to **Yes**

and try to get data by <?php $_link->getBasePriceAmount(); ?>

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.