Okay
  Public Ticket #2721856
periodic bulk tiered price update.
Closed

Comments

  • Sebastián started the conversation

    I would want to know if it would be possible to update our different tiered price (by user) automatically from our database periodically.

  •  2,219
    WebWizards replied

    Hi Sebastian,

    Thank you for getting in touch.


    The plugin's main tiered pricing functionality sets up tiered price by GROUP. The way it works is that each group has its own tiered pricing fields in the product backend. https://woocommerce-b2b-plugin.com/woocommerce-tiered-pricing-price-table/

    If you need to set up tiered price by username, that can also be done with the plugin's dynamic rules with conditions.


    You might be able to set up things automatically by using the REST API and updating either the product meta key for group tiered price, or update dynamic rules.

    How did you want to do this automatic update?


    Kind regards,

    Stefan

  •  5
    Andreas replied

    Hi WebWizards,


    We are trying to use REST API to update/create dynamic rules, but the REST endpoint for the custom post type returns 404


    The REST endpoint used wp-json/wp/v2/b2bking_rule and the result

    {
      "code": "rest_no_route",
      "message": "No route was found matching the URL and request method.",
      "data": {
        "status": 404
      }
    }