Index: www-lp/www/includes/modules/product_listing.php =================================================================== diff -u -r37 -r45 --- www-lp/www/includes/modules/product_listing.php (.../product_listing.php) (revision 37) +++ www-lp/www/includes/modules/product_listing.php (.../product_listing.php) (revision 45) @@ -155,10 +155,10 @@ // ([2])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END $customerProfile = 'Standard'; // ([3])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { + if ($um->is_partner()) { $customerProfile = 'Partenaire'; } - else if (is_pro_customer() == true) { + else if ($um->is_pro()) { $customerProfile = 'Professionnel'; } // ([3])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END @@ -471,10 +471,10 @@ // ([2])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END $customerProfile = 'Standard'; // ([3])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { + if ($um->is_partner()) { $customerProfile = 'Partenaire'; } - else if (is_pro_customer() == true) { + else if ($um->is_pro()) { $customerProfile = 'Professionnel'; } // ([3])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END @@ -702,7 +702,7 @@ } */ // ([1])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { + if ($um->is_partner()) { // ([3])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END $partner_price = number_format((float)$pf->getStringPricePartner($coeff_partner), 2, '.', ''); Index: www-lp/www/product_info.php =================================================================== diff -u -r41 -r45 --- www-lp/www/product_info.php (.../product_info.php) (revision 41) +++ www-lp/www/product_info.php (.../product_info.php) (revision 45) @@ -739,15 +739,15 @@ // ([13])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN // [NEW_PRICE_DIPLAYER_HERE] - if ($is_partner == true) { + if ($um->is_partner()) { $products_price = $pf->getPricePartnerVersion2(); - } elseif (is_pro_customer() == true) { + } elseif ($um->is_pro()) { $products_price = $pf->getPriceStringVersion2('productPriceInBox', 'right', 'Standard', 'Non!'); } else { // [VTAB_BUGFIX_GET_PRICE_FOR_STANDARD_CUSTOMERS_METHOD_FROM] - $products_price = $pf->getPriceStringVersion2('productPriceInBox', 'right', 'Standard', 'Oui!'); + $products_price = $pf->getPriceStringVersion2('productPriceInBox', 'right', 'Standard', 'Oui!'); } // > [start]{"si le prix dispose de paliers, on affiche un tableau de palier"} @@ -771,7 +771,7 @@ // ([45])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END // > [start]{"si le client n'est pas un partenaire mais est un client pro, on affiche en HT"} - if ($is_partner != true AND is_pro_customer() == true) { + if (!$um->is_partner() AND $um->is_pro()) { // si il y a des soucis avec le getPriceStringVersion2() ci-dessous, changer en getPriceString() $products_price = $pf->getPriceStringVersion2(); $products_price = str_replace( @@ -793,7 +793,7 @@ } // > [start]{"si le client est un client partenaire, on affiche en HT"} - else if ($is_partner == true) { + else if ($um->is_partner()) { // si il y a des soucis avec le getPricePartnerVersion2() ci-dessous, changer en getPricePartner() $products_price = $pf->getPricePartnerVersion2(); @@ -1135,10 +1135,10 @@ $customerProfile = 'Standard'; // ([43])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { + if ($um->is_partner()) { $customerProfile = 'Partenaire'; } - else if (is_pro_customer() == true) { + else if ($um->is_pro()) { $customerProfile = 'Professionnel'; } // ([43])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END @@ -1487,7 +1487,7 @@ // on va s'en servir comme point de repère pour placer notre étiquette de promotion à cet endroit lorsque l'on a un tableau de prix! // ATTENTION - il semblerai que les promotions ne soient pas autorisées aux simples utilisateurs pour certains produits, donc, ne pas se faire avoir en imaginant le remplacement défectueux.. // ([46])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END - if ($VTAB_1_pageProductInfo__referencers['condition::is_price_break'] == true AND $is_partner != true) { + if ($VTAB_1_pageProductInfo__referencers['condition::is_price_break'] == true AND !$um->is_partner()) { if (tep_get_products_special_price($product_info['products_id'])) { $products_price = str_replace( '', @@ -1527,7 +1527,7 @@ BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END - if (tep_get_products_special_price($product_info['products_id']) AND $is_partner != true) { ?> + if (tep_get_products_special_price($product_info['products_id']) AND !$um->is_partner()) { ?>
client professionnel // A voir ? function is_pro_customer_by_id($customer_id) { + // On effectue une requête dans la base de données pour vérifier si le champs customers_group_id est égal à 1 ou 0. $tmp_sql_request = tep_db_query("select customers_group_id from " . TABLE_CUSTOMERS . " where customers_id = '" . tep_db_input($customer_id) . "'"); $tmp_what_is = tep_db_fetch_array($tmp_sql_request); @@ -1664,14 +1665,15 @@ } } - // fonction qui va tester si l'utilisateur est professionnel ou non (ce, sans contacter la base de données (économie de requêtes SQL)) // Attends en paramètre l'ID du client ($customer_id) // -> OSC-94 - Prix par palier reservé aux professionnels function is_pro_customer($customer_id_par=NULL) { + // je suis non identifié/visiteur, donc forcément un utilisateur anonyme. // Ainsi, je ne suis donc pas un professionnel (fatalement..) - if ( CATPRO_FOR_ALL == 'true' ) return(true); + if ( CATPRO_FOR_ALL == 'true' ) return(true); + if (!tep_session_is_registered('customer_id')) { // le client n'est pas identifié ou est un bot ou est un visiteur, bref, on retourne false! @@ -1685,6 +1687,11 @@ } // <- OSC-94 - Prix par palier reservé aux professionnels +// A function that checks whether a user is anonymus + function is_user_anonymous(){ + return !isset($_SESSION['customer_id']); + } + // // fonction afin d'analyser si une catégorie est reservée aux pro ou non function is_category_for_pro($category_id) { @@ -1801,7 +1808,40 @@ // AP URL Rewriting //// +class UserManager { + public $is_partner; + public function __construct($is_partner=null){ + $this->is_partner = $is_partner; + } + + public function is_anonymous(){ + return !isset($_SESSION['customer_id']); + } + + public function is_partner(){ + return $this->is_partner; + } + + public function is_pro(){ + if ($this->is_anonymous()){ + return true; + } + else{ + return is_pro_customer(); + } + } + + public function is_end_user(){ + if (isset($_SESSION['customer_id'])){ + if (is_pro_customer_by_id($_SESSION['customer_id']) == 0){ + return true; + } + } + return false; + } +} + ?> Index: www-lp/www/shopping_cart.php =================================================================== diff -u -r4 -r45 --- www-lp/www/shopping_cart.php (.../shopping_cart.php) (revision 4) +++ www-lp/www/shopping_cart.php (.../shopping_cart.php) (revision 45) @@ -435,24 +435,37 @@ ); // ([5])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END + // = new UserManager($is_partner); + if (tep_session_is_registered('customer_id') == true){ + if ($um->is_partner() OR $um->is_pro()) { + $pageShoppingCart__referencers['cssClassOfPriceBox'] = '--pleaseAdaptForProOrPartnerCustomer'; + // ([4])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN + if ($um->is_partner()) { + $pageShoppingCart__referencers['customerProfile'] = 'Partenaire'; + } + else if ($um->is_pro()) { + $pageShoppingCart__referencers['customerProfile'] = 'Professionnel'; + } + // ([4])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END + } else { + $pageShoppingCart__referencers['cssClassOfPriceBox'] = '--pleaseAdaptForProOrPartnerCustomer'; + } + } + // ([37])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN - if (tep_session_is_registered('customer_id')) { - if ($is_partner == true OR is_pro_customer() == true) { + if ($um->is_partner() OR $um->is_pro()) { $pageShoppingCart__referencers['cssClassOfPriceBox'] = '--pleaseAdaptForProOrPartnerCustomer'; // ([4])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { + if ($um->is_partner()) { $pageShoppingCart__referencers['customerProfile'] = 'Partenaire'; } - else if (is_pro_customer() == true) { + else if ($um->is_pro()) { $pageShoppingCart__referencers['customerProfile'] = 'Professionnel'; } // ([4])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END } else { $pageShoppingCart__referencers['cssClassOfPriceBox'] = '--pleaseAdaptForStandardOrVisitorCustomer'; } - } else { - $pageShoppingCart__referencers['cssClassOfPriceBox'] = '--pleaseAdaptForStandardOrVisitorCustomer'; - } // ([37])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END // ([6])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN @@ -567,19 +580,19 @@ if ($pf->hasQuantityPrice()) { - if ($is_partner == true) { + if ($um->is_partner()) { // ([23])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END $pageShoppingCart__referencers['productPrices'] = $pf->getPricePartnerVersion2(); // ([22])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN - } elseif (is_pro_customer() == true) { + } elseif ($um->is_pro()) { // ([23])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END $pageShoppingCart__referencers['productPrices'] = $pf->getPriceStringVersion2('productPriceInBox', 'right', 'Standard', 'Non!'); // ([22])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END } else { // ([23])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END - $pageShoppingCart__referencers['productPrices'] = $pf->getPriceStringVersion2('productPriceInBox', 'right', 'Standard', 'Oui!'); + $pageShoppingCart__referencers['productPrices'] = $pf->getPriceStringVersion2('productPriceInBox', 'right', 'Standard', 'Non!'); // Oui! } } // ([24])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN @@ -603,7 +616,7 @@ } else { // ([8])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END // > [start]{"si le client n'est pas un partenaire mais est un client pro, on affiche en HT"} - if ($is_partner != true AND is_pro_customer() == true) { + if (!$um->is_partner() AND $um->is_pro()) { // si il y a des soucis avec le getPriceStringVersion2() ci-dessous, changer en getPriceString() $pageShoppingCart__referencers['productPrices'] = $pf->getPriceStringVersion2(); $pageShoppingCart__referencers['productPrices'] = str_replace( @@ -627,7 +640,7 @@ // < [stop]{"si le client n'est pas un partenaire mais est un client pro, on affiche en HT"} } // > [start]{"si le client est un client partenaire, on affiche en HT"} - else if ($is_partner == true) { + else if ($um->is_partner()) { // si il y a des soucis avec le getPricePartnerVersion2() ci-dessous, changer en getPricePartner() $pageShoppingCart__referencers['productPrices'] = $pf->getPricePartnerVersion2(); // ([8])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END @@ -712,8 +725,8 @@ // ([38])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN // [VALORIZE_INDEX_TO_HACK_PRICE_IN_TTC_UNIT_PRICE] if (!preg_match('/(?:icon\: tag)/', $pageShoppingCart__referencers['productPrices']) - AND is_pro_customer() == false - AND $is_partner == false) { + AND !$um->is_pro() + AND !$um->is_partner()) { $pageShoppingCart__referencers['visitorOrTTC_hack_ProductPrices'] = $currencies->afficher_prix_ttc($pf->thePrice, tep_get_tax_rate($pf->taxClass)); $pageShoppingCart__referencers['visitorOrTTC_hack_ProductPrices'] = str_replace( 'EUR', @@ -830,7 +843,7 @@ -if ($is_partner ==1) { // gestion partenaire is_partner +if ($um->is_partner()) { // gestion partenaire is_partner $partner_price_precal = $products[$i]['cost']*$coeff_partner; $products[$i]['final_price'] = min($partner_price_precal, $products[$i]['final_price'],$pf->lowPrice); Index: www-lp/www/includes/application_top.php =================================================================== diff -u -r4 -r45 --- www-lp/www/includes/application_top.php (.../application_top.php) (revision 4) +++ www-lp/www/includes/application_top.php (.../application_top.php) (revision 45) @@ -336,6 +336,13 @@ // <- SESSIONFIX } +// create user manager object +$account_query = tep_db_query("select is_partner,coeff_partner from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); +$account = tep_db_fetch_array($account_query); +$coeff_partner = $account['coeff_partner']; +$is_partner = $account['is_partner']; +$um = new UserManager($is_partner); + // create the shopping cart & fix the cart if necesary if (tep_session_is_registered('cart') && is_object($cart)) { if (PHP_VERSION < 4) { @@ -755,13 +762,5 @@ require_once(DIR_WS_FUNCTIONS . 'icirelais_function.php'); // End added for ICI Relais - - $account_query = tep_db_query("select is_partner,coeff_partner from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); - - $account = tep_db_fetch_array($account_query); - $coeff_partner = $account['coeff_partner']; - $is_partner = $account['is_partner']; - - // <- 0000003 ?> Index: www-lp/www/includes/classes/PriceFormatter.php =================================================================== diff -u -r37 -r45 --- www-lp/www/includes/classes/PriceFormatter.php (.../PriceFormatter.php) (revision 37) +++ www-lp/www/includes/classes/PriceFormatter.php (.../PriceFormatter.php) (revision 45) @@ -38,6 +38,8 @@ */ // <- [SI-LINDER-PARTNER-2][OSC] - Refonte du site Internet pour supporter le Responsive Design + + class PriceFormatter { function PriceFormatter() { @@ -50,16 +52,17 @@ $this->lowPrice = -1; $this->hasSpecialPrice = false; //tep_not_null($this->specialPrice); $this->specialPrice = NULL; //$prices['specials_new_products_price']; + // -> OSC-94 - Prix par palier reservé aux professionnels - 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; + + global $um; // user manager object + + if ($um->is_pro() or ! is_null($price_breaks_from_listing)) + $this->price_breaks_allowed = true; else $this->price_breaks_allowed = false; // <- OSC-94 - Prix par palier reservé aux professionnels $this->Partner_price = -1; - - - } function loadProduct($product_id, $language_id = 1, $listing = NULL, $price_breaks_from_listing = NULL) { @@ -864,29 +867,32 @@ // ([7])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN $cssClassOfPriceDisplay_HT = ''; $cssClassOfPriceDisplay_TTC = ''; - - if (tep_session_is_registered('customer_id')) { - if ($is_partner == true OR is_pro_customer() == true) { - $cssClassOfPriceDisplay_HT = '--pleaseDisplayMyPriceString'; - $cssClassOfPriceDisplay_TTC = '--pleaseNotDisplayMyPriceString'; - // ([10])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END - // echo '$is_partner = '; var_dump($is_partner); die ('
STOP'); - // ([9])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { - $customerProfile = 'pf:Partenaire'; - } - else if (is_pro_customer() == true) { - $customerProfile = 'pf:Professionnel'; - } - // ([9])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END - } else { - $cssClassOfPriceDisplay_HT = '--pleaseNotDisplayMyPriceString'; - $cssClassOfPriceDisplay_TTC = '--pleaseDisplayMyPriceString'; - } - } else { + + + global $um; // user manager object + + if ($um->is_partner() OR $um->is_pro() ) { + $cssClassOfPriceDisplay_HT = '--pleaseDisplayMyPriceString'; + $cssClassOfPriceDisplay_TTC = '--pleaseNotDisplayMyPriceString'; + // ([10])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END + // echo '$is_partner = '; var_dump($is_partner); die ('
STOP'); + // ([9])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN + } + else if ($um->is_partner()) { + $customerProfile = 'pf:Partenaire'; + } + else if ($um->is_pro()) { + $customerProfile = 'pf:Professionnel'; + } + // ([9])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END + else if ($um->is_end_user() ) { $cssClassOfPriceDisplay_HT = '--pleaseNotDisplayMyPriceString'; $cssClassOfPriceDisplay_TTC = '--pleaseDisplayMyPriceString'; } + else { // $um->is_anonymous + $cssClassOfPriceDisplay_HT = '--pleaseNotDisplayMyPriceString'; + $cssClassOfPriceDisplay_TTC = '--pleaseDisplayMyPriceString'; + } // ([7])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END // -> OSC-70 : Gestion HT/TTC : affichage prix HT et TTC @@ -970,7 +976,7 @@ $lc_text = '' // ([5])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN // ([7])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END - /* + . '' // ([8])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN . '' @@ -982,7 +988,7 @@ // ([3])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END . '
' . '
' - */ + // ([5])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END // ([3])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END // . '
' @@ -1209,7 +1215,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='Non!') { + function getPriceStringVersion2($style='productPriceInBox', $align='right', $mode='Standard', $ttc_displayer='Oui!') { // <- VDQPBPP135 global $currencies; @@ -1218,33 +1224,34 @@ // ([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 = ''; - - if (tep_session_is_registered('customer_id')) { - if ($is_partner == true OR is_pro_customer() == true) { - $cssClassOfTableDisplayPriceBreak = '--pleaseDisplayMyPriceTable ---orAdaptFor --proOrPartnerCustomer'; - // ([9])-->BEGIN[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END - // echo '$is_partner = '; var_dump($is_partner); die ('
STOP'); - // ([7])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::BEGIN - if ($is_partner == true) { - $customerProfile = 'pf:Partenaire'; - } - else if (is_pro_customer() == true) { - $customerProfile = 'pf:Professionnel'; - } - // ([7])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END - } else { - $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; - } - } else { - $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; + + global $um; // user manager object + + if ($um->is_partner()) { + $customerProfile = 'pf:Partenaire'; + $affichageTTC = 'Non!'; + $cssClassOfTableDisplayPriceBreak = '--pleaseDisplayMyPriceTable ---orAdaptFor --proOrPartnerCustomer'; } + else if ($um->is_pro()) { + $customerProfile = 'pf:Professionnel'; + $affichageTTC = 'Non!'; + $cssClassOfTableDisplayPriceBreak = '--pleaseDisplayMyPriceTable ---orAdaptFor --proOrPartnerCustomer'; + } + // ([9])-->[VTAB-TEAM-LINDER-PARTNER-1][OSC][SubTaskDescription]::END + else if ($um->is_end_user()) { + $cssClassOfTableDisplayPriceBreak = '--pleaseNotDisplayMyPriceTable ---orAdaptFor --standardOrVisitorCustomer'; + } + else { // $um->is_anonymous + $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; permet de changer les prix par palliers en TTC // ([9])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN $classPriceFormatter__referencers = array( @@ -1309,14 +1316,17 @@ . $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 - * (renommage de l'ancienne constante: "TEXT_PRICE_PER_PIECE" par "TEXT_PRICE_PER_PIECE__HT"). - * De fait l'on se sert d'un texte prévenant que dans cette ligne du tableau, les prix affichés sont en HT. - * - */ + + // -> OSC-70 : Gestion HT/TTC : affichage prix HT et TTC + /* + * Modification informative du texte d'une ligne dans le tableau des prix par palliers + * (renommage de l'ancienne constante: "TEXT_PRICE_PER_PIECE" par "TEXT_PRICE_PER_PIECE__HT"). + * De fait l'on se sert d'un texte prévenant que dans cette ligne du tableau, les prix affichés sont en HT. + * + */ // ([4])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN if ($mode == 'OnlyPriceBreaker') { // ([18])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END @@ -1330,7 +1340,7 @@ $lc_text .= '' . TEXT_PRICE_PER_PIECE__HT . ''; } // ([4])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END - // <- OSC-70 : Créér un double-affichage des prix pour les produits (HT/TTC) + // <- OSC-70 : Créér un double-affichage des prix pour les produits (HT/TTC) // ([5])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN @@ -1350,7 +1360,7 @@ } // -> OSC-94 - Prix par palier reservé aux professionnels - if ( ! $this->price_breaks_allowed) + if ( !$this->price_breaks_allowed) // ([15])-->BEGIN[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END $lc_text .= 'Accès PRO'; else @@ -1483,8 +1493,11 @@ // ([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 @@ -1560,7 +1573,7 @@ // <- OSC-70 : Gestion HT/TTC : affichage prix HT et TTC } // ([7])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::END - + // ([8])-->[SI-LINDER-PARTNER-2][OSC][SubTaskDescription]::BEGIN if ($mode == 'OnlyPriceBreaker') {