osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> price break, mettre un texte
manufrance
posté 14 Feb 2005, 10:05
Message #1


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 134
Inscrit : 18-February 03
Lieu : 82300 Saint Cirq
Membre no 866



Moi je voudrais mettre un texte en plus.
Ou dois-je mettre le texte dans le tableau ?

Prix public
12.91 €
Prix Professionnels
9.95 €
10+ 8.65 €
50+ 8.22 €
100+ 7.35 €
250+ 6.49 €

ça se passe dans PriceFormatter.php
J'ai mis Pricepp pour le prix Public.

$lc_text = '<table align="top" border="1" cellspacing="0" cellpadding="0">';
$lc_text .= '<tr><td align="center" class=' . $style. ' colspan="2">'
. $currencies->display_price($this->thePrice,
tep_get_tax_rate($this->taxClass))
. '</td></tr>'

. $currencies->display_price($this->thePricepp,
tep_get_tax_rate($this->taxClass))
. '</td></tr>';

QQun a une idée ?
Ou puis-je placer le texte pour qu'il apparaisse comme ci_dessus?

biggrin.gif


--------------------
Version Cre Loaded 6.2[10.1]
Go to the top of the page
 
bertrandg
posté 14 Feb 2005, 22:00
Message #2


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour Manufrance,

Est ce que c'est ça que tu cherches à faire ?


Lien supprimé comme promis


Bertrand

Ce message a été modifié par bertrandg - 20 Feb 2005, 13:48.


--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
creabox team
posté 16 Feb 2005, 23:15
Message #3


Ceinture orange OSC
Icône de groupe

Groupe : Membres
Messages : 168
Inscrit : 30-October 04
Membre no 3639



bonjour bertrandg

