[WOOCS LABS] Product pricing submitted via WC’s REST API incorrectly being converted
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from HansDR on December 6, 2019, 08:58I'm using Printify and Printify's WooCommerce plugin, and have a strange interaction with WOOCS. In brief:
- Printify sends new products to my WooCommerce store using the REST API
- The new product initially has the correct pricing, but a few seconds later the price changes. It looks like it's being incorrectly converted from NZD to USD even though the store's default currency is set to USD
I suspect that Printify's WooCommerce plugin may be to blame, but I'm not sure. That plugin is responsible for giving people live shipping quotes so it may be modifying the products and messing up the pricing.
Let me know if you need more info.
Hans
I'm using Printify and Printify's WooCommerce plugin, and have a strange interaction with WOOCS. In brief:
- Printify sends new products to my WooCommerce store using the REST API
- The new product initially has the correct pricing, but a few seconds later the price changes. It looks like it's being incorrectly converted from NZD to USD even though the store's default currency is set to USD
I suspect that Printify's WooCommerce plugin may be to blame, but I'm not sure. That plugin is responsible for giving people live shipping quotes so it may be modifying the products and messing up the pricing.
Let me know if you need more info.
Hans
Quote from Pablo Borysenco on December 6, 2019, 12:34Hello Hans
Please add wp-admin access ( https://c2n.me/43SC6rb.png -> https://c2n.me/42BAoj4.png ) I will check it.
Describe what I must do to repeat this error
Hello Hans
Please add wp-admin access ( https://c2n.me/43SC6rb.png -> https://c2n.me/42BAoj4.png ) I will check it.
Describe what I must do to repeat this error
Quote from HansDR on December 7, 2019, 08:05Hi Pablo,
Thanks for your reply. However, there's no way I'm giving admin access. I understand that it's easier to debug if you have direct access (I'm a developer too), but I'm not giving a third-party access to the admin backend. Plus, in this case I'd also have to give you access to my Printify account.
I'm more than happy to run tests and collect logs
Hi Pablo,
Thanks for your reply. However, there's no way I'm giving admin access. I understand that it's easier to debug if you have direct access (I'm a developer too), but I'm not giving a third-party access to the admin backend. Plus, in this case I'd also have to give you access to my Printify account.
I'm more than happy to run tests and collect logs
Quote from HansDR on December 7, 2019, 08:30I've done a bit more experimenting. If I restrict NZD to only New Zealand, then the pricing remains the same. I had GeoIP set to use USD in the USA and its territories, so NZD would be used elsewhere. So, Printify's server is outside the USA, and that's somehow triggering the issue.
Updating Printify products also results in the store-wide discount being copied into the product's sale settings. This suggests that Printify is doing a readback and update of the product after it initially submits the product.
So, it looks like it's not a plugin conflict after all, but an issue with Printify's use of WooCommerce's REST API (i.e., server to server interaction). Printify writes products to the store using WooCommerce's REST API (it has read & write access to products).
I have no idea if the REST API includes currency information (in which case it's a bug on Printify's servers), or if the REST API should always use the shop's base currency (in which case you might need to tweak WOOCS). Or, maybe Printify is doing something else like scraping the actual product page...
Hans
I've done a bit more experimenting. If I restrict NZD to only New Zealand, then the pricing remains the same. I had GeoIP set to use USD in the USA and its territories, so NZD would be used elsewhere. So, Printify's server is outside the USA, and that's somehow triggering the issue.
Updating Printify products also results in the store-wide discount being copied into the product's sale settings. This suggests that Printify is doing a readback and update of the product after it initially submits the product.
So, it looks like it's not a plugin conflict after all, but an issue with Printify's use of WooCommerce's REST API (i.e., server to server interaction). Printify writes products to the store using WooCommerce's REST API (it has read & write access to products).
I have no idea if the REST API includes currency information (in which case it's a bug on Printify's servers), or if the REST API should always use the shop's base currency (in which case you might need to tweak WOOCS). Or, maybe Printify is doing something else like scraping the actual product page...
Hans
Quote from Pablo Borysenco on December 9, 2019, 13:16Hello Hans
there's no way I'm giving admin access - create a clone of the site - https://codecanyon.net/downloads and you can delete all private info
Let's try to find a pattern:
how exactly the price changes? Perhaps this is a double conversion.
Try to do test with this option - https://c2n.me/450eJMX.png
Hello Hans
there's no way I'm giving admin access - create a clone of the site - https://codecanyon.net/downloads and you can delete all private info
Let's try to find a pattern:
how exactly the price changes? Perhaps this is a double conversion.
Try to do test with this option - https://c2n.me/450eJMX.png