• Resolved kalora123

    (@kalora123)


    Hi,

    I have a WooCommerce site running on a Blocksy theme. In addition to this I have the free Wholesale Suite plugin installed. All themes and plugins have been updated to the latest version.

    My home page displays ‘featured products’ and when a guest views the site it hides the wholesale price and ‘Add to Cart’ button and instead displays the ‘Login to see prices’ link. When an account member logs in I expect the ‘featured products’ on the home page to show the wholesale price and ‘Add to Cart’ button.

    However after successfully logging in the home page still shows the ‘Login to see prices’ link for featured products. If I refresh the page it shows the wholesale price and ‘Add to Cart’ button, however this is a poor user experience as they shouldn’t need to refresh their browser. Interestingly this issue only happens on the home page. If I go to the ‘Shop’ page or other product pages it correctly shows the wholesale prices and ‘Add to Cart’ button.

    How do I ensure the home page ‘featured products’ show the wholesale price and ‘Add to Cart’ button once a user has successfully logged in?

    Kind regards,

    kalora123

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @kalora123,

    May I know how do you create the featured product? Do you use the WooCommerce Featured Product Gutenberg block or a third party plugin builder? Could you please provide me some screenshot on your page setup in the backend?

    Thread Starter kalora123

    (@kalora123)

    Hi @fauzanade ,

    Thanks for the quick response. I use a ‘shortcode’ block with the following shortcode ‘[featured_products_per_page=“6” columns=“3” orderby=“date” order=“DESC”]’

    Let me know if you need anything else.

    Cheers,

    Kalora123

    Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @kalora123,

    I tried that shortcode on Blocksy theme and it seems it is working fine for me. So there might be something else that might causing this issue.

    Could you please try do a basic debugging on your site? For your reference, please read the following documentation: https://wholesalesuiteplugin.com/kb/how-to-conduct-a-basic-debug-for-wholesale-suite/

    Please let me know how it goes. ??

    Thread Starter kalora123

    (@kalora123)

    Hi @fauzanade ,

    I tried all of the basic debugging steps except for the debugging tool as I don’t have?Wholesale Prices Premium.? What was interesting is that it seems to be a session or caching issue. My observations of this is because:

    1. The issue occurs on other themes not just the Blocksy theme.
    2. If I disable themes like ‘Blocksy companion’ I get an error on the menu saying ‘Item account not registered or doesn’t have a view.php file’ on the home page. I then re-enable the theme then the error disappears. However after logging in as a wholesale user if I click on the logo to take me back to the home page it displays the home page with that exact same error message as if ‘Blocksy Companion’ is still de-activated. If I then refresh that page the error message goes away and the wholesale price is displayed. The same pattern occurred for all plugins that I disabled and then re-enabled. Anytime I click on the ‘logo’ to take me to the home page it loses the session or goes back to a cached version of the home page.

    I tried cache plugins like W3 Total Cache to clear the cache and updating WP-CONFIG.PHP to disable caching (e.g. define(‘ENABLE_CACHE’, false)) however this still didn’t resolve the issue.

    Any ideas on how to ensure the wholesale price is displayed on the home page after logging in? It seems to be a cache or session issue.

    Kind regards,

    Jason

    Plugin Support Jeff Alvarez

    (@superlemon1998)

    Hi @kalora123

    Could you please check if disabling the Caching plugin fixes the issue? If not then it may be due to something else.

    If yes, then you’ll likely have to exclude caching for our plugin. You mentioned that you tried to disable caching through the WP-Config file.

    Could you please try disabling caching on a page basis or plugin level settings and see if that helps?

    As this directly involves a 3rd party plugin our support is quite limited, I suggest you reach out to the W3 Total Cache support forum on how to exclude cache for users or stop caching our plugins.

    Let me know if you have other questions.

    Check if you are not using Incognito mode, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Home page does not reflect logged in status after logging in’ is closed to new replies.