Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.chauffagiste-essonne.com
/
htdocs
/
modules
/
/srv/data/web/vhosts/www.chauffagiste-essonne.com/htdocs/modules/panier.php
<?php if($modules['panier']) { session_start(); include "functions/ShoppingCart/functions.php"; //vider_panier() ; if(!isset($_SESSION['cart'])){ $_SESSION['livraison']=false; //$_SESSION['total']=0; $_SESSION['cart'] = array(); $_SESSION['cart']['id'] = array(); $_SESSION['cart']['reference'] = array(); $_SESSION['cart']['name'] = array(); $_SESSION['cart']['quantity'] = array(); $_SESSION['cart']['shipping_cost'] = array(); $_SESSION['cart']['price'] = array(); $_SESSION['cart']['tax'] = array(); } //var_dump($_SESSION); //die; $nbArticle=0; for($i=0;$i<sizeof($_SESSION['cart']['id']);$i++) $nbArticle+=$_SESSION['cart']['quantity'][$i]; //echo $nbArticle." vs ".nbProduct(); $btnShoppingCart = "<a href='$routes[cart]' class=''>Mon Panier ($nbArticle)</a>"; }