Last Updated a year ago
Merchant Center requires the time of availability of an item, while PrestaShop only has the date of availability. How do I deal with this?
PrestaShop only stores the availability date of the product:The date could be placed in the XML feed:
g:availability_date: 0000-00-00
According to the documentation for the XML feed, Google Merchant Center requires the date and time:
https://support.google.com/merchants/answer/6324470?hl=en
If the date and time are missing from the "availability_date" field, this may result in an error, causing your product to be rejected by Google Merchant Center.
The Feeder in such situations allows you to modify the data yourself, which will go into the XML.
To meet the expectations of the GMC documentation, the time should be added to the date. This can be done using the regex modifier. The added time can be, for example, midnight: T00:00-0000.
In order to add a time (midnight) to the availability date of an item from PrestaShop, which will appear together with the date in the XML feed, the regex modifier should be added in the edit of the availability date field:
Condition:
/^(.+)$/
Replacement:
$1T00:00-0000