• Resolved davidreca

    (@davidreca)


    Hello, we’re having a problem with a shop page developed with Divi and BodyCommerce. When a filter is activated (a category, for example), the wholesale prices disappear.

    Apparently, this is a problem with the REST API used by BodyCommerce (a plugin for building the store in Divi). The developers of this plugin asked me to ask the following question:

    “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

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support rymerakristel

    (@rymerakristel)

    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!

    Thread Starter davidreca

    (@davidreca)

    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

    Plugin Support rymerakristel

    (@rymerakristel)

    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

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.