PEEL Shopping
Open source ecommerce : PEEL Shopping
fonctions.php
Go to the documentation of this file.
1 <?php
2 // This file should be in UTF8 without BOM - Accents examples: éèê
3 // +----------------------------------------------------------------------+
4 // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr |
5 // +----------------------------------------------------------------------+
6 // | This file is part of PEEL Shopping 8.0.0, which is subject to an |
7 // | opensource GPL license: you are allowed to customize the code |
8 // | for your own needs, but must keep your changes under GPL |
9 // | More information: https://www.peel.fr/lire/licence-gpl-70.html |
10 // +----------------------------------------------------------------------+
11 // | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/ |
12 // +----------------------------------------------------------------------+
13 // $Id: fonctions.php 46935 2015-09-18 08:49:48Z gboussin $
14 if (!defined('IN_PEEL')) {
15  die();
16 }
17 
23 function ariane_panier()
24 {
25  $tpl = $GLOBALS['tplEngine']->createTemplate('modules/ariane_panier.tpl');
26  $tpl->assign('cart_logo_src', get_url('/modules/ariane_panier/images/caddie_command.jpg'));
27  $tpl->assign('in_caddie', defined('IN_CADDIE'));
28  $tpl->assign('was_in_caddie', $_SESSION['session_ariane_panier']['in_caddie']);
29  $tpl->assign('STR_CADDIE', $GLOBALS['STR_CADDIE']);
30  $tpl->assign('caddie_affichage_href', get_url('caddie_affichage'));
31  if (defined('IN_CADDIE') || $_SESSION['session_ariane_panier']['in_caddie']) {
32  $_SESSION['session_ariane_panier']['in_caddie'] = true;
33  }
34  $tpl->assign('in_step1', defined('IN_STEP1'));
35  $tpl->assign('was_in_step1', $_SESSION['session_ariane_panier']['in_step1']);
36  $tpl->assign('STR_PAYMENT_MEAN', $GLOBALS['STR_PAYMENT_MEAN']);
37  $tpl->assign('achat_maintenant_href', get_url('achat_maintenant'));
38  if (defined('IN_STEP1') || $_SESSION['session_ariane_panier']['in_step1']) {
39  $_SESSION['session_ariane_panier']['in_step1'] = true;
40  }
41  $tpl->assign('in_step2', defined('IN_STEP2'));
42  $tpl->assign('was_in_step2', $_SESSION['session_ariane_panier']['in_step2']);
43  $tpl->assign('in_step3', defined('IN_STEP3'));
44  if (defined('IN_STEP2')) {
45  $_SESSION['session_ariane_panier']['in_step2'] = true;
46  }
47  $tpl->assign('STR_MODULE_ARIANE_PANIER_SOMMARY', $GLOBALS['STR_MODULE_ARIANE_PANIER_SOMMARY']);
48  $tpl->assign('STR_CONFIRMATION', $GLOBALS['STR_CONFIRMATION']);
49  return $tpl->fetch();
50 }
51 
58 {
59  $_SESSION['session_ariane_panier'] = null;
60 }
61 
if(!empty($_GET['id'])) if(isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'], $_POST['form_lang'])&&empty($_GET['id'])) if(empty($_GET['id'])) $tpl
if(!defined('IN_PEEL')) $GLOBALS['page_types_array']
Definition: fonctions.php:19
close_ariane_panier_session()
close_ariane_panier_session()
Definition: fonctions.php:57
if(!defined('IN_PEEL')) ariane_panier()
ariane_panier()
Definition: fonctions.php:23
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:30:43 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.