google-listings-and-ads
google-listings-and-ads copied to clipboard
Checkout URL can't be set due to _gla Prefix
User story
zd-7122721 https://wordpress.org/support/topic/checkout-url-not-working-after-google-adding-gla_-to-product-id/
As mentioned in the thread, the merchant is trying to add a checkout link but since the ID is passed with the _gla
prefix they can't use the ?add-to-cart=
parameter.
There is also a way to add this in the product level, but from what I checked, this attribute isn't supported: https://support.google.com/merchants/answer/13580733?sjid=14960691092183889729-EU
How to reproduce the problem
Try to add a checkout URL as explained in the guide above.
Describe the solution you'd like
I'm not sure what's the best way to approach this, perhaps pass the product ID only in a dedicated attribute or add support for [checkout_link_template]
in the product level?