[ad_1]
Hi @pokxe,
We have our own API endpoints that you can check here: https://wholesalesuiteplugin.com/kb/wholesale-suite-api/
Can you update your query?
Thread Starter
pokxe
(@pokxe)
I can’t use your api because i need to modify the query to get specific product.
For anyone encounter this, I’ve looked into the plugin and find a workaround. In ajax called, you need to embed user role in data like
?wholesale_role=wholesale_customer. Then, everything is working.
As a feedback, you can add some sort of filter/action to
class-wwp-wholesale-prices.php Line: 509
so that we can set user role in some condition if it was called by rest api.
- This reply was modified 10 minutes ago by pokxe.