concernant price break, ta mise en forme (au niveau du tableau m'interesse beaucoup) pourais tu si ca ne te pose aucun probleme de nous faire partager ce morceau de code blush.gif blush.gif blush.gif tongue.gif tongue.gif

cordialement Jason
Ps: pas mal du tout le boulo de customisation de ta boutique !


--------------------
> Osc RC2a US > langue FR + beaucoup de contribs, tellement que je n'ai pas le courage de faire la liste.
> En cours de développement sous XAMPP | Mysql 5.1.37 | PHP 5.3.0 | Register_global OFF
> En beta test en ligne | Mysql 5.2.13 | PHP 5.2.13 | Register_global OFF
Go to the top of the page
 
bertrandg
posté 16 Feb 2005, 23:29
Message #4


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour creabox team,

On m'a tellement aidé sur ce forum que ce serait mal venu de ma part de refuser. blush.gif

Voici le code pour ma CRELOAD 6

Dans catalog\classes\PriceFormatter.php

Remplacer le contenu de PriceFormatter.php par :

CODE
<?php
/*
 $Id: PriceFormatter.php,v 1.6 2003/06/25 08:29:26 petri Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

/*
   PriceFormatter.php - module to support quantity pricing

   Created 2003, Beezle Software based on some code mods by WasaLab Oy (Thanks!)
*/

class PriceFormatter {
 var $hiPrice;
 var $lowPrice;
 var $quantity;
 var $hasQuantityPrice;

 function PriceFormatter($prices=NULL) {
   $this->productsID = -1;

   $this->hasQuantityPrice=false;
   $this->hasSpecialPrice=false;

   $this->hiPrice=-1;
   $this->lowPrice=-1;

   for ($i=1; $i<=8; $i++){
     $this->quantity[$i] = -1;
     $this->prices[$i] = -1;
   }
   $this->thePrice = -1;
   $this->specialPrice = -1;
   $this->qtyBlocks = 1;

   if($prices)
     $this->parse($prices);
 }

 function encode() {
$str = $this->productsID . ":"
       . (($this->hasQuantityPrice == true) ? "1" : "0") . ":"
       . (($this->hasSpecialPrice == true) ? "1" : "0") . ":"
       . $this->quantity[1] . ":"
       . $this->quantity[2] . ":"
       . $this->quantity[3] . ":"
       . $this->quantity[4] . ":"
    . $this->quantity[5] . ":"
    . $this->quantity[6] . ":"
    . $this->quantity[7] . ":"
       . $this->quantity[8] . ":"
       . $this->price[1] . ":"
       . $this->price[2] . ":"
       . $this->price[3] . ":"
       . $this->price[4] . ":"
    . $this->price[5] . ":"
    . $this->price[6] . ":"
    . $this->price[7] . ":"
       . $this->price[8] . ":"
       . $this->thePrice . ":"
       . $this->specialPrice . ":"
       . $this->qtyBlocks . ":"
       . $this->taxClass;
return $str;
 }

 function decode($str) {
list($this->productsID,
     $this->hasQuantityPrice,
     $this->hasSpecialPrice,
     $this->quantity[1],
     $this->quantity[2],
     $this->quantity[3],
     $this->quantity[4],
     $this->quantity[5],
     $this->quantity[6],
     $this->quantity[7],
     $this->quantity[8],
     $this->price[1],
     $this->price[2],
     $this->price[3],
     $this->price[4],
     $this->price[5],
     $this->price[6],
     $this->price[7],
     $this->price[8],
     $this->thePrice,
     $this->specialPrice,
     $this->qtyBlocks,
     $this->taxClass) = explode(":", $str);

$this->hasQuantityPrice = (($this->hasQuantityPrice == 1) ? true : false);
$this->hasSpecialPrice = (($this->hasSpecialPrice == 1) ? true : false);
 }

 function parse($prices) {
   $this->productsID = $prices['products_id'];
   $this->hasQuantityPrice=false;
   $this->hasSpecialPrice=false;

   $this->quantity[1]=$prices['products_price1_qty'];
   $this->quantity[2]=$prices['products_price2_qty'];
   $this->quantity[3]=$prices['products_price3_qty'];
   $this->quantity[4]=$prices['products_price4_qty'];
   $this->quantity[5]=$prices['products_price5_qty'];
   $this->quantity[6]=$prices['products_price6_qty'];
   $this->quantity[7]=$prices['products_price7_qty'];
   $this->quantity[8]=$prices['products_price8_qty'];

   $this->thePrice=$prices['products_price'];
$this->specialPrice=$prices['specials_new_products_price'];
   $this->hasSpecialPrice=tep_not_null($this->specialPrice);

$this->price[1]=$prices['products_price1'];
   $this->price[2]=$prices['products_price2'];
   $this->price[3]=$prices['products_price3'];
   $this->price[4]=$prices['products_price4'];
$this->price[5]=$prices['products_price5'];
$this->price[6]=$prices['products_price6'];
$this->price[7]=$prices['products_price7'];
   $this->price[8]=$prices['products_price8'];


    /*
      Change support special prices
   If any price level has a price greater than the special
   price lower it to the special price
*/
if ($this->hasSpecialPrice == true) {
 for($i=1; $i<=8; $i++) {
  if ($this->price[$i] > $this->specialPrice)
   $this->price[$i] = $this->specialPrice;
 }
}
//end changes to support special prices

   $this->qtyBlocks=$prices['products_qty_blocks'];

   $this->taxClass=$prices['products_tax_class_id'];

   if ($this->quantity[1] > 0) {
     $this->hasQuantityPrice = true;
     $this->hiPrice = $this->thePrice;
     $this->lowPrice = $this->thePrice;

     for($i=1; $i<=8; $i++) {
if($this->quantity[$i] > 0) {
  if ($this->price[$i] > $this->hiPrice) {
    $this->hiPrice = $this->price[$i];
  }
  if ($this->price[$i] < $this->lowPrice) {
    $this->lowPrice = $this->price[$i];
  }
}
     }
   }
 }

 function loadProduct($product_id, $language_id=1)
 {
   $sql="select pd.products_name, p.products_model, p.products_image, p.products_id," .
       " p.manufacturers_id, p.products_price, p.products_weight," .
       " p.products_price1,p.products_price2,p.products_price3,p.products_price4, p.products_price5,p.products_price6,p.products_price7,p.products_price8," .
       " p.products_price1_qty,p.products_price2_qty,p.products_price3_qty,p.products_price4_qty, p.products_price5_qty,p.products_price6_qty,p.products_price7_qty,p.products_price8_qty," .
       " p.products_qty_blocks," .
       " p.products_tax_class_id," .
       " IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price," .
       " IF(s.status, s.specials_new_products_price, p.products_price) as final_price" .
       " from " . TABLE_PRODUCTS_DESCRIPTION . " pd," .
       "      " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id," .
       "      " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id" .
       " where p.products_status = '1'" .
       "   and p.products_id = '" . (int)$product_id . "'" .
       "   and pd.products_id = '" . (int)$product_id . "'" .
       "   and pd.language_id = '". (int)$language_id ."'";

   $product_info_query = tep_db_query($sql);
   $product_info = tep_db_fetch_array($product_info_query);
   $this->parse($product_info);

   return $product_info;
 }

 function computePrice($qty)
 {
$qty = $this->adjustQty($qty);

$price = $this->thePrice;

//if ($this->hasSpecialPrice == true)
// $price = $this->specialPrice;
//else
 for ($i=1; $i<=8; $i++)
  if (($this->quantity[$i] > 0) && ($qty >= $this->quantity[$i]))
   $price = $this->price[$i];

return $price;
 }

 function adjustQty($qty) {
// Force QTY_BLOCKS granularity
$qb = $this->getQtyBlocks();
if ($qty < 1)
 $qty = 1;

if ($qb >= 1)
{
 if ($qty < $qb)
  $qty = $qb;

 if (($qty % $qb) != 0)
  $qty += ($qb - ($qty % $qb));
}
return $qty;
 }

 function getQtyBlocks() {
   return $this->qtyBlocks;
 }

 function getPrice() {
   return $this->thePrice;
 }

 function getLowPrice() {
   return $this->lowPrice;
 }

 function getHiPrice() {
   return $this->hiPrice;
 }

 function hasSpecialPrice() {
   return $this->hasSpecialPrice;
 }

 function hasQuantityPrice() {
   return $this->hasQuantityPrice;
 }

 function getPriceString($style='productPriceInBox') {
   global $currencies;

//Change support special prices
//don't display special prices.....
   if (false == true) {
     $lc_text = '&nbsp;<s>'
. $currencies->display_price($this->thePrice,
        tep_get_tax_rate($this->taxClass))
. '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
. $currencies->display_price($this->specialPrice,
        tep_get_tax_rate($this->taxClass))
. '</span>&nbsp;';
   }
   else {

     // If you want to change the format of the price/quantity table
     // displayed on the product information page, here is where you do it.

     if($this->hasQuantityPrice == true) {
$lc_text = '<table border="0" cellspacing="0" cellpadding="0" class="PriceFormatterQt">
   <tr valign="top">
   <td>
   <table border="0" cellspacing="1" cellpadding="5" class="PriceFormatterQt">';
       $lc_text .= '<tr valign="top"><td width="150" class="PriceFormatterQt">Quantité commandée</td>'
//          . $currencies->display_price($this->thePrice,
//        tep_get_tax_rate($this->taxClass))
              . '</td>';

for($i=1; $i<=8; $i++) {
  if($this->quantity[$i] > 0) {
    $lc_text .= '<td align="center" width="55" class="PriceFormatterQt">'
      . $this->quantity[$i]
      .'&nbsp;&nbsp;<img src="images/fleche.gif"></td>';
  }
}
//   <tr valign="top"><td width="150" class="infoBoxContents">M1P102</td><td align="center" width="50" class="infoBoxContents">'
//       . $currencies->display_price($this->price[$i],
//        tep_get_tax_rate($this->taxClass))

$lc_text .= '<tr valign="top"><td width="150" class="PriceFormatter">Prix à l\'unité</td>';

for($i=1; $i<=8; $i++) {
  if($this->quantity[$i] > 0) {
    $lc_text .= '<td align="center" width="55" class="PriceFormatter">'
      . $currencies->display_price($this->price[$i],
       tep_get_tax_rate($this->taxClass))
        .'</td>';
  }
}
$lc_text .= '</tr></table></td></tr></table>';
     }
     else {
$lc_text = '&nbsp;'
  . $currencies->display_price($this->thePrice,
          tep_get_tax_rate($this->taxClass))
  . '&nbsp;';
     }
   }
   return $lc_text;
 }

 function getPriceStringShort() {
   global $currencies;

   if ($this->hasSpecialPrice == true) {
     $lc_text = '&nbsp;<s>'
. $currencies->display_price($this->thePrice,
        tep_get_tax_rate($this->taxClass))
. '</s>&nbsp;&nbsp;<span class="productSpecialPrice">'
. $currencies->display_price($this->specialPrice,
        tep_get_tax_rate($this->taxClass))
. '</span>&nbsp;';
   }
   else {
     if($this->hasQuantityPrice == true) {
$lc_text = '&nbsp;'
  . $currencies->display_price($this->lowPrice,
          tep_get_tax_rate($this->taxClass))
  . ' - '
  . $currencies->display_price($this->hiPrice,
          tep_get_tax_rate($this->taxClass))
  . '&nbsp;';
     }
     else {
$lc_text = '&nbsp;'
  . $currencies->display_price($this->thePrice,
          tep_get_tax_rate($this->taxClass))
  . '&nbsp;';
     }
   }
   return $lc_text;
 }
}

?>


Puis dans le stylesheet.css rajouter :

CODE
.PriceFormatter {
 background: #E0F2FB;
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 color: #0000FF;
 border: 1px solid;
 border-style:outset
 
 }
 
 .PriceFormatterQt {
 background: url(../../../../images/TON_IMAGE ou CE QUE TU VEUX);
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 border: 1px solid;
 border-style:outset
 
 }


Bertrand





--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
creabox team
posté 17 Feb 2005, 00:13
Message #5


Ceinture orange OSC
Icône de groupe

Groupe : Membres
Messages : 168
Inscrit : 30-October 04
Membre no 3639



merci beaucoup cool.gif cool.gif ! c'est vraiment sympa de ta part ...

si je peu t'aider pour quoi que ce soit n'hésite pas (bien que mon point fort ne soit pas php... question design je touche pas trop mal alors n'hésite pas tongue.gif !)

bonne continuation a toi !!


--------------------
> Osc RC2a US > langue FR + beaucoup de contribs, tellement que je n'ai pas le courage de faire la liste.
> En cours de développement sous XAMPP | Mysql 5.1.37 | PHP 5.3.0 | Register_global OFF
> En beta test en ligne | Mysql 5.2.13 | PHP 5.2.13 | Register_global OFF
Go to the top of the page
 
lordbdp
posté 4 May 2005, 01:55
Message #6


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 528
Inscrit : 4-April 05
Lieu : France
Membre no 5376



Bonjour à tous.

Cette contrib m'intéresse mais je voudrai l'ajouter au multi admin access level ( une contrib ) pour plusieurs vendeurs en simultané.

Si je laisse le code que vous donnez, tout produit intégré dans la boutique sera avec un prix dégressif ? Car je voudrait que seulement si le prix de certains produits sont dégressifs, ce soit affiché. Sinon affichage du prix normal sans visu du prix dégressif (puisqu'il ne l'est pas).confused.gif


--------------------
Ms2.2Fr de Delaballe + Upgrades de Déc.2005 + 060817
Fonctionne sous EasyPHP 1.8 (sans pb ;o))
Instalé aussi sur serveur distant.
Contribs :
AdminMS2fr_V2.3
+ 100 contribs à installer... (mon Dieu !) => Liste détaillée des contributions prévues
Go to the top of the page
 
bertrandg
posté 4 May 2005, 20:38
Message #7


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour lordbdp,

Tout à fait, avec cette contribution tu peux avoir des prix dégréssifs et des prix "normaux".



--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
lordbdp
posté 8 May 2005, 22:34
Message #8


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 528
Inscrit : 4-April 05
Lieu : France
Membre no 5376



J'adooooooooore l'OsCommerce !

Merci ! biggrin.gif


--------------------
Ms2.2Fr de Delaballe + Upgrades de Déc.2005 + 060817
Fonctionne sous EasyPHP 1.8 (sans pb ;o))
Instalé aussi sur serveur distant.
Contribs :
AdminMS2fr_V2.3
+ 100 contribs à installer... (mon Dieu !) => Liste détaillée des contributions prévues
Go to the top of the page
 
