FS#683 - Affichage formulaire des bons réductions meme si réduction client n'existe pas
Concerne le projet:
Plici
Ouverte par Mallet (fmallet) - samedi, 28 novembre 2009, 10:44 GMT+1
Dernière édition par TRICHET Stéphane (stephanet) - mardi, 01 décembre 2009, 13:55 GMT+1
Ouverte par Mallet (fmallet) - samedi, 28 novembre 2009, 10:44 GMT+1
Dernière édition par TRICHET Stéphane (stephanet) - mardi, 01 décembre 2009, 13:55 GMT+1
|
DétailsPour Version 1.0.0 et V2.0.0 1878
Page: http://www.monsite.com/l1/p17-page.html Actuellement : Affichage formulaire des bons réductions meme si le client n'a pas de reduction ou qu'il n'existe pas de reduction pour tout le monde Maintenant: Affichage formulaire des bons réductions si reduction client existe ou reduction pout tout le monde existe t_productmodifier_fo.claas.php: requete: $this->req_can_enter_ticket_discount_code ="SELECT pmo_id FROM t_productmodifier LEFT JOIN t_customer_has_t_productmaster ON cupr_pmo_id = pmo_id WHERE pmo_type = '%s'AND ((pmo_lifestart IS NULL) OR (pmo_lifestart <= NOW( ))) AND (pmo_lifeend IS NULL OR pmo_lifeend >= NOW( )) AND (cupr_cus_id = '%s'OR cupr_cus_id = 'ALL') GROUP BY pmo_id ORDER BY pmo_id;"; } function canEnterTicketDiscountCode(&$r_result) { // Set result to blank $r_result = FALSE; // Retrieve customer id global $g_object_loader; $object_tcustomer =& $g_object_loader->getTCustomerFo(); $email = ""; $customer_id = ""; $object_tcustomer->getCustomerAuthentQuick($email, $customer_id); // Declare database request result $result = array(); // Set request parameter /* $parameters = array(); $parameters[] = $this->m_type['TICKET']; // Type */ $parameters =array($this->m_type['TICKET'],$customer_id); // Execute request if ($this->m_object_dbconnexion->makeSqlQuery($this->req_can_enter_ticket_discount_code, $parameters, $result)) { return onErrorThrow(true,plici_lang("lang_error_internal")); } // Arrange result while($row = mysql_fetch_row($result)) { // The user can be enter ticket discount $r_result = TRUE; } // Return no error code return FALSE; } ---------- Elements à remplir si il s'agit d'une amélioration ou d'une nouvelle fonctionnalité : [plici_sponsor_url][/plici_sponsor_url] [plici_sponsor_name][/plici_sponsor_name] [plici_categorie][/plici_categorie] [plici_subcategorie][/plici_subcategorie] [plici_categ_http_image][/plici_categ_http_image] [plici_subcateg_http_image][/plici_subcateg_http_image] Dans tous les cas, merci de consulter la documentation : -Corriger un bug sur PLICI : http://wiki.plici.net/documentation_developpeurs:corriger_un_bug_sur_plici -Faire une amélioration ou une nouveauté sur PLICI : http://wiki.plici.net/documentation_developpeurs:faire_une_amelioration_ou_une_nouveaute_sur_plici |
Cette tâche dépend de