//tire price
$tierPrices[] = array(
'website_id' => 0,
'cust_group' => 32000,
'price_qty' => $row['qty_1'],
'price' => $row['price_1']
);
//Second defined tier price
$tierPrices[] = array(
'website_id' => 0,
'cust_group' => 32000,
'price_qty' => $row['qty_2'],
'price' => $row['price_2']
);
//Now we set the tier price and save the product
$product->setTierPrice($tierPrices);
$product->save();

本文介绍了一种通过脚本设置产品分层价格的方法。具体步骤包括定义不同数量级别的价格,并将这些价格设置到产品上。
1077

被折叠的 条评论
为什么被折叠?



