Wrong dateformat for backordered products
-
I have some products on backorder, and google wants me to set an availability date for these products.
And so I’ve done.
But now Google complaints that the date is in the wrong format, they are telling me to add it in this format:
YYYY-MM-DDTtt:mm:ssZ (ISO 8601)
https://ibb.co/DkD64MbBut my shops are Norwegian, and in my Google Listings and Ads plugin (Product Edit) I can set the date like this:
DD.MM.YYYY
https://ibb.co/BrXhwySDo you have any suggestions?
-
Hi there @gomle 👋
Do you have any suggestions?
Thanks for reaching out. Happy to help you with this!
I understand that the date format needs to be adjusted, in order for the availability of the store items on backorder to appear correctly on Google.Since version 1.4.0 of the plugin (direct link to the tweak here), it uses the WordPress date and time formats on the Product Feed page. Therefore, you need to change the date and time format, in your site’s
Settings > General
screen, for it to take effect.I trust that points you in the right direction, but if you have more questions, let us know. We’re happy to help.
- This reply was modified 1 year, 4 months ago by anastas10s (woo-hc). Reason: typo
Hmm?
So what you are saying is that in order for Google Listings and Ads to work correctly, I have to globally change the date to what is “normal in the US” through my Norwegian shop – where our “normal dateformat” alway has been dd.mm.yyyy.
If I change it like you say, this will change the way the dates look on register date, order date, shipping date, and all other dates – JUST so that Google can accept that I have products in backorder?
In other words – If I have Google Listings and Ads activated. There is no use for the time and date settings in WordPress, since the time and date always have to be set to fit the American standard 😅
I really hope I have misunderstood you here 🙂
But if not – it seems like there have to be room for a re-tweak after version 1.4 ?Hello @gomle,
So what you are saying is that in order for Google Listings and Ads to work correctly, I have to globally change the date to what is “normal in the US” through my Norwegian shop – where our “normal dateformat” alway has been dd.mm.yyyy.
I’m afraid that’s the case, you’ll need to change the site’s date format. I’m not sure if this was something that was from Google’s side, but you’re more than welcome to suggest a change or make a pull request on the plugins’ repository page: https://github.com/woocommerce/google-listings-and-ads
Issue reports are not limited to bugs, you can make suggestions as well. 😃
Hope this helps!
I really have no idea how to do that.
But now you guys know that this is in fact a quite big issue for many shops outside the US.
I therefore trust you to do this, as a part of supporting this plugin.
Hi @gomle,
Thank you for pointing that out. I went ahead with creating a feature request, which can be found here:
https://github.com/woocommerce/google-listings-and-ads/issues/1800Feel free to subscribe to it, so that you receive updates on it. The option is on the sidebar to the right of the page.
Thank you very much!
I was able to add some more information to this post, as it is a strange problem.
It seems to be correct both in Raw Format and in the DB, but Google still flags it and complaining about the date beeing in the wrong format.I actually found the issue. I am truly sorry for having spent your time on this.
I added dates to my products too far into the future.
When I changed 2024-08-25 to 2022-12-13 all of these problems got solved. Of course – Google could have given better error messages though!Since the dates are sometimes hard to give exact (Depending on supplier stock):
Would it be possible to programatically add the availability date e.g. 21 days ahead of current time, all the time – as in “using a code snippet” for this?Hi there @gomle 👋
Thank you very much!
I was able to add some more information to this post, as it is a strange problem.
It seems to be correct both in Raw Format and in the DB, but Google still flags it and complaining about the date beeing in the wrong format.That’s great, you are welcome!
I added dates to my products too far into the future.
When I changed 2024-08-25 to 2022-12-13 all of these problems got solved. Of course – Google could have given better error messages though!Indeed, setting a date farther than a year in the future was the culprit.
As explained here, it is mentioned in the Google docs about this field:Required if you set the availability [availability] attribute to preorder or backorder. (You can then provide the date (up to 1 year in the future) when your product will be shipped using the availability date [availability_date] attribute).
Now, regarding this:
Since the dates are sometimes hard to give exact (Depending on supplier stock):
Would it be possible to programatically add the availability date e.g. 21 days ahead of current time, all the time – as in “using a code snippet” for this?It all starts with allowing backorders. Feel free to review the related documentation, directly linked here, for more on that.
The core functionality can be enhanced using the Back In Stock Notifications plugin, for notifying customers when your products are restocked.
I trust that points you in the right direction, but if you have more questions, let us know. We’re happy to help.
Hello hello! 👋
Since we haven’t heard back from you in a while, I’m going to mark this as resolved – we’ll be here if/when you are ready.
Cheers.
- The topic ‘Wrong dateformat for backordered products’ is closed to new replies.