alarys
posté 13 Oct 2005, 18:21
Message #9


Ceinture blanche+ OSC
Icône de groupe

Groupe : Membres
Messages : 26
Inscrit : 23-September 05
Lieu : Rosny sous Bois
Membre no 7225



Salut,

Est-ce compatible avec ms2.2 FR ?

Merci


--------------------
oscommerce MS2.2 + extrafields + categorie box, bullet and line + fck editor + send_order_html_v54 + accept_privacy
Go to the top of the page
 
bertrandg
posté 13 Oct 2005, 22:56
Message #10


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour,

Tout à fait, cette contrib est compatible.


--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
jeandi77
posté 19 Oct 2005, 11:33
Message #11


Ceinture blanche OSC
Icône de groupe

Groupe : Membres
Messages : 2
Inscrit : 26-September 05
Membre no 7246




Bonjour

Newbies, j'ai appliqué à la lettre les 2 sections de codes.
je suis MS2fr.
Sous catalog je n'ai pas " classes" mais dans includes.
Ma question : les tranches de prix sont parametrables à quel endroit ?
Doit t'on définir lmes tranches dans le fichiers php, ou dans l'interface admin ?

Merci de votre aide
Go to the top of the page
 
razleq
posté 20 Oct 2005, 15:27
Message #12


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 119
Inscrit : 10-April 05
Membre no 5452



