Closed
Description
Preconditions (*)
Version 2.2.6 (Community Edition).
Steps to reproduce (*)
- Several store views with several currency rates.
- View source code of a simple product in a store view with a currency (USD) different from the base currency (EUR).
Expected result (*)
Meta tag "product:price:amount" should contain the price converted in USD.
Actual result (*)
Meta tag "product:price:amount" contains the price in EUR.
Meta tag "product:price:currency" on the other hand is correct (USD).
In module-catalog/view/frontend/templates/product/view/opengraph/general.phtml the following line is wrong :
<?php if ($priceAmount = $block->getProduct()->getFinalPrice()):?>
It should be :
<?php if ($priceAmount = $block->getProduct()->getPriceInfo()->getPrice('final_price')->getValue()):?>
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates that Pull Request has been created to fix issueThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release