kilbot / WooCommerce-POS

:bangbang: All development now at https://github.com/wcpos.
http://wcpos.com
GNU General Public License v3.0
353 stars 125 forks source link

Troubles with Variation with Version 0.4 #78

Closed timit13 closed 9 years ago

timit13 commented 9 years ago

Hi Paul, I have some troubles with some variations. Sometimes only the label is shown, but not the variations (e.g. colors), sometimes the label and the variations are displayed but I can not choose one of them.

Thanks!

variation

kilbot commented 9 years ago

Hi Serge, thanks for posting the issue here. This is affecting a few users and I suspect it's not going to be an easy fix. The way the WC REST API outputs variations is very odd, I think there may be some deeper underlying problems.

Can you please do the following so we can look at the product JSON and see what's going on?

  1. On both those products, can you hover over the thumbnail to get the product id.
  2. Next go to http://YOURDOMAIN.com/wc-api/v2/products/ID?pos=1 for both products (swap YOURDOMAIN and ID for the product id)
  3. This should output the product JSON, can you please post this to https://gist.github.com/ for both products.
timit13 commented 9 years ago

example:

https://gist.github.com/kilbot/99d21df4b8738f256d1d

https://gist.github.com/kilbot/904d4f5c1ec1a9c1549b

https://gist.github.com/kilbot/c9992c73971a765cff15

(json moved to gist for clarity)

kilbot commented 9 years ago

Another thing I should have mentioned, can you make sure you have cleared your local products since the update to 0.4. Go to the support page in the POS and then look for the clear button next to products.

kilbot commented 9 years ago

Fixed with 5c9673b