Aller au contenu

Justine71

Actif
  • Compteur de contenus

    39
  • Inscrit(e) le

  • Dernière visite

Réputation sur la communauté

0 Neutre

À propos de Justine71

  • Date de naissance 11/10/1989

Information du profil

  • Genre
    Femme
  • Localisation
    Mâcon
  1. Bonjour et merci pour vos réponses J'ai posé ma question sur le forum d'osCommerce sans avoir de réponses pour l'instant ! Voici ma page sts.php : <?php /* $Id: sts.php,v 4.5.5 2006/23/09 22:30:54 Rigadin2 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2005 osCommerce Released under the GNU General Public License * * STS v4.6 by Bill Kellum bkellum (www.soundsgoodpro.com) */ require $_SERVER['DOCUMENT_ROOT'].'/catalog/includes/functions/sts.php'; class sts { var $sts_block, $template, $display_template_output, $display_debugging_output, $template_file, $template_folder; function sts (){ $this->update_from_url(); // Check for debug mode from URL $this->infobox_enabled = false; // infobox templates disabled by default. $this->is_button = false; // We are not processing an image button $this->buttons_folder = 'buttons'; // Set the button folder inside [template folder]/images/[language]/ // Defines constants needed when working with templates. // v4.4: Moved constant definitions before check of template output, so constants are also available to pagegs not using templates define('STS_TEMPLATE_DIR', MODULE_STS_TEMPLATES_FOLDER . $this->template_folder .'/'); // v4.4: Use of MODULE_STS_TEMPLATES_FOLDER instead of fixed path define('STS_DEFAULT_TEMPLATE', STS_TEMPLATE_DIR . MODULE_STS_TEMPLATE_FILE); $this->default_content_template = STS_TEMPLATE_DIR . "content/sts_template.html"; // v4.5: Set the name of the default content template // Use template output if enabled or in debug mode (=only for admin) if ((MODULE_STS_DEFAULT_STATUS == 'true') || ($this->display_debug_output == true)) $this->display_template_output = true; else { $this->display_template_output = false; return; } // Initialisation of variables $this->template = array('debug' => '', 'headcontent' =>'', 'extracss' =>''); $this->version= "4.6"; // Find the right template to use according to actual page and parameters. Displays normal output if no template returned if ($this->find_template() == '') { $this->display_template_output = false; // If no template returned, do not use templates at all and exit return; } if ($this->read_template_file() == false) { $this->display_template_output = false; // If template file does not exist, do not use templates at all and exit return; } // Added in v4.3: check if infobox templates are enabled or not $this->infobox_enabled = ((MODULE_STS_INFOBOX_STATUS == 'true') ? true : false); } //end constructor function update_from_url () { // Allow Debugging control from the URL if ($_GET['sts_debug'] == MODULE_STS_DEBUG_CODE) { $this->display_debug_output = true; } // Defines constants needed when working with templates if ($_GET['sts_template']) { $this->template_folder = $_GET['sts_template']; } else { $this->template_folder = MODULE_STS_TEMPLATE_FOLDER; } } function find_template (){ // Retrieve script name without path nor parameters $scriptbasename = basename ($_SERVER['PHP_SELF']); // Disable STS for popups: moved to sts_default module since v4.4 // Check for module that will handle the template (for example module sts_index takes care of index.php templates) $check_file = 'sts_'.$scriptbasename; $modules_installed = explode (';', MODULE_STS_INSTALLED); if (!in_array($check_file, $modules_installed)) $check_file = 'sts_default.php'; include $_SERVER['DOCUMENT_ROOT'].'/catalog/includes/modules/sts/sts_index.php'; $classname=substr($check_file,0,strlen($check_file)-4); $this->script=new $classname; // Create an object from the module // If module existes but is disabled, use the default module. if (isset($this->script->enabled) && $this->script->enabled==false) { unset ($this->script); include $_SERVER['DOCUMENT_ROOT'].'/catalog/includes/modules/sts/sts_default.php'; $this->script=new sts_default; // Create an object from the module } $this->template_file = $this->script->find_template($scriptbasename); // Retrieve the template to use, $scriptbasename added in v4.4 return $this->template_file ; } function start_capture () { // Start redirecting output to the output buffer, if template mode on. if ($this->display_template_output) { // ob_end_clean(); // Clear out the capture buffer. Removed in v4.3.3 ob_start(); } } function stop_capture ($block_name='', $action='') { // Store captured output to $sts_capture if (!$this->display_template_output) return; // Do not process anything if we are not in using templates $block = ob_get_contents(); // Get content of buffer ob_end_clean(); // Clear out the capture buffer if ($block_name=='') return $block; // Not need to continue if we don't want to save the buffer switch($action){ case 'box': $block = sts_strip_unwanted_tags($block, $block_name); $this->template[$block_name] = $block; break; break; default: $this->template[$block_name] = $block; } // switch return $block; // Return value added in v4.3 } function restart_capture ($block_name='', $action='') { // Capture buffer, save it and start a new capture if (!$this->display_template_output) return; $block = $this->stop_capture($block_name, $action); $this->start_capture(); return $block; // Return value added in v4.3 } function array_capture ($array){ // Function added in v4.5 to merge a full array directly into template array. $this->template = array_merge($this->template, $array); } function capture_fields (){ // If we use template, ask to module what file(s) to include for building fields if ($this->display_template_output) { $fields_arr= explode(';', $this->script->capture_fields ()); } return $fields_arr; } function read_template_file (){ // Purpose: Open Template file and read it // Generate an error if the template file does not exist and return 'false'. if (! file_exists($this->template_file)) { print 'Template file does not exist: ['.$this->template_file.']'; return false; } // We use templates and the template file exists // Capture the template, this way we can use php code inside templates $this->start_capture (); // Start capture to buffer require $this->template_file; // Includes the template, this way php code can be used in templates $this->stop_capture ('template_html'); return true; } // End read_template_file function replace (){ global $messageStack, $request_type; if (!$this->display_template_output) return; // Go out if we don't use template if (defined("STS_END_CHAR") == false) define ('STS_END_CHAR', ''); // An end char must be defined, even if empty. // Load up the <head> content that we need to link up everything correctly. Append to anything that may have been set in sts_user_code.php // Note that since v3.0, stylesheet is not defined here but in the template file, allowing different stylesheet for different template. $this->template['headcontent'] = $this->template['headcontent'].''; $this->template['headcontent'] = $this->template['headcontent'].'<meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">' . "\n"; $this->template['headcontent'] = $this->template['headcontent'].$this->template['headertags']. "\n"; ; $this->template['headcontent'] = $this->template['headcontent'].'<base href="' . (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . '">' . "\n"; $this->template['headcontent'] = $this->template['headcontent'].get_javascript($this->template['applicationtop2header'],'get_javascript(applicationtop2header)'); $this->script->replace($this->template); // Module can make tricks here, just before replacing, like using own content template // Add messages before the content if ($messageStack->size('header') > 0) { $this->template['content'] = $this->template['content']; $this->template['warning_header'] = $messageStack->output('header'); }else { $this->template['warning_header'] =''; } // v4.5.4, error and info message from URL were never displayed, so add them before content. $this->template['content'] = $this->template['error_message'].$this->template['info_message'].$this->template['content']; // Manually replace the <!--$headcontent--> if present $this->template['template_html'] = str_replace('<!--$headcontent-->', $this->template['headcontent'], $this->template['template_html']); // Manually replace the <!--$extracss--> with template['extracss'] $this->template['template_html'] = str_replace('<!--$extracss-->', $this->template['extracss'], $this->template['template_html']); // Automatically replace all the other template variables if (STS_END_CHAR=='') { // If no end char defined for the placeholders, have to sort the placeholders. uksort($this->template, "sortbykeylength"); // Sort array by string length, so that longer strings are replaced first } foreach ($this->template as $key=>$value) { $this->template['template_html'] = str_replace('$' . $key . STS_END_CHAR , $value, $this->template['template_html']); } } function image (&$src) { // Added in v4.4: use image from the template folder if exists. // Check only if STS is enabled. if (MODULE_STS_DEFAULT_STATUS=="true" && $this->is_button ==false) if (file_exists(STS_TEMPLATE_DIR . $src)) $src = STS_TEMPLATE_DIR . $src; $this->is_button = false; } function image_button ($src, $language, $is_button = false) { // Check if button exists in template folder. // $is_button=true will cancel the check in function "image". $this->is_button = $is_button; // Check only if STS is enabled. if (MODULE_STS_DEFAULT_STATUS=="true") { $check_file = STS_TEMPLATE_DIR . 'images/'. $language . '/' .$this->buttons_folder . '/' .$src; if (file_exists($check_file)) return $check_file; } return ''; } // ***************************************** // Functions added for debug // ***************************************** function add_debug ($text, $br=true) { // STS v4.1: Add debug text to the STS debug variable. If $br=false, then no line break added $this->template['debug'].= $text . ($br ? "\n" : ''); } } //end class ?> Merci encore, et excellent week-end du 8 mai à tous
  2. Oui, c'est vrai que magento avait l'air mieux quand j'y repense, mais le soucis est que j'ai déjà bien apprivoisé oscommerce, et je ne suis pas sure que STS fonctionne avec autre chose qu'osC.... Merci beaucoup de ta réponse !
  3. Justine71

    OsCommerce + STS

    Bonjour à tous Alors, voici ma situation : Je suis actuellement en train de créer un commerce en ligne, qui me permet d'apprendre en même temps. Au début, j'ai vu les choses en grand, j'ai voulu adapter osC à mon site déjà existant, grave erreur, car cela s'est révélé trop compliqué pour moi, ça me servira de leçon Donc je suis repartie à zéro avec un osC tout neuf. Mais voulant garder mon design actuel qui ne ressemble en rien a celui de base d'osC, j'ai choisi la solution STS Simple Template System ( http://www.oscommerce.com/community/contributions, 1524 ) J'ai bien réussi à l'installer en suivant toutes les étapes indiquée dans la doc, mais là je suis un peu perdue ( n'oublions pas que je suis débutante, pas taper ) La page 'http://www.monsite.com/catalog' ne s'affiche pas correctement, il manque quelques div et mon panier ne s'affiche pas... Mais c'est surtout lorsque je veux accéder aux autres pages comme par exemple 'http://www.monsite.com/catalog/account.php' que cela se gâte. J'ai ce message d'erreur qui apparaît : 'Fatal error: Class 'sts_default' not found in /home/monsite/public_html/catalog/includes/classes/sts.php on line 181' Alors j'ai fait un peu le "ménage" en vérifiant que tout était bien rangé a sa place, et je ne pense pas avoir fait d'erreur. Enfin, le problème vient de moi, j'ai du faire une erreur quelque part, mais où ? Merci d'avance de vos réponses, et excellente journée à tous !
  4. Personne pour me venir en aide ? =) Pourtant je vous avais fait un très très beau dessin, lol =p Merci d'avance, bonne journée à tous !
  5. Bonjour à tous =) Je reviens avec toujours mon éternel problème : l'alignement J'ai beaucoup de mal à faire en sorte que mes div soit toutes bien rangées à leur place, et c'est pas faute d'essayer En fait, c'est juste la partie du haut qui bug, comme vous pourrez le voir sur les images, le centre et le bas va très bien =) Je vous ai fait un petit schéma pour vous montrer ce à quoi je voudrais que ça ressemble au final : />http://www.kinouche.com/schema.jpg Et une capture d'écran de ce à quoi cela ressemble actuellement ( je travaille mon site en local ) />http://www.kinouche.com/capture_pb_haut.jpg Et voici respectivement, ma css et ma page accueil.htm : body { background-color:#000000; font-size: 12px; color: #FFFFFF; font-family: arial; text-indent: 15px; list-style-type: circle; margin: 0 ; padding: 0 ; } #i { color: #3d3a3a; } #hautgauche { height:150px; width:150px; float: left; left:5px; width: 48%; height: 48%; } #hautdroit { height:150px; width:150px; float: right; left:145px; width: 48%; height: 48%; } #boutontouthaut { margin-top: 10px; text-align: center; } #haut { margin: 0 auto; text-align: center; margin-top: 10px; } #conteneur { width:1026px; margin: 0 auto ; padding: 10px 0px; text-align: center; } #boutonhaut { margin-top: 20px; text-align: center; } #boutonhaut a { margin: 0px 5px; } #boutonhaut a img{ border: none; } #gauche { height:297px; width:221px; margin-top: 10px; margin-left:0px; background-image:url(gauche.jpg); float: left; } #droit { height:300px; width:222px; margin-top: 10px; background-image:url(droite.jpg); float: right; } #centre { height: 295px; width: 577px; margin-top: 10px; overflow: auto; background-image:url(contenu.jpg); } #boutonbas { height: 71px; margin-top: 10px; text-align: center; } #boutonbas a { margin: 0px 5px; } #boutonbas a img{ border: none; } <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html> <head> <title>Kinouche * Accueil</title> <META NAME="description" CONTENT="Marque déposée de bijoux fantaisies en édition limitée"> <META NAME="keywords" CONTENT="bijoux,perles,edition limitée,pierres,fait main,boutique,fr,magasin,kinouche,fantaisies,achat bijoux,bijou,swarovski,bague,bracelet,collier,bijou de sac,boucles d'oreilles,kinouche.com,estelle comtet,verre,resine,ceramique,metal,mille et une perles,macon,mâcon,71"> <link rel="stylesheet" type="text/css" href="design3.css"> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <div id="conteneur"> <div id="hautgauche"> <tr> <td> <table border="0" width="10%" cellspacing="0" cellpadding="0"> <tr> <td width="10%" height="4" class="infoBoxHeading"> <img src="sidentifier.png" border="0" alt="Identification" title=" Identification " width="150" height="33"> </td> </tr> </table> <table border="0" width="10%" cellspacing="0" cellpadding="0" line-height="0" class="infoBox"> <tr> <td> <table border="0" width="10%" cellspacing="0" cellpadding="0" line-height="0" class="infoBoxContent"> <tr> <td align="center" class="boxText"> <form name="login" action="login.php?action=process" method="post"> <table border="0" cellpadding="0" cellspacing="0" class="smallText" > <tr> <td width="10%" height="6" class="smallText"> <p align="center">Email</p> </td> </tr> <tr> <td width="10%" height="3" class="smallText"> <p align="center"> <input maxLength="96" name="email_address"size="18"> </p> </td> </tr> <tr><br> <td width="10%" height="3" class="smallText"> <p align="center">Mot de Passe</p> </td> </tr> <tr> <td width="10%" height="6"> <p align="center"> <font size="1" class="smallText"> <input type="password" maxLength="40" value name="password" size="10"> </font> </p> </td> </tr> <tr> <td width="10%" height="1" class="smallText"> <p align="center"> <br> <INPUT type="image" src="ok.png" name="Submit" alt="cliquer" > <br><br> <a class="smallText" href="http://www.kinouche.com/password_forgotten.php">Mot de Passe ?</a> </p> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> </td> </tr> </div> <div id="hautdroit"> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="100%" height="14" class="infoBoxHeading"><a href="http://www.kinouche.com/shopping_cart.php"><img src="monpanier.png" border="0" alt="Panier" title=" Panier " width="180" height="62"></a></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents2"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText">vide</td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> </div> <div id="boutontouthaut"> <a href="http://www.kinouche.com/presentations.htm"><img src="panier_haut.jpg" align="right"></a><a href="http://www.kinouche.com/login.php"><img src="moncompte_haut.jpg" align="right"></a></div> <object id="haut" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="643" height="87" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="banhome.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="banhome.swf" quality="high" bgcolor="#000000" width="673" height="117" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> <div id="boutonhaut"> <a href="http://www.kinouche.com/presentations.htm"><img src="boutonpres2.jpg"></a> <a href="http://www.kinouche.com/collections.htm"><img src="boutoncollec2.jpg"></a> <a href="http://www.kinouche.com/commander.htm"><img src="boutoncomma2.jpg"></a> <a href="http://www.kinouche.com/news.htm"><img src="boutonnews2.jpg"></a> </div> <div id="droit"> </div> <div id="gauche"> </div> <div id="centre"> <center> <br> <embed src="accueil2.swf" quality="high" bgcolor="#000000" width="540" height="255" name="news" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </center> </div> <div id="boutonbas"> <a href="http://www.kinouche.com/contact.php"><img src="boutoncontact2.jpg"></a> <a href="http://www.i-services.net/membres/livredor/livredor.php?uid=140987&sid=86424" target="_blank"><img src="boutonlivre2.jpg"></a> <a href="http://www.kinouche.com/pointsvente.htm"><img src="boutonpoints2.jpg"></a> </div> </div> <br><br> <center> <a href="http://www.kinouche.com/accueil.htm"> Accueil </a> <font color="#000000"> | </font> <a href="http://www.kinouche.com/liens.htm"> Liens </a> <font color="#000000"> | </font> <a href="http://www.kinouche.com/contact.php"> Contact </a> <font color="#000000"> | </font> <a href="http://www.kinouche.com/conditions.htm"> Conditions de vente </a> <br><img src="barre2.jpg"> <br>© Kinouche 2009 - 2010 - Tous droits réservés </center> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-10753340-1"); pageTracker._trackPageview(); } catch(err) {} </script> </body> </html> Merci d'avance de vos réponse, et très bonne journée à vous !
  6. Me revoilà Alors j'ai bien étudié la chose ce week-end..... J'ai déjà fait la démarche d'installer mon site en local, vu que je vais sûrement faire des bêtises. J'ai installé Prestashop, et tenté de le comprendre. En fait ça m'angoisse un peu... Je pensais vraiment que c'était prestashop qui allait s'adapter à mon site et non le contraire... Je n'ai pas trop envie d'avoir le même genre de site que ceux présentés sur Prestashop. Ma question est donc, comment font les autres sites marchand pour rester eux-mêmes ? Existe-t-il une solution pour que je puisse intégrer un encart "panier" dans mon site, et au final, revoir mes catégories de bijoux pour que cela soit adapter à la vente en ligne ? Enfin bref, une solution pour un site qui est déjà construit en fait En tout cas, merci de votre aide, qui m'est vraiment précieuse, heureusement que vous êtes là pour m'aider car je suis complètement perdue Je vous souhaite à tous une très bonne journée !
  7. Merci pour vos conseils ! J'ai bien regardé le tutoriel d'installation de prestashop, c'est très bien expliquer, donc je pense y arriver ! Je suis contente de savoir que je pourrai continuer a utiliser mon template, même si je dois ajouter des modules comme le panier autour du design, ça n'a pas trop d'importance... J'ai un peu peur de me lancer, je suis meilleure en design qu'en codage, lol =) Merci à vous en tout cas !
  8. Ah oui, en effet, vous avez raison, cela comporte énormément d'avantages et me semble être la meilleure solution. J'espère pouvoir y arriver et surtout garder mon design actuel ! Vous qui connaissez bien prestashop, pensez vous que cela pourra s'adapter a mon design que vous pouvez visualiser a cette adresse ?? : />http://www.kinouche.com/accueil.htm merci encore !!!
  9. Merci beaucoup a vous deux !!!! En fait mon site a un design assez particulier, j'ai galèré comme pas possible pour le coder et dans mon esprit quelque peu naïf je pensait que j'avais juste a installer un panier, une page commander qui ensuite envoie au serveur de la banque ! Même si je n'utilise pas prestashop, existe-t-il une solution équivalente a mes souhaits ? excusez moi, vraiment, je débute ! Bon après midi à vous !
  10. D'accord, merci Jacques pour ces précieuses informations ! Donc cette solution complète ne va t-elle pas défigurer mon site ? Pourrai-je garder mon design actuel ? Si j'ai bien compris, j'aurai juste a changer mes pages " categories, produits... etc ", mais la base restera la même ? Merci encore !
  11. Bonjour à tous =) Premièrement je m'excuse de la question que je vais vous poser, je débute complètement dans le e-commerce et je suis perdue ! Je m'occupe actuellement d'un site marchand fonctionnant seulement par bon de commande + chèque. La créatrice de la marque souhaite installer le paiement en ligne. Pour cela, elle a souscrit à l'offre CyberPlus paiement de la banque populaire, à moi de faire le reste... Donc si j'ai bien compris le module de la banque, donc la finalisation du paiement en ligne, sera installée par la banque elle même, mais je pense que je dois installer tout le reste ( mise en place d'un panier... etc ) Pour cela je me suis renseignée sur internet et sur ce forum, et je vois que Prestashop est une bonne solution. Ma question est : est ce que le client pourra remplir son panier avec les scripts de prestashop, pour ensuite payer sur le site Cyberplus ? est ce que les deux sont compatibles ? Et une dernière question, mon site est déjà tout construit, il reste juste à intégrer un système de panier, login, et une page de commande. Est ce que Prestashop est une bonne solution pour cela ? Merci d'avance de vos réponses, et pardonnez mon ignorance Très bonne journée à vous !
  12. aaah merci ! ça marche !! je suis trop contente, en fait il fallait passer en RVB !!! Merci Jacques, et bonne soirée à vous tous
  13. Je viens de verifier.... Mais non, tout est ok, et ce que je ne comprend pas c'est que cela marche parfaitement sur mon mac ( safari ) Et pas sur un PC ( IE )... J'ai dû faire une erreur quelque part... Mais où...
  14. Merci, je viens de tester, mais cela ne marche pas...
  15. Bonjour à tous ! =) Voila, alors un problème est survenu d'un coup hier... Mes images ne s'affichent plus ( j'ai la petite croix rouge à la place ) et cela, uniquement sous IE.... Je ne comprend vraiment pas, de plus, cela survient uniquement sur les dernières photos que j'ai téléchargé... Exemple à cette adresse : http://www.kinouche.com/carte.htm Pour info, j'utilise FileZilla et je suis hebergée chez MavenHosting... Merci d'avance de vos réponse, et bon week-end !!
×
×
  • Créer...