Vincentttt

Utilisateur open source
  • Compteur de contenus

    6
  • Inscrit(e) le

  • Dernière visite


Messages posté(e)s par Vincentttt


  1. Oui j'ai mis un dossier sessions à la racine de mon site, voici le code:

    <?php if ($_SESSION['caddie']->compte_elements() != 0) { ?>

    <p>Nb de produit(s)<br /> sélectionné(s) : <font color="#CC0000"><b><?php echo $_SESSION['caddie']->compte_elements()?></b></font>.</p>

    <p>Montant total du panier :<br /> <font color="#CC0000"><b><?php echo fprix($_SESSION['caddie']->total); ?> € T.T.C</b></font></p>

    <p><a class="normal" href="<?php echo $wwwroot?>/achat/caddie_affichage.php"><b>commander</b></a></p>

    <?php } else { echo "<p>Votre panier est vide actuellement.</p>"; } ?>

    <div class="tetiere">Notre catalogue</div>


  2. Voilà:

    <?php

    /********************************************************************************

    *****/

    /* */

    /* PEEL */

    /* */

    /* Copyright © PEEL 2000 - 2007 */

    /* email : info@peel.fr */

    /* web : http://www.peel.fr */

    /* développement d'applicatifs en php natif */

    /* */

    /* This program is free software; you can redistribute it and/or modify */

    /* it under the terms of the GNU General Public License as published by */

    /* the Free Software Foundation; either version 2 of the License, or */

    /* (at your option) any later version. */

    /* */

    /* This program is distributed in the hope that it will be useful, */

    /* but WITHOUT ANY WARRANTY; without even the implied warranty of */

    /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */

    /* GNU General Public License for more details. */

    /* */

    /* You should have received a copy of the GNU General Public License */

    /* along with this program; if not, write to the Free Software */

    /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

    /* */

    /********************************************************************************

    *****/

    $dirroot = dirname(__FILE__);

    $config = $dirroot."/lib/setup/info.inc.php";

    if (file_exists($config)){include $config;}

    if (empty($wwwroot) || empty($serveur_mysql) || empty($utilisateur_mysql) || empty($nom_de_la_base)) {

    header("Location:installer.php");

    } else {

    $repertoire_images = $wwwroot."/upload/";

    $repertoire_achat = $dirroot."/achat";

    $repertoire_modele = $dirroot."/modeles";

    $repertoire_upload = $dirroot."/upload";

    $libdir = $dirroot."/lib";

    $liste_mots = $dirroot."/liste_mots.txt";

    $my_max_file_size = "102400"; # in bytes

    $image_max_width = "500";

    $image_max_height = "500";

    $the_path = $dirroot."/upload/";

    $registered_types = array(

    "image/gif" => ".gif",

    "image/pjpeg" => ".jpg, .jpeg",

    "image/jpeg" => ".jpg, .jpeg",

    "text/richtext" => ".txt, .rtf",

    "application/pdf" => ".pdf",

    "application/msword" => ".doc",

    );

    $allowed_types = array("image/gif","image/pjpeg","image/jpeg", "text/richtext", "application/pdf", "application/msword");

    require($dirroot."/lib/class/caddie.php");

    require($dirroot."/lib/class/mysql.php");

    session_start();

    session_register("SESSION");

    /* Ouverture de l'objet mysql */

    $db_host = $serveur_mysql;

    $db_username = $utilisateur_mysql;

    $db_password = $mot_de_passe_mysql;

    $db_name = $nom_de_la_base;

    $db_prefixe = "peel";

    $db = new DBLayer($db_host, $db_username, $db_password, $db_name, $db_password);

    // Initialisation de SESSION si nécessaire

    if (! isset($_SESSION)) { $_SESSION = array();}

    // Initialisation de l'objet caddie si nécessaire

    if (! isset($_SESSION['caddie'])) {

    $_SESSION['caddie'] = new Caddie;

    }

    include($dirroot."/mysql.inc.php");

    // Initialisation de SESSION pour la couleur

    if (! empty($_GET['style']))

    { $_SESSION['style'] = $_GET['style'];

    } elseif

    (empty($_SESSION['style']))

    { $_SESSION['style'] = "bleu";

    }

    // Recherche de la feuille de style

    $stylefile = $wwwroot."/lib/css/".$_SESSION['style'].".css";

    // Déclaration des fonctions

    $fonctionsfile = $dirroot."/lib/fonctions/fonctions.php";

    if (file_exists($fonctionsfile)){

    require ($fonctionsfile);

    }

    }

    ?>


  3. Bonjour,

    Je viens d'installer Peel Shopping, mais en respectant toutes les manips d'installation à la lettre (chmod, suppression de fichier).

    J'ai un problème de ce style quand je suis dans la boutique et que je clique sur n'importe quel liens:

    Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition caddie of the object you are trying to operate on was loaded _before_ the session was started in /web/disk4/CL00002276/spirituelgarden.com/subdomains/www/html/peel/modeles/haut.php on line 266

    Je vous donne l'adresse de la boutique:

    http://www.spirituelgarden.com/peel/index.php

    Je vous remercie par avance si vous avez déja rencontré ce problème et que vous pouvez m'aider.

Twitter Advisto ecommerce

Facebook PEEL Shopping