Jump to content
xt:Commerce Community Forum

Bypass Produktkopie Feldlöschung


oldbear

Recommended Posts

hallo,

mit diesem Bypass werden etliche Felder beim Kopieren eines Produkts

nicht mehr mitkopiert:

Hookpoint anlegen:class.product.php:_copy_bottom

( in beliebigem aktiven Plugin oder selber einen Installer schreiben )

Code:


// HOOK PLUGIN Nicetohave
$p_data['products_ordered'] = 0;
$p_data['products_transactions'] = 0;
$p_data['products_startpage'] = 0;
$p_data['products_startpage_sort'] = 0;
$p_data['products_average_rating'] = 0;
$p_data['products_rating_count'] = 0;
$p_data['products_image'] = '';
$oP = new adminDB_DataSave(TABLE_PRODUCTS, $p_data);
$objP = $oP->saveDataSet();
[/PHP]

Nicht elegant, aber wirkungsvoll.

Grüsse

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...