Skip to content
This repository has been archived by the owner on Jul 25, 2020. It is now read-only.

Commit

Permalink
Correct Product Price using Currency Helper (#63)
Browse files Browse the repository at this point in the history
Summary:
This helps especially with multi currency store as otherwise the price would be returned in base currency.
Closes #63

Reviewed By: mengyingdu

Differential Revision: D8323600

Pulled By: dmitridr

fbshipit-source-id: 891ad82
  • Loading branch information
pawelskowronek authored and facebook-github-bot committed Jun 8, 2018
1 parent 73f34ce commit 471490f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function getContentCategory() {
}

public function getValue() {
return Mage::registry('current_product')->getPrice();
$price = Mage::registry('current_product')->getPrice(); // Get price of the current product
$price = Mage::helper('core')->currency($price, false, false); // Get price in correct currency

return $price;
}
}

0 comments on commit 471490f

Please sign in to comment.