Okay
  Public Ticket #2663941
Dynamic rules for B2C group not working
Closed

Comments

  •  4
    Michel started the conversation

    I am trying to give all my B2C customers a discount using Dynamic Roles, to give theme an advantage over Guest users. I'm running the plugin in Hybrid mode by the way.

    I have tried percentage, amount and fixed price and I have tried every setting, but the discount never appears anywhere, not on the shop page, not on the single product page, not in the cart nor on the checkout.

    So I'm wondering what I'm doing wrong.

    P.S. Would be nice to have price fields for B2C customers as well on the product settings page, so you also can setup tiered pricing for B2C customers

  •  4
    Michel replied

    Add attachment user permissions.

  •  16
    Ivy replied

    Hi Michel,

    I've tested it the way you're explaining and the only thing I think can be the problem is, if you did not put your customers into the B2C group under users.  See attached.

    Hope this make sense.

    Ivy

  •  4
    Michel replied

    As you can see in the previous attached images the user has the Role B2Bking B2C User and has been added to the group B2C Users. Have added all my registered users in bulk to this group with the tool.

    I have the Multiple Roles plugin installed. By default the registered users had the role Customer and with this plugin I added the role B2Bking B2C User to each customer. Also tried to disable the Customer role, so only B2Bking B2C User checked. Also disabled the Multiple Roles plugin and tried Customer role as well as the B2Bking B2C User role. Always with the user added to the B2C users group.

  •  16
    Ivy replied

    Hi Michel,

    You must make sure that your website is not using cache if you would like to test the different discounts, because I found yesterday after I've installed my cache plugin it seemed when I test a new discount it don't want to work but after a while it is working because of the cache.

    I have entered the user role as customer and I picked the "User Settings, Customer group and the drop down I pick B2C users and it worked fine.

    Hope this make sense.

    Ivy

  •  4
    Michel replied

    I use WP Rocket and have enabled user cache, so that should be no problem.

    Nevertheless I tried with disabled cache, the cache flushed, CDN disabled, WP Rocket completely disabled. All no difference.

    If I move the user to a B2B group and refresh the page, the new prices refresh immediately, including the ex. VAT and incl. VAT suffix change and the additional product labels. If I then change it to a different B2B group and refresh the page, it then also changes properly according to the settings. But if I change the user back to the B2C group, the prices from the Guest (Logged out) users are shown and not the 7% discount I have set for the B2C group.

    Tried to set the discount for the Whole Cart/all products, for Product Categories as well as for single products, but no luck yet. The same goes for Amount discount settings or fixed price settings using Dynamic Rules. It just looks like at my site the dynamic roles are not working at all for the B2C group.

  •  4
    Michel replied

    Did some additional checks.

    The same rule works if I change the setting for the group to All B2B Users and assign the same test user to a B2B Group.

    So for B2B Groups the Dynamic rules work as they should.

  •   WebWizards replied privately
  •  4
    Michel replied

    Hi Stefan,

    Just installed the new version and the Dynamic Rules for the B2C-customers are now working fine.

    Thank you.


    Found another bug thoug, will test with this version and if necessary I will open a new ticket for that.

  •  2
    Pascal replied

    Hi there,

    sorry to jump in on another ticket. But I have the same problem.
    What was the solution for this? I'm using the newest version of B2BKings.


    Thanks in advance,
    Pascal