1

I'm trying to add the product price to the share wishlist email but I am not having any luck.

Here's what I have tried so far:

app/design/frontend/enterprise/allbeauty/template/wishlist/email/items.phtml

I've done a var_dump of the $_product variable and can see that price is available so I have added this code to line 38

<p><?php echo $_product = $item->getProduct(['price']) ?></p>

This hasn't worked so I would like to know if there is a better way to do it?

2
  • 1
    try $item->getProduct()->getData('price')
    – Amit Bera
    Commented Mar 19, 2015 at 10:23
  • And to get it formatted: <?php echo Mage::helper('core')->currency($item->getProduct()->getData('price')) ?> Commented Mar 19, 2015 at 10:35

1 Answer 1

1

Please try this

$item->getProduct()->getData('price')

For getting proper ways try this

<?php echo Mage::helper('core')->currency($item->getProduct()->getPrice()) ?>

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.