Announcement
Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3
- Index
- Thelia 1
- La caverne aux boucles et astuces théliatiennes
- script super comparateur
(11-02-2010 23:57:44)
bonjour ci joint le script pour le shopbot de miwim
super comparateur : un des rares a proposer le cpa
il propose aussi le cpc
le fichier doit se nomer supercomparateur.php
enjoy
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) Octolys Development */
/* email : thelia@octolys.fr */
/* web : www.octolys.fr */
/* */
/* 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 */
/* */
/*************************************************************************************/
?>
<?php header("Content-type: text/plain; charset=iso-8859-1");?>
identifiant_unique de produit;categorie;sous-categorie;titre;description;url_image;prix;urlproduit;disponibilite
<?php
function calculport($poids){
if(poids <=0) return 0;
else if(poids<=0.5) return 6.76;
else if(poids>0.5 && $this->poids<=1) return 7.88;
else if(poids>1 && $this->poids<=2) return 8.72;
else if(poids>2 && $this->poids<=3) return 9.56;
else if(poids>3 && $this->poids<=5) return 11.23;
else if(poids>5 && $this->poids<=7) return 12.96;
else if(poids>7 && $this->poids<=10) return 15.66;
else if(poids>10 && $this->poids<=15) return 17.70;
else if(poids>15 && $this->poids<=30) return 24.76;
else if(poids>30) return 20;
}
?>
<?php
include_once("../../classes/Produit.class.php");
include_once("../../classes/Image.class.php");
include_once("../../classes/Variable.class.php");
$variable = new Variable();
$variable->charger("urlsite");
$produit = new Produit();
$produitdesc = new Produitdesc();
$image = new Image();
$query = "select * from $produit->table where ligne='1'";
$resul = mysql_query($query, $produit->link);
while($row = mysql_fetch_object($resul)){
$produitdesc->charger($row->id);
$query2 = "select * from $image->table where produit='$row->id'";
$resul2 = mysql_query($query2, $image->link);
$row2 = mysql_fetch_object($resul2);
$description = str_replace("\r\n", " ", $produitdesc->description);
$description = str_replace("\n", " ", $description);
$description = str_replace("<br>", "<br />", $description);
$description = str_replace("<BR>", "<br />", $description);
$description = str_replace("\n", " ", $description);
$description = str_replace("<br />", " ", $description);
$description = strip_tags($description);
$description = trim($description);
?>
<?php echo($row->ref); ?>;cadeaux;autres;<?php echo($produitdesc->titre); ?>;<?php echo($description); ?>;<?php echo $variable->valeur; ?>/client/gfx/photos/<?php echo($row2->fichier); ?>;<?php echo($row->prix); ?>;<?php echo $variable->valeur; ?>/produit.php?ref=<?php echo($row->ref); ?>;En Stock;<?php echo "\r\n"; ?><?php } ?>
Y a surement Baleine sous gravillon !!!!
- Index
- Thelia 1
- La caverne aux boucles et astuces théliatiennes
- script super comparateur