Hello @davidreca ,
I’m sorry for the trouble this has caused! Please reach out to our support team directly and we’ll be happy to check and escalate this to Divi on your behalf. We look forward to hearing from you and getting this resolved!
Hello, we have the free version of the “WooCommerce Wholesale Prices” plugin but we do not have access to plugin support.
This was the reason why I started a ticket in this forum.
If it’s possible to contact your plugin’s support, please let me know how to do so.
Or we can continue with this ticket; I can continue with the Divi Engine (BodyCommerce) team, but I need you to answer the questions from the first post:
“Could you contact them and ask if there’s a filter or something we should do in REST to make it work?”
Is there any documentation or suggestion you could provide to help them fix this problem?
thanks
Hello @davidreca ,
When you apply a filter on the shop page, BodyCommerce is fetching the updated product list using the default WooCommerce REST API. The issue is that our plugin uses a separate REST API endpoint that includes wholesale pricing data, and since BodyCommerce isn’t using that endpoint, the wholesale prices aren’t being returned.
What you can pass along to their developers is this:
We provide a dedicated endpoint at
/wp-json/wholesale/v1/products
which returns the full wholesale pricing data. They can switch their product requests to use this endpoint and include the customer’s wholesale role as a parameter, like this:
/wp-json/wholesale/v1/products?wholesale_role=wholesale_customer&category=X
Alternatively, if they prefer to stick with the default WooCommerce endpoint, they can still pass the wholesale_role as a query parameter.
https://rymera.gitbook.io/wholesale-suite-api/wholesale-v1-wwp