Prestashop : quote module (devis)


The quote feature  is  an implementation of a shopping cart within prestashop framework, without the price : we have designed this feature for specific groups, for which we deactivate the price display on the shop.

  • Deactivating price display for specific user group (below : group 2) is a long task that involves 2 different steps
    • in init.php : set the smarty variable around line 116
      $priceDisplayConfig = intval(Configuration::get('PS_PRICE_DISPLAY'));
      if($tmpCust->isMemberOfGroup(2)) $priceDisplayConfig = 3;

      And around line 155

      'priceDisplay' => $priceDisplayConfig
    • use the smarty $priceDisplay variable in the templates to hide prices and change the "cart' (panier in french) to "quote" (devis), example from homefeature.tpl
      {if $priceDisplay<3}{l s='Add to cart' mod='homefeatured'}{else} Ajouter au devis {/if}
  • Quote / Devis module and status :
    • Download and install the "devis" module [download id="7"]
    • create the mails/devis.html and mail/devis.txt and change texts according to your business
    • create the order status "devis en cours" in BackOffice >> Orders >> statuses, check the created id (12 here) and add the following line to :
      define('_PS_OS_DEVIS_EN_COURS', 12);
    • You can optionnally deactivate the order confirmation email in classes/PaymentModule.php, line 288-290, replace the send email to customer test by adding a new condition :
      	// Send an e-mail to customer
      if ($id_order_state != _PS_OS_ERROR_ AND $id_order_state != _PS_OS_CANCELED_ AND $customer->id
      AND $id_order_state != _PS_OS_DEVIS_EN_COURS)
12 replies
  1. prestamonster
    prestamonster says:

    Thank you for given informative result. You can get useful PrestaShop free modules from Prestashop Monster to power your e-Commerce business.

  2. Bridh
    Bridh says:

    Hack attempt (OrderHistory -> id_order_state is empty)

    i get the following problems, probably due to the most recent version i am using.

    Also due to this step missing "check the created id"

    in assistance will be much appreciated

  3. Anne-Lo
    Anne-Lo says:

    Hi, i'm very interested by your project, did you created a module for that...If yes please contact me

  4. de roquefeuil
    de roquefeuil says:

    I'm very interested by what you posted, i've tried to put the codes in the init.php but the page goes blank. i don't know why.

    I'd like a website with no prices appearing, this quote module will be perfect. could you give me some more advices. Thanks

  5. Claude
    Claude says:

    Hi !
    I'have tryed many init.php files from many versions of PS but i can't see the variables exactly like you write them ? Can you help me ?

    Many thanks,


  6. Yuridek
    Yuridek says:

    actually when I comment this line

    //if($tmpCust->isMemberOfGroup(2)) $priceDisplayConfig = 3;

    the page appears back again...
    Maybe there is something wrong about that line against my version of prestashop...

    thanks again.

  7. Yuridek
    Yuridek says:

    Is not working for me.

    The navigator turns blank and there is no text at all in the page.
    I am using prestashop_1.2.5.0
    ¿ any advice ?


  8. joe matt
    joe matt says:


    How can i use prestashop as a catalogue? I dont want the price and cart to be displayed.

    Thank you

  9. Ben
    Ben says:


    Just two question : where is the init.php you're talking about ? Is it one on the root of install ?

    Another one : Does it work with Prestasohp 1.2.5 ?




Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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