Skip to content

FinalPrice pushed as exclude tax from PDP #312

@mamsincl

Description

@mamsincl

Environment details

PHP version: 8.1.28
Magento version: 2.4.5-p9
Klaviyo extension version: 4.1.3
(Magento Cloud, so please do not judge the php version)

Steps to reproduce

Visit PDP
check the rendered klaviyo.push payload: discrepancy in FinalPrice and the rendered price for the end customer
image

Expected result

FinalPrice is set to be the same as the rendered price

OR

the FinalPrice should follow the visibility setting of product price

Actual result

final price without tax added to JSON payload

Additional information

https://github.com/klaviyo/magento2-klaviyo/blob/master/Block/Catalog/Product/ViewedProduct.php#L161

when this being changed to use getAmount()->getValue() on the final price object - instead of getValue(), the include tax price being added as FinalPrice

also, please see
https://belvg.com/blog/the-functionality-and-basic-concepts-of-price-generation-in-magento-2.html
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions