For prices in the product popups
The price will show based on the value stored in the <g:price> field of the product feed. If the <g:sale_price> field also has a value assigned, then <g:price> is crossed out and <g:sale_price> is displayed next to it.
No price appears if the price fields are empty or the value of <g:price> is zero.
Example where only <g:price> has a value:
Overview of what is displayed based on different feed input:
Feed | Result |
<g:price>19.99 EUR</g:price>
<g:sale_price></g:sale_price>
|
![]() |
<g:price>19.99 EUR</g:price>
<g:sale_price>19.99 EUR</g:sale_price>
|
|
<g:price>19.99 EUR</g:price>
<g:sale_price>14.99 EUR</g:sale_price>
|
![]() |
<g:price>19.99 EUR</g:price>
<g:sale_price>0.00 EUR</g:sale_price>
|
![]() |
<g:price>0.00 EUR</g:price>
<g:sale_price></g:sale_price>
|
[no price will show] |
<g:price>0.00 EUR</g:price>
<g:sale_price>0.00 EUR</g:sale_price>
|
[no price will show] |
In case a TSV feed is used, the <g:price> mentioned above corresponds to the price header and the <g:sale_price> mentioned above corresponds to the sale price header.
For dynamic content rendered onto the pages
The business rules for when and how prices are displayed are defined in the HTML and CSS managed in the custom code editor.