EasyPopulate und Staffelpreise
EasyPopulate und Staffelpreise
Wie muss die Tabelle für EasyPopulate aussehen, wenn man Staffelpreise angibt? In einer runtergeladenen ep-Datei taucht bei bereits erstellten Produkten mit Staffelpreisen diese Angabe überhaupt nicht auf. Geht es überhaupt?
Hallo,
man muss nur das Skript um die weiteren datenfelder erweitern.
[mysql] products_discount1 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount2 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount3 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount4 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount1_qty N '10.2' NOTNULL DEFAULT '0.00',
products_discount2_qty N '10.2' NOTNULL DEFAULT '0.00',
products_discount3_qty N '10.2' NOTNULL DEFAULT '0.00',
products_discount4_qty N '10.2' NOTNULL DEFAULT '0.00',[/mysql]
Beispiel Zeile 1630
hier fürgt man die neuen Datenfelder ein
$v_products_discountx steht der Betrag
in
$v_products_discountx_qty' steht die Menge
lg
ralf
man muss nur das Skript um die weiteren datenfelder erweitern.
[mysql] products_discount1 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount2 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount3 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount4 N '15.8' NOTNULL DEFAULT '0.00000000',
products_discount1_qty N '10.2' NOTNULL DEFAULT '0.00',
products_discount2_qty N '10.2' NOTNULL DEFAULT '0.00',
products_discount3_qty N '10.2' NOTNULL DEFAULT '0.00',
products_discount4_qty N '10.2' NOTNULL DEFAULT '0.00',[/mysql]
Beispiel Zeile 1630
Code: Alles auswählen
$query .=" '$v_products_model',
'$v_products_price',
'$v_db_status',
CURRENT_TIMESTAMP,
$v_date_added,
$v_date_avail,
'$v_tax_class_id',
'$v_products_weight',
'$v_products_quantity',
'$v_manufacturer_id')
";
Code: Alles auswählen
$query .=" '$v_products_model',
'$v_products_price',
'$v_db_status',
CURRENT_TIMESTAMP,
$v_date_added,
$v_date_avail,
'$v_tax_class_id',
'$v_products_weight',
'$v_products_quantity',
'$v_manufacturer_id',
'$v_products_discount1',
'$v_ products_discount2',
'$v_ products_discount3',
'$v_ products_discount4',
'$v_ products_discount1_qty',
'$v_products_discount2_qty',
'$v_products_discount3_qty',
'$v_products_discount4_qty')
";
$v_products_discountx steht der Betrag
in
$v_products_discountx_qty' steht die Menge
lg
ralf
An jeder Stelle an der $v_manufacturer_id erstellt oder verarbeitet wird ... oder auch def. wird fügt man die neuen Felder bei...
in dem o.g. Beipsiel hatte ich ja nur insert aufgezeigt. auch bei update
fügt man die neuen Datenfelder bei..
da ich das Skriot nicht selber verstehe - kann ich Dir zurzeit auch nicht sagen, wie und wo das Skript
den Inhalt für die neuen Datenfelder holt... Hierbei orientiert man sich einfach an die andren Datenfelder
cu
ralf
in dem o.g. Beipsiel hatte ich ja nur insert aufgezeigt. auch bei update
Code: Alles auswählen
} else {
// existing product, get the id from the query
// and update the product data
$row = $result->fields;
$v_products_id = $row['products_id];
echo "<font color='black'> Updated</font>
";
$row = $result->fields; # ! ! !
$query = 'UPDATE '.$oosDBTable['products].'
da ich das Skriot nicht selber verstehe - kann ich Dir zurzeit auch nicht sagen, wie und wo das Skript
den Inhalt für die neuen Datenfelder holt... Hierbei orientiert man sich einfach an die andren Datenfelder
cu
ralf