0

I'm trying to pull the text value from the product page in admin to display under grid mode on catalog/ product/ list.phtml. Its not pulling the value.

<?php if ($_product->getAttributeText('scratch_and_dent') == "Yes"): ?>
<p class="scratchDentprice">
<span class=""><?php echo $this->__('Our Price: $'); ?></span>
<?php echo $_product->getAttributeText('scratch_and_dent_price'); ?>
</p>
<?php endif; ?>
1
  • have enable scratch_and_dent for product listing from admin> attribute magement
    – Amit Bera
    Jun 16, 2015 at 19:25

1 Answer 1

1

Instead of:

<?php echo $_product->getAttributeText('scratch_and_dent_price'); ?>

It is:

<?php echo $_product->getData('scratch_and_dent_price'); ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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