Tips & Tricks
- November 26, 2009
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
-
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}
-
- in init.php : set the smarty variable around line 116
- Quote / Devis module and status :
- Download and install the “devis” module Module Devis pour prestashop (275)
- 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 config.inc.php :
- 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)
-




3 Responses to “Prestashop : quote module (devis)”
Hello,
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 ?
Tks
Ben
By Ben on Dec 21, 2009
Hello,
How can i use prestashop as a catalogue? I dont want the price and cart to be displayed.
Thank you
By joe matt on Jan 6, 2010
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.
By Yuridek on Feb 8, 2010