Hello bertrand ...

Bon moi je suis tjr bloqué par la aussi sad.gif

J ai integré price breack , ajouté les champs dans ma base sql ,
j ai modife les fichier easypopulate pour qu il les prenne en compte ... ( sur la base de ce que tu m avais filer).

Et une fois tout fini j ai ca comme erreur :
---------------------------------------
1054 - Champ 'p.products_bimage' inconnu dans field list

SELECT p.products_id as v_products_id, p.products_model as v_products_model, p.products_image as v_products_image, p.products_bimage as v_products_bimage, p.products_image_lrg as v_products_image_lrg, p.products_image_sm_1 as v_products_image_sm_1, p.products_image_sm_2 as v_products_image_sm_2, p.products_image_sm_3 as v_products_image_sm_3, p.products_image_sm_4 as v_products_image_sm_4, p.products_image_sm_5 as v_products_image_sm_5, p.products_image_sm_6 as v_products_image_sm_6, p.products_price as v_products_price, p.products_price1 as v_products_price1, p.products_price2 as v_products_price2, p.products_price3 as v_products_price3, p.products_price4 as v_products_price4, p.products_price1_qty as v_products_price1_qty, p.products_price2_qty as v_products_price2_qty, p.products_price3_qty as v_products_price3_qty, p.products_price4_qty as v_products_price4_qty, p.products_qty_blocks as v_products_qty_blocks, p.products_weight as v_products_weight, p.products_date_available as v_date_avail, p.products_date_added as v_date_added, p.products_tax_class_id as v_tax_class_id, p.products_quantity as v_products_quantity, p.manufacturers_id as v_manufacturers_id, subc.categories_id as v_categories_id, p.products_status as v_status FROM products as p, categories as subc, products_to_categories as ptoc WHERE p.products_id = ptoc.products_id AND ptoc.categories_id = subc.categories_id
--------------------------------
mellow.gif mellow.gif mellow.gif mellow.gif je pige pas je les ai mit ces champs alors pkoi il est mechant avec moi le oscommerce ..; il m'aime pas heinn??? j... je le savais wink.gif

