|
|||
Guten Tag, xt:Commerce v3.0.4 SP2.1suche die Möglichkeit neu eingepflegten Artikeln automatisch eine Artikelnummer zuzuweisen? muss dieser code nun in die admin/new_product.php oder wie xt:mzanier schreibt in die categories.php und in welche Zeile. läuft das mit v3.0.4 SP2.1 wie immer ein großes danke für die Hilfe <?php // Artikelnummer generieren if(!$pInfo->products_model) { $my_product_id_query = xtc_db_query("SELECT MAX(products_id) AS products_id FROM " . TABLE_PRODUCTS . " "); $my_product_id = xtc_db_fetch_array($my_product_id_query); $my_product_id = $my_product_id["products_id"] + 1; $pInfo->products_model = "100-".$my_product_id; // 100- kann editiert werden } ?> |
|
|||
|
admin/includes/modules/new_product.php
ab Zeile 98 PHP-Code:
|
![]() |
| Lesezeichen |
| Stichworte |
| artikelnummern, automatische, vergabe |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Automatische Artikelnummern | gundi | Admininterface | 5 | 21.04.2008 09:30 |
| Automatische Vergabe Von Artikelnummern | mobbob | Admininterface | 15 | 23.01.2008 11:41 |