Okay
  Public Ticket #3554612
Prices for b2c change on their own
Closed

Comments

  •  6
    Nikos Fytilis started the conversation

    Greetings,

    I'd like to ask if you have noticed any problems regarding price changes in products where the b2b price is being displayed also as the b2c price, hence everyone can buy with that price.

    The thing is that it is random as to which product is going to be affected or when it is going to happen.

  •  1,881
    WebWizards replied

    Hi Nikos,


    When we see this kind of issue, in our experience it's usually caused by caching. We have an article about it here: https://woocommerce-b2b-plugin.com/docs/users-see-wrong-content-b2c-users-see-b2b-content-or-prices/


    Cache solutions show users a snapshot of the site rather than the real live site. When you have both B2B and B2C users, they should not share the same cache - if they do, a B2B page / prices could be shown to B2C users.


    The solution would be either to have a unique cache for each user, or to disable caching for logged in users.


    Kind regards,

    Stefan

  •  6
    Nikos Fytilis replied

    Thank you very much for your immediate response! I will look into it and report back.

  •  6
    Nikos Fytilis replied

    I'd like to add something in this problem if it makes more clear. It happened to users that were not connected and they actually bought with b2b prices.

  •  1,881
    WebWizards replied

    Got it,

    I still believe it must be a caching problem. 

    One of the reasons I think so, is that pricing is a core component of the plugin that's used by the majority of sites using B2BKing, so if there was an issue, we'd be getting tens or hundreds of reports. We have also never had this kind of issue in any past version of the plugin. So caching remains the only thing that really makes sense to me.


    I would suggest you check the following:

    - If you use a CDN such as Cloudflare, check whether you have any caching rules there.

    - Check for caching at the hosting level (Added by your hosting), and particularly check whether you have any object cache such as Redis, Memcached, etc - this could explain the problem.

    - Check the configuration of any plugin with caching effects on the site: cache plugins such as WP Rocket, Litespeed, Super Cache, but also plugins such as Jetpack, WP Optimize, Autooptimize,


    If you find any other information or any clear way to replicate the problem, please let us know.

    Kind regards,

    Stefan

  •  6
    Nikos Fytilis replied

    hello again,

    we had severral instances of the same problem and we tried  to figure out why. even followed all instructions frorm the cache plugin dev. it continues to change the price in some products. Also, I should mention that it changes the prrices inside woocommerce, it is not only visual.

  •  1,881
    WebWizards replied

    Hi again,


    Also, I should mention that it changes the prrices inside woocommerce

    If the B2C price is actually changed in WooCommerce (permanently) to the B2B price, then it suggests it might not be caching.


    Something to try is going to your admin user profile and set it to B2C:

    2705991844.png

    (is it currently set to B2B?) Sometimes if a plugin syncs/edits prices it will sync them based on the admin user.


    Other than that, is there any plugin on the site that syncs prices or updates products? For example any plugin that syncs with an ERP, or a plugin that syncs across multiple stores within a multisite? anything that modifies products via REST API?