Bon enfin bref je desespère avec cette contrib ....

A preciser que je suis en creload mais je suis pas sur que ca change tant que ca j ai retouver quasiment tout les bouts de code qu il fallait modif ds le price break :/ .

QlQun saurai interpreter le code erreur??

Go to the top of the page
 
bertrandg
posté 20 Oct 2005, 17:18
Message #13


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour,

Mais non, il t'aimes oscommerce,

Bon je crois que j'ai fais un petite erreur à la ligne 1873

Remplace :

CODE
'" ,products_bimage="'.$v_products_bimage;


par :

CODE
'" ,products_bimage="'.$v_products_bimage.


Il y a un point virgule au lieu d'un point, blush.gif (j'espère que ça vient de là)


--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
razleq
posté 20 Oct 2005, 18:58
Message #14


Ceinture jaune+ OSC
Icône de groupe

Groupe : Membres
Messages : 119
Inscrit : 10-April 05
Membre no 5452




je suis halluciné par le fait que tu ai put savoir qu il y avait un ; a la place d un point ..

Dis moi que c est parce que tu as eut la galere sinon Suis Epaté .

MAis....

Bien que c etait le cas mon probleme n' a pas bouger d un Yota sad.gif( meme avec un point .

exactement le mm msG d erreur :/

PS : pPour info ca marche avec les autres extractions y a que le fichier tab complet que j arrive pas a Download..

