Bonjour à tous,
Voila, je suis arrivé a rajoute un champ dans les modules de paiement
Je vous donne ce que j’ai fait
Dans tous les module de paiement j’ai mi ce code
CODE |
$this->idfianet = 'X'; Je change l’intitulé pas CB, virement, cheque etc… ou ce trouve le X |
CODE |
$fianetXML .= "\t<paiement><type>".$payment_class->idfianet."</type></paiement>\n"; |
QUOTE |
Types de transport : • 1 : Retrait de la marchandise chez le marchand • 2 : Utilisation d'un réseau de points-retrait tiers (type kiala, alveol, etc.) • 3 : Retrait dans un aéroport, une gare ou une agence de voyage • 4 : Transporteur (La Poste, Colissimo, UPS, DHL... ou tout transporteur privé) • 5 : Emission d’un billet électronique, téléchargements |
CODE |
Modif de la query dans le fichier order.php pour avoir accès au sexe, et à l'adresse par défaut. $customer_address_query = tep_db_query("select c.customers_gender, c.customers_default_address_id, c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_email_address, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, co.countries_id, co.countries_name, co.countries_iso_code_2, co.countries_iso_code_3, co.address_format_id, ab.entry_state from " . TABLE_CUSTOMERS . " c, " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " co on (ab.entry_country_id = co.countries_id) where c.customers_id = '" . (int)$customer_id . "' and ab.customers_id = '" . (int)$customer_id . "' and c.customers_default_address_id = ab.address_book_id"); $shipping_address_query = tep_db_query("select ab.entry_gender, ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)$sendto . "'"); $billing_address_query = tep_db_query("select ab.entry_gender, ab.entry_firstname, ab.entry_lastname, ab.entry_company, ab.entry_tva_intracom, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, ab.entry_country_id, c.countries_id, c.countries_name, c.countries_iso_code_2, c.countries_iso_code_3, c.address_format_id, ab.entry_state from " . TABLE_ADDRESS_BOOK . " ab left join " . TABLE_ZONES . " z on (ab.entry_zone_id = z.zone_id) left join " . TABLE_COUNTRIES . " c on (ab.entry_country_id = c.countries_id) where ab.customers_id = '" . (int)$customer_id . "' and ab.address_book_id = '" . (int)$billto . "'"); $this->customer = array('gender' => $customer_address['customers_gender'], 'default_address_id' => $customer_address['customers_default_address_id'], $this->delivery = array('gender' => $shipping_address['entry_gender'], 'firstname' => $shipping_address['entry_firstname'], $this->billing = array('gender' => $billing_address['entry_gender'], 'firstname' => $billing_address['entry_firstname'], |