php-google-merchant-feed icon indicating copy to clipboard operation
php-google-merchant-feed copied to clipboard

Price format in readme's example is misleading

Open smknstd opened this issue 3 years ago • 0 comments

In README.md, shipping price example is misleading as it looks like an amount in cents:

$shipping->setPrice('1300 USD');

It expects price in ISO 4217 format + max value is 1000 as seen here https://support.google.com/merchants/answer/6324484 so example probably should be:

$shipping->setPrice('13.50 USD');

same with product price https://support.google.com/merchants/answer/6324371, it could include a comment to clarify:

$item->setPrice("{$product->price} USD"); //ex: "89.90 USD"

What do you think ?

smknstd avatar Sep 08 '21 15:09 smknstd