Index: www-lp/www/includes/classes/PriceFormatter.php =================================================================== diff -u -r21 -r36 --- www-lp/www/includes/classes/PriceFormatter.php (.../PriceFormatter.php) (revision 21) +++ www-lp/www/includes/classes/PriceFormatter.php (.../PriceFormatter.php) (revision 36) @@ -54,11 +54,7 @@ if ( is_pro_customer() or ! is_null($price_breaks_from_listing) ) // on fournit une liste dans $price_breaks_from_listing, on doit donc autoriser les prix par palier $this->price_breaks_allowed = true; else - { - // VDALLOWPB - $this->price_breaks_allowed = true; // on autorise tout le monde a voir les prix par pallier - // $this->price_breaks_allowed = false; - } + $this->price_breaks_allowed = false; // <- OSC-94 - Prix par palier reservé aux professionnels $this->Partner_price = -1; @@ -1022,7 +1018,7 @@ // ([4])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END // ([5])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END // ([7])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END - $lc_text = '' . str_replace(TEXT_PRICE_BREAKS, 'Dès
', TEXT_PRICE_BREAKS) . '' + $lc_text = '' . str_replace(TEXT_PRICE_BREAKS, 'Quantité
', TEXT_PRICE_BREAKS) . '' . $currencies->afficher_prix_ttc($this->lowPrice, tep_get_tax_rate($this->taxClass)) . '  TTC
'; // Dispose d'un prix base à l'unité (exemple: includes/modules/product_listing.php -> index.php) @@ -1213,7 +1209,7 @@ // ([1])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN // ([2])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN // -> VDQPBPP135 : possibilité d'aligner les prix à gauche/droite - function getPriceStringVersion2($style='productPriceInBox', $align='right', $mode='Standard', $ttc_displayer='Oui!') { + function getPriceStringVersion2($style='productPriceInBox', $align='right', $mode='Standard', $ttc_displayer='Non!') { // <- VDQPBPP135 global $currencies; @@ -1222,7 +1218,7 @@ // ([6])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END $customerProfile = 'pf:Standard'; - $affichageTTC = $ttc_displayer; + // ([18])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN $cssClassOfTableDisplayPriceBreak = ''; @@ -1234,30 +1230,21 @@ // ([7])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN if ($is_partner == true) { $customerProfile = 'pf:Partenaire'; - $affichageTTC = 'Non!'; } else if (is_pro_customer() == true) { $customerProfile = 'pf:Professionnel'; - $affichageTTC = 'Non!'; } // ([7])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END } else { - // VDALLOWPB - // $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; - $cssClassOfTableDisplayPriceBreak = '--pleaseDisplayMyPriceTable ---orAdaptFor --proOrPartnerCustomer'; - $affichageTTC = 'Non!'; - // $customerProfile = 'pf:Professionnel'; + $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; } } else { - // VDALLOWPB - // $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; - $cssClassOfTableDisplayPriceBreak = '--pleaseDisplayMyPriceTable ---orAdaptFor --proOrPartnerCustomer'; - // $customerProfile = 'pf:Professionnel'; + $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; } // ([18])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END // ([6])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END - //$affichageTTC = $ttc_displayer; + $affichageTTC = $ttc_displayer; // ([9])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN $classPriceFormatter__referencers = array( @@ -1322,10 +1309,7 @@ . $price_break['products_qty'] .'+ '; } - // VDALLOWPB : do not display price in HT for end-user - if ($affichageTTC == 'Non!') { - // -> OSC-70 : Gestion HT/TTC : affichage prix HT et TTC /* * Modification informative du texte d'une ligne dans le tableau des prix par palliers @@ -1499,11 +1483,8 @@ // ([5])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END $lc_text .= ''; - // VDALLOWPB : do not display price in HT for end-user - } - // ([7])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN if ($affichageTTC != 'Non!' and $affichageTTC == 'Oui!') { // -> OSC-70 : Gestion HT/TTC : affichage prix HT et TTC