Price Valid Until google field price field "priceValidUntil"

Merchant
Lähettäjä United Kingdom
Jäsen alkaen maalisk. 2021

Price Valid Until google field price field "priceValidUntil"
If I do a source page view it exists but with a "null" entry.

Any idea where this can be set ? Google needs it or errors.

This needs to be used even with "qty price discounts" as well as Campaigns.
Regards

tim
Founder
Lähettäjä Sweden
Jäsen alkaen toukok. 2013
tim

Do they have a settings value or instruction for those with "continous, until further notice"?

Demonstrative examples of how to nail qty price breaks and discount much appreciated.

tim
Founder
Lähettäjä Sweden
Jäsen alkaen toukok. 2013
tim

You will need to add this commit.
https://github.com/litecart/litecart/commit/0308ab01ae0dafc83a1a2ad9ac7cc36eeca176de

Then in pages/feeds/google_shopping.csv.inc.php:

Find

'sale_price' => (!empty($product['campaign_price']) ? currency::format_raw(tax::get_price($product['campaign_price'], $product['tax_class_id']), currency::$selected['code']) .' '. currency::$selected['code'] : ''),

After that, add

'priceValidUntil' => (!empty($product['campaign_price']) ? date('c', strtotime($product['campaign_end_date'])) : ''),
Merchant
Lähettäjä United Kingdom
Jäsen alkaen maalisk. 2021

well done !

Sinä
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.