Good afternoon everyone!
I need some guidance regarding Google Shopping. The issue is:
On the PDP, we’re using JS to get the product’s discount value and display it on the front-end, like this:
So, VTEX sends Google the value that’s registered in the CMS, not the one calculated on the front-end, which is the value I need to show in G. Shopping.
I’d like to understand how I can have all 3 values in VTEX, so I no longer need the JS customization and can send the PIX price to G. Shopping:
- The base from price: R$ 2,299.00;
- The sale price: R$ 1,949.00;
- The computed PIX upfront price: R$ 1,851.55
I’ve already read the documentation but couldn’t find answers to my questions. I don’t know how to define the computed value.
Thanks in advance.
Hi Antonio,
we have some documentation on the subject, see if it helps you:
Keep in mind that some configurations are required for the cash price to work correctly in GS.
- The integration will pull the cash price that was previously configured in the Checkout, as described in this article (with the same ID configured in the promotion — in this case, the PIX ID).
- On the product page, the cash price must also be displayed for the crawler to read it (this feature is natively available through the
vtex.product-price component in the product-spot-price block).
- Products sent to the integration must have fixed prices.
- It is important to create a 0% price rule to force a price update (changing a promotion does not trigger a price update to the marketplace).
- Keep the promotion conditioned only to the PIX payment method.
- The field
"Consider discount for payment with boleto in the submitted price (Cash discount)" must be set to YES in the integration card.
Karina Mota
Field Software Engineer | VTEX
Good afternoon Karina. Thank you so much for getting back to me!
I had a question. Regarding this component, vtex.product-price in the product-spot-price block. Are they from IO? My store is legacy.
Good morning, Antonio!
For stores on legacy CMS we have the following tutorial, which is also available in the documentation Configure cash price discount | VTEX Help Center:
Karina Mota
Field Software Engineer | VTEX
Good afternoon Karina.
Thank you so much for the guidance! I’ll give it a try here and, if needed, I’ll get back to you.
Good afternoon Karina!
Just letting you know that I managed to resolve the situation with your help. In addition to that, it was necessary to involve the media team to handle issues that went beyond the front-end.
Good morning, Antonio!
I’m glad the issue has been resolved! 
Karina Mota
Field Software Engineer | VTEX