Skip to content

Schema.org wrong price #92

@gregzawadzki

Description

@gregzawadzki

Theme uses following code to show prices on product page for Google etc.

<meta itemprop="price" content="{$productPrice}">

However, this might create price like:
<meta itemprop="price" content="939.332"> (real price is 939.33)

Google thinks its thousand separator not decimal separator and on listings shows enormous amount of 939.332,00 in this case.

Fix:
<meta itemprop="price" content="{$productPrice|round:2}">

To apply in product.tpl and product-wide.tpl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions