How can the price from the product master data be inserted in the product export in addition to the prices for the customer group?

Shopware has two data fields:

* calculatedPrice (always the price from the ‘Master data’ tab)
* calculatedPrices (prices from the ‘Extended prices’ tab)
When exporting, Shopware checks whether a calculatedPrices exists. If so, this is used. See code example from Shopware Standard Google Export:
{% set price = product.calculatedPrice %}
{%- if product.calculatedPrices.count > 0 -%}
    {% set price = product.calculatedPrices.last %}
{%- endif -%}
{{ price.unitPrice|number_format(context.currency.itemRounding.decimals, ‘.’, ‘’) }} {{ context.currency.isoCode }}
Solution: Always access the price from the ‘Master data’ tab with the following code
{{ product.calculatedPrice.unitPrice|number_format(context.currency.itemRounding.decimals, ‘.’, ‘’) }}
Important to know: In both cases, the prices are always read out gross or net. So if the customer group is gross, then both the extended prices are gross and the price from the master data is gross.