Woocommerce Pricing cache for specific users
-
Hello, I am using whole sale plugin that sets prices based on user role and sometimes for specific user itself. I can use cache vary for user roles to set correct product prices on cached page but I dont know how to set correct prices for certain users. For example:
User A has a user role ‘wholesale’ which has a discount %20 so product is $80.
User B has a user role ‘wholesale’ which has a discount %20 so product is $80.
User C has a user role ‘wholesale’ but has specific setting that makes %10 additional discount which has a discount %20 + %10 so product is $70.
But currently, User A and B and C all sees the $80 while user C should see $70.
I was looking a way to not use cache vary but instead a method to load prices using ajax and use public cache (same cache vary for all users), I could not find any plugin for that. Is there any snippet you can provide that can load prices on the background using ajax, that would solve a huge problem for a lot of people using litespeed and woocommerce. So other cahce plugins has this ajax price loading but I dont want to change litespeed just for that.
If that is not possible, is there any builtin way for litespeed to solve the user based pricing exception?
Thanks in advance for your help,
The page I need help with: [log in to see the link]
- The topic ‘Woocommerce Pricing cache for specific users’ is closed to new replies.