sepetindeki aynı satır öğesinde birleştirin. here numaralı dış hatla aynı sorunu yaşıyorum ancak aşağıdaki çözümler çalışmıyor. "Ticaret Ürünü Seçeneği" etkin.Ürünleri
Ben de 4. olduğu gibi
$entity->commerce_pricing_attributes[$set_id['set_id']][$field_name] = $price;
denedi ama çalışmıyor
function mectronic_get_amount_qty($price, $length) {
//print '<pre>P ' . print_r($price, 1) . '</pre>';
//print '<pre>L ' . print_r($length, 1) . '</pre>';
if ($length >= 1 && $length <= 5) return $price;
elseif ($length >= 6 && $length <= 10) return $price * (1 - 0.166666667);
elseif ($length > 10) return $price * (1 - 0.285714286);
}
, bu kanca kullanarak fiyatını değiştirebilir. tanımsız 'commerce_pricing_attributes' özelliğine
"Burada" nerededir? linki unuttun mu? –
Üzgünüz, bağlantıyı ekledi –