OussamaOBO / gshoppingcontent-php

Automatically exported from code.google.com/p/gshoppingcontent-php
Other
0 stars 0 forks source link

Cannot submit products with free shipping #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create product
2. addShipping('DE',null,0.0,'EUR',null);
3. try to submit product (insertProduct)

What is the expected output? What do you see instead?
created 201 expected, error 400 instead

What version of the product are you using? On what operating system?

---

Please provide any additional information below.

You could use "$price !== null" instead of "$price != null" so 0 is allowed for 
price

Original issue reported on code.google.com by d...@rakuten.de on 1 Mar 2012 at 2:52

GoogleCodeExporter commented 8 years ago
Dev,

Please use strings for attribute values.

As the docstring states:
string      $price      The shipping price to set. Defaults to null.
http://gshoppingcontent-php.appspot.com/GShoppingContent/GSC_Product.html#method
addShipping

Original comment by dhermes@google.com on 23 Apr 2012 at 10:12