Okay
  Public Ticket #3580360
Prices for B2B users should be the regular prices and not the sale prices
Closed

Comments

  •  2
    Performing Digital started the conversation

    Hi, is there a way to ensure that, for B2B users, the prices of the products are the regular prices and not the sale prices without having to fill in specific price fields for each B2B group?

    For our B2B users, we calculate a percentage discount on the total cart value. We would like the discount to be calculated based on the sum of regular prices and not on sale prices.


    8186045940.jpg


  •  2,217
    WebWizards replied

    Hi there,

    I understand that you would like the price for B2B users to always be the regular price? So in your example below, the price for B2B users should be $19?


    I believe there is a workaround you could use to make this work. Please try going to B2BKing -> Dynamic Rules and creating a rule like this one:

    1731343205.png

    The rule sets a 0% sale price for B2B users, so the price would appear without a sale price.


    That seems to work in my tests, although it may depend on your theme  and other plugins whether this works well.


    Kind regards,

    Stefan

  •  2
    Performing Digital replied

    Thank you Stefan,

    the workaround works great! Now, the prices for B2B users are the regular prices, and we are able to calculate a percentage discount directly in the cart.


    I have another question, though. Is it possible to apply a discount for certain B2B groups in the following way:
    a % discount up to a specific threshold (e.g., €999), and then an additional % discount applied only for products beyond that threshold?

    For example,
    50% discount for amounts below €999
    and
    above €999, a 60% discount but only calculated for products beyond that threshold

    So, if in the cart, I have 100 products priced at €10 each -> €1000 - 50% discount = €500.
    If I add another product priced at €10 -> €500 + €4 (€10 - 60% discount) = €504.

    Is it possible? Or can I apply an additional discount beyond a certain threshold only for the total cart amount?

  •  2,217
    WebWizards replied

    Glad to hear that worked,

    What you described is not completely possible with the plugin's options unfortunately.


    What you could is the following:

    - You could set a certain discount level for different thresholds, so for example you can have:

    (A) 50% discount if the cart total is under €1000

    (B) 55% discount if the cart total is between €1000 and €1500

    (C) 60% discount if the cart total is above €1500

    This would be achieved by creating 3 discount rules, one for each threshold level


    For example this rule sets a 55% discount between 1000 and 1500:

    6286109529.png


    Kind regards,

    Stefan

  •  2
    Performing Digital replied

    Okay, understood

    Thank you!

  •  2
    Parimal replied

    I have a follow up question.  What if the sale price is lower than the discount for wholesale?  I would like the customer to get the cheaper of the two.

    i.e. I have a product at a regular price of $100 and a sale price of $80.  B2B customer gets a discount of 10%.  This would make the product for B2B @ $90 and B2C at $80.  How can I offer the B2B guy the sale price if it is lower than his discount?

  •  2,217
    WebWizards replied

    Hello Parimal,

    If you only use regular and sale prices, and do not use group prices, then this code snippet could work:

    https://pastecode.io/s/x7577h48

    It should compare discounted percentage rules with the standard sale price and give the lowest one.

    If you have any issues with it, kindly please open a separate ticket as it's a complex matter and it would be best to discuss it in the context of your site's configuration / rules / prices.


    Kind regards,

    Stefan