Je pensais qu il sagissait d une erreur sql plus que pHp mais tu me dis le contraire ..;

BhouuuUU suis tt perdu x.gif

ALEx


PS Merci qd mm Bertrand blush.gif
Go to the top of the page
 
dfeprod
posté 12 Dec 2005, 11:20
Message #15


Ceinture blanche+ OSC
Icône de groupe

Groupe : Membres
Messages : 21
Inscrit : 29-October 05
Membre no 7681



je suis sur la creload 6 ou je peux trouver les sources de bases pour cette contrib
Go to the top of the page
 
bertrandg
posté 12 Dec 2005, 23:07
Message #16


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour dfeprod,

Elle est I C I la contrib

Perso, jai installé la version du 9 février 2005, mais a toi de voir

wink.gif



--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
dfeprod
posté 13 Dec 2005, 09:14
Message #17


Ceinture blanche+ OSC
Icône de groupe

Groupe : Membres
Messages : 21
Inscrit : 29-October 05
Membre no 7681



merci c'est bien que j'avais trouvé mais je ne comprend pas trop le fonctionnement. je cherche juste a faire des remise sur quantité en focntion du produit
merci
Go to the top of the page
 
bertrandg
posté 13 Dec 2005, 14:29
Message #18


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour,

Voici le fonctionnement de cette contrib.

Tu as un article que tu vends à l'unité 100 euros, tu veux que le prix soit dégréssifs en fonction des quantités commandées par tes clients (en quelque sorte une remise). Eh bien c'est toi qui rentre dans l'admin le prix de tes articles en fonction des tranches de quantité que tu as définies.

Exemple :

100 euros à l'unité
90 euros de 10 à 20 articles achetés
80 euros de 21 à 30 articles achetés
70 euros de 31 à 40 articles achetés

etc etc...

Je ne sais pas si je suis bien clair blush.gif


--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
dfeprod
posté 13 Dec 2005, 15:02
Message #19


Ceinture blanche+ OSC
Icône de groupe

Groupe : Membres
Messages : 21
Inscrit : 29-October 05
Membre no 7681



oui c'est bien ce que j'avais compris mais le problème avec la creload 6 j'ai pas ce résultat
Go to the top of the page
 
bertrandg
posté 13 Dec 2005, 21:46
Message #20


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonsoir,

QUOTE
mais le problème avec la creload 6 j'ai pas ce résultat

C'est à dire ? blink.gif tu as quoi comme résultat ou affichage ?

Je suis avec une creload6 et ça fonctionne parfaitement


--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
lordbdp
posté 16 Dec 2005, 18:11
Message #21


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 528
Inscrit : 4-April 05
Lieu : France
Membre no 5376



QUOTE (bertrandg @ 12 déc 2005, 23:07)
Bonjour dfeprod,

Elle est I C I la contrib

Perso, jai installé la version du 9 février 2005, mais a toi de voir

wink.gif

Pourquoi ne pas partir sur la dernière version (qui est full en plus) de Août 2005 ?


--------------------
Ms2.2Fr de Delaballe + Upgrades de Déc.2005 + 060817
Fonctionne sous EasyPHP 1.8 (sans pb ;o))
Instalé aussi sur serveur distant.
Contribs :
AdminMS2fr_V2.3
+ 100 contribs à installer... (mon Dieu !) => Liste détaillée des contributions prévues
Go to the top of the page
 
bertrandg
posté 16 Dec 2005, 20:41
Message #22


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 655
Inscrit : 22-May 04
Lieu : SAINTES - CHARENTE MARITIME 17
Membre no 2528



Bonjour lordbdp,

Comme je dis, c'est à toi de voir,

Quand j'ai installé cette contrib, je me suis arrété à la version du 09 février 2005, comme je n'ai rencontré aucun problème depuis cette installation je ne suis pas allé voir les plus récentes.


--------------------
Cordialement,

Bertrand
MEDIOLANUM SANTONUM (17100)
Go to the top of the page
 
lordbdp
posté 17 Dec 2005, 13:22
Message #23


Ceinture verte OSC
Icône de groupe

Groupe : Membres
Messages : 528
Inscrit : 4-April 05
Lieu : France
Membre no 5376



Ben je vais essayer la dernière version et je te dirai ce qu'il en est wink.gif .


--------------------
Ms2.2Fr de Delaballe + Upgrades de Déc.2005 + 060817
Fonctionne sous EasyPHP 1.8 (sans pb ;o))
Instalé aussi sur serveur distant.
Contribs :
AdminMS2fr_V2.3
+ 100 contribs à installer... (mon Dieu !) => Liste détaillée des contributions prévues
Go to the top of the page
 
Donald08
posté 26 Feb 2006, 10:05
Message #24


Ceinture blanche OSC
Icône de groupe

Groupe : Membres
Messages : 13
Inscrit : 5-February 06
Lieu : Sedan
Membre no 8916



Bonjour,

Moi je cherche à avoir ca :

- au lieu d'avoir dans le tableau 100+ par exemple, je prefere avoir < 100. Comment faire SVP.
- Supprimer la ligne du haut qui indique le prix unitaire.

Merci pour votre aide.

MS2.2


--------------------
MS 2.2
Go to the top of the page
 
Mi6
posté 27 Oct 2006, 16:54
Message #25


Ceinture orange OSC
Icône de groupe

Groupe : Membres
Messages : 260
Inscrit : 29-July 03
Membre no 1348



Bonjour,

j'ai installé cette contrib et c'est vrai que ça correspond parfaitement à ce que je cherchais mais il y a un bug, je pense que ça concerne pas mal de monde.

Dans includes/classe/shopingcart.php

lors de l'installation de la contrib nous avons comme instructions :

CODE
Find:

        $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
        if ($products = tep_db_fetch_array($products_query)) {
          $prid = $products['products_id'];
          $products_price = $products['products_price'];

          $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'");
          if (tep_db_num_rows($specials_query)) {
            $specials = tep_db_fetch_array($specials_query);
            $products_price = $specials['specials_new_products_price'];
          }

Change to:

        if ($products = $pf->loadProduct($products_id, $languages_id)) {
          $products_price = $pf->computePrice($this->contents[$products_id]['qty']);


Et si je fais cela, les prix de mes produits en promotion classique n'apparaissent pas avec la promotion. Est-ce que vous avez le même problème ?

David


--------------------
Version utilisée : ms2
Go to the top of the page
 

2 Pages V   1 2 >
Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 20th June 2013 - 04:59
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)