magento-2-seo icon indicating copy to clipboard operation
magento-2-seo copied to clipboard

MAP pricing is not accounted for.

Open wssweb opened this issue 2 years ago • 0 comments

Preconditions

  1. Magento: 2.4.2
  2. PHP: 7.4.27

Steps to reproduce

  1. Install extension
  2. Create a Product and set a "Minimum Advertised Price" under advanced pricing.
  3. Save product.

Expected result

  1. json structured data on product page should render the MAP price in the Offers/Price field.

Actual result

  1. 'final_price' is displayed instead, circumventing the MAP price. Making your product advertise at a lower price. (good for SEO, bad for vendor/manufacture business relations).

Problem

Mageplaza/Seo/Plugin/SeoRender.php does not account for MAP pricing on line 374 'price' => $currentProduct->getPriceInfo()->getPrice('final_price')->getValue(),

Bundled / Downloaded products would likewise be affected in their functions further down.

wssweb avatar Jan 10 '22 22:01 wssweb