6 thoughts on “PrestaShop wholesale mode fix (force catalog mode when uses is logged in)

  1. Thank you very much! Well done!
    In prestashop 1.5 it’s a little different though. After some testing, I think I managed to fix it. Maybe you can confirm this?

    I added your if-else statement to the last elseif of the function:

    elseif (Configuration::hasKey($key, $id_lang))
    if($key == ‘PS_CATALOG_MODE’)
    {
    return !$cookie->logged || self::$_CONF[$id_lang]['global'][$key];
    }
    else
    {
    return self::$_CONF[$id_lang]['global'][$key];
    }
    return false;
    }

    Thx again, saved me some Euro’s :)

  2. [...] PrestaShop wholesale mode fix  To my knowledge it’s the cleanest non-module way of doing it I use it successfully. If using 1.5.x you will need to make adjustments to the code as that part of the source had changed (see comments section, someone had already worked it out). This method forces catalog mode for users not logged in and the change is only done in 1 file. The idea is to “inject” the ‘PS_CATALOG_MODE’ into the global configurations map. It is a core Prestashop file though, so if upgrading you need to be careful. [...]

  3. [...] PrestaShop wholesale mode fix (TESTED SUCCESSFULLY WITH 1.5.4) To my knowledge it’s the cleanest non-module way of doing it I use it successfully. If using 1.5.x you will need to make adjustments to the code as that part of the source had changed (see comments section, someone had already worked it out). This method forces catalog mode for users not logged in and the change is only done in 1 file. The idea is to “inject” the ‘PS_CATALOG_MODE’ into the global configurations map. It is a core Prestashop file though, so if upgrading you need to be careful. You could perhaps override the Configuration.php file instead of editing it directly. When editing directly always make a backup. [...]

  4. Hi, the cart hide very well in 1.4.9.0, now someone knows how to hide all prices in shop for visitors ?

    Any code ?

    Tks..

  5. I looked for this code in 1.5.3 in classes/configuration.php but can’t find any part of it in there. Is there somewhere else I should be looking

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>