1

I need to display custom attribute below my product price, how can i get custom attribute and display on products price.

1
  1. You can use below code to get your attribute.

$_product->getData('yourattributecode');

  1. Go to your theme template/catalog/product/view.phtml file.
  2. Search below code.
 <?php echo $this->getPriceHtml($_product, true) ?>
  1. Paste your code after this, for example.

echo $this->getPriceHtml($_product, true);

$_product->getData('yourattributecode');

  1. Design it accordingly, do not forget to remove the cache and check.
10
  • does path right
    – Gem
    Nov 21 '16 at 15:12
  • /public_html/app/design/frontend/default/theme327k/template/catalog/product
    – Gem
    Nov 21 '16 at 15:12
  • Does path right ??
    – Gem
    Nov 21 '16 at 15:21
  • Yes, you can go with view.php Nov 21 '16 at 15:32
  • 1
    Check or fing getpricehtml in the file Nov 22 '16 at 3:56

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.