2016-03-31 10 views

Antwort

0

Sie können einen benutzerdefinierten Preis zu einem Produkt hinzufügen, wenn Sie es in das Zitat mit diesem Add:

$custom_price = 100; //Products new price for the specific order/customer. 
$qty = 1; 
$product_id = 210; 
$product = Mage::getModel('catalog/product')->load($product_id); 

$quoteItem = $quote->addProduct($product, $qty); 
$quoteItem->setCustomPrice($custom_price); 
$quoteItem->setOriginalCustomPrice($custom_price); 
$quoteItem->getProduct()->setIsSuperMode(true); 
$quote->save(); 
Verwandte Themen