WooCommerce - Change Product Metadata (Price) in custom url -- 2

Job ID: 31278020

Budget: €8 – €30 EUR

Hi!

We are working with a standar tiered price plugin to create bulk discounts on WooCommerce. These packs are connected with Google Merchant Center, but they are rejected because Google does not recognize the price of the pack, only do it with the individual product.

We use a custom url to connect this packs (ej. /?quantity=3) but the metadata is still that of the simple product.

We need to change the product metadata (price) and json markup in that custom url with the tiered price...

Example from a competitor:

Individual Product url: https://www.naturitas.es/p/suplementos/vitaminas/multivitaminicos/vitamina-d3-y-k2-60-capsulas-vegetales-solaray

With quantity=10: https://www.naturitas.es/p/suplementos/vitaminas/multivitaminicos/vitamina-d3-y-k2-60-capsulas-vegetales-solaray?u=10

You can see that the schema validator recognize the bulk price:

https://validator.schema.org/#url=https%3A%2F%2Fwww.naturitas.es%2Fp%2Fsuplementos%2Fvitaminas%2Fmultivitaminicos%2Fvitamina-d3-y-k2-60-capsulas-vegetales-solaray%3Fu%3D10
Related categories: PHP JavaScript WordPress WooCommerce