2014-11-14 32 views

回答

0

我想你想創建一個 '分組的產品',而不是 '捆綁產品'。對於捆綁產品,沒有任何嚴肅的編碼,除非您在捆綁產品上使用pricerules(注意事項),否則這是不可能的。

0

問題解決我自己下面的步驟。

1)創建自定義屬性從管理像上面屬性,底部

2)創建新的產品組從管理屬性設置像束

3)選擇其中一個創建新屬性集並拖動屬性,該屬性在創建在步驟1

4)一種radio.phtml文件,並添加以下代碼

$product_id = Mage::registry('current_product')->getId();; 
     $attribute = Mage::getModel('catalog/product')->load($product_id); 
     if($attribute->bundle_top_price>0){ 
      echo $currency_symbol = Mage::app()->getLocale()->currency($currency_code)->getSymbol().' '; 
      if($_option->getTitle()=='top'){     
       echo number_format($attribute->bundle_top_price,2); 
      }else { 
       echo number_format($attribute->bundle_bottom_price,2); 
      } 
     } 
相關問題