Bienvenue invité ( Connexion | Inscription )
![]() ![]() |
3 Mar 2009, 13:22
Message
#1
|
|
![]() Ceinture jaune+ OSC Groupe : Membres Messages : 134 Inscrit : 17-June 08 Lieu : Sur un yaucht Membre no 22166 |
Bonjour,
Je serais intéressé par une contribution qui permettrait de générer automatiquement un bon de commande fournisseur. Actuellement je saisi tout mes BC via excel, ceci est long est fastidieux, surtout si on travaille avec beaucoup de fournisseur. J'ai cherché sur oscommerce.com mais je n'ai rien trouvé. Savez si il existe une contribution de ce type? Cordialement, Pierre Ce message a été modifié par computer - 3 Mar 2009, 14:22. -------------------- Version oscommerce : osCommerce 2.2 build 060817.
Contributions installées : Fancier_invoice_6.2, pollbooth_v2.3, StockTaking Cost 0.3, automatic_thumbnail_for_osc3v1.7, batch-print-center-3.13, country-state-selector, CSS_POP_UP_INSTALL, define_mainpage_v1.3.3_MS2_Fr, dob_dropdown_v1.0c, low stock report 2, master passord mpv1.4, Multiple_Products_Manager_2.5c, order_editor_5_0_61, OSC_Expeditor v2.1 by milerwan, osc_pdf_catalog_2.0.5_1, osCAffiliate v2.7, newsletter subscribers, RSS_News_V1.3, TinyMCE_in_osCommerce, Ultimate_SEO_URLs_v2-2.2e, User Tracking with Admin 1.4.2_1, wishlist, configuration_cache_1_2, Who's Online Enhancement 3.5.4, get_1_free_1.4_1. |
|
|
17 Mar 2009, 20:02
Message
#2
|
|
|
Ceinture blanche OSC Groupe : Membres Messages : 13 Inscrit : 1-February 09 Membre no 24400 |
Salut !!!
J'ai moi aussi cette necessité !!!! J'ai trouvé cette contribution à modifier : http://addons.oscommerce.com/info/1087 Après avoir ajournée un peu le code, tu verras qu'elle marche bien !!!! [Edit] il me semble que cela envoie la commande complete à chaque fournisseur et non seulement les articles du fournisseur sélectionné !!!! Contribution à modifier donc [Edit2] Voila la solution pour envoyer les articles appropriés à chacun des fournisseurs Dans Admin/order - Remplacer : Code // Must have an email address and have manufacturers_send_email set to 1 $manufacturers_email_query = tep_db_query("select distinct m.manufacturers_email, m.manufacturers_name FROM manufacturers m, orders_products o, products p where p.manufacturers_id=m.manufacturers_id and p.products_id=o.products_id and o.orders_id='" . $oID . "' and m.manufacturers_send_email=1 ORDER BY m.manufacturers_id"); while ($manufacturers_email_list= tep_db_fetch_array($manufacturers_email_query)) { $the_email=$manufacturers_email_list['manufacturers_email']; $the_name=$manufacturers_email_list['manufacturers_name']; $email_message = '<br>To: <b>' . $the_name . '</b> Email: <b>' . $the_email . '</b><br><br> From: <b>' . STORE_NAME . '</b><br><br>Please deliver to:<br>' . $delivery_address_list['customers_company'] .'<br>' . $delivery_address_list['customers_name'] .'<br>' . $delivery_address_list['customers_street_address'] .'<br>' . $delivery_address_list['customers_postcode'] . ' ' . $delivery_address_list['customers_city'] . '<br>'; // Get all the products for a manufacture to be included in the email $manufacturers_email_products_query = tep_db_query("select o.orders_id, m.manufacturers_id, m.manufacturers_name, m.manufacturers_email, o.products_name, o.products_model, o.products_id, o.products_price, o.products_quantity, o.orders_products_id FROM manufacturers m, orders_products o, products p where p.manufacturers_id=m.manufacturers_id and o.products_id=p.products_id and o.orders_id='" . $oID . "' and m.manufacturers_email='" . $the_email . "' order by o.products_name"); Par le code : Code // Must have an email address and have manufacturers_send_email set to 1 $manufacturers_email_query = tep_db_query("select distinct m.manufacturers_id, m.manufacturers_email, m.manufacturers_name FROM ". TABLE_MANUFACTURERS . " m, " . TABLE_ORDERS_PRODUCTS . " o, " . TABLE_PRODUCTS . " p where p.manufacturers_id=m.manufacturers_id and p.products_id=o.products_id and o.orders_id='" . $oID . "' and m.manufacturers_send_email=1 ORDER BY m.manufacturers_id"); while ($manufacturers_email_list= tep_db_fetch_array($manufacturers_email_query)) { $the_ID=$manufacturers_email_list['manufacturers_id']; $the_email=$manufacturers_email_list['manufacturers_email']; $the_name=$manufacturers_email_list['manufacturers_name']; $email_message = '<br>To: <b>' . $the_name . '</b> Email: <b>' . $the_email . '</b><br><br> From: <b>' . STORE_NAME . '</b><br><br>Please deliver to:<br>' . $delivery_address_list['customers_company'] .'<br>' . $delivery_address_list['customers_name'] .'<br>' . $delivery_address_list['customers_street_address'] .'<br>' . $delivery_address_list['customers_postcode'] . ' ' . $delivery_address_list['customers_city'] . '<br>'; //echo $the_ID; // Get all the products for a manufacture to be included in the email $manufacturers_email_products_query = tep_db_query("select o.orders_id, m.manufacturers_id, m.manufacturers_name, m.manufacturers_email, o.products_name, o.products_model, o.products_id, o.products_price, o.products_quantity, o.orders_products_id FROM " . TABLE_MANUFACTURERS . " m, " . TABLE_ORDERS_PRODUCTS . " o, " . TABLE_PRODUCTS . " p where p.manufacturers_id=m.manufacturers_id and o.products_id=p.products_id and p.manufacturers_id='" . $the_ID . "' and o.orders_id='" . $oID . "' and m.manufacturers_email='" . $the_email . "' order by o.products_name"); Il suffit maintenant de creer un numéro de commande Ciao ! Ce message a été modifié par masremi - 17 Mar 2009, 23:19. |
|
|
21 Mar 2009, 01:56
Message
#3
|
|
![]() Ceinture jaune+ OSC Groupe : Membres Messages : 134 Inscrit : 17-June 08 Lieu : Sur un yaucht Membre no 22166 |
Bonjour,
Je viens d'installer la contribution avec ta portion de code modifié, malheureusement je constate que cela ne génère aucun bon de commande fournisseur, j'obtiens dans l'admin > fabriquant uniquement une liste de toutes les marques avec une possibilité d'envoyer un email. -------------------- Version oscommerce : osCommerce 2.2 build 060817.
Contributions installées : Fancier_invoice_6.2, pollbooth_v2.3, StockTaking Cost 0.3, automatic_thumbnail_for_osc3v1.7, batch-print-center-3.13, country-state-selector, CSS_POP_UP_INSTALL, define_mainpage_v1.3.3_MS2_Fr, dob_dropdown_v1.0c, low stock report 2, master passord mpv1.4, Multiple_Products_Manager_2.5c, order_editor_5_0_61, OSC_Expeditor v2.1 by milerwan, osc_pdf_catalog_2.0.5_1, osCAffiliate v2.7, newsletter subscribers, RSS_News_V1.3, TinyMCE_in_osCommerce, Ultimate_SEO_URLs_v2-2.2e, User Tracking with Admin 1.4.2_1, wishlist, configuration_cache_1_2, Who's Online Enhancement 3.5.4, get_1_free_1.4_1. |
|
|
![]() ![]() |
|
Version bas débit | Nous sommes le : 24th May 2013 - 12:51 |
| Ce site est déclaré auprès de la commision Nationale de l'Informatique et des Libertés (déclaration n°: 1043896) |