コード例 #1
0
ファイル: Data.php プロジェクト: hueyl77/fourwindsgear
 public static function createQuantities($source, $qty, $multiplyQty = false)
 {
     /**
      * I've added the bundle_option_qty1 because for default bundle items there was no way to get the quantity
      */
     $selectedQtys1 = isset($source['bundle_option_qty1']) ? $source['bundle_option_qty1'] : null;
     $selectedQtys2 = isset($source['bundle_option_qty']) ? $source['bundle_option_qty'] : null;
     self::$_selectedQtys = array();
     self::prepareQuantityForBundleOption($selectedQtys1, $qty, $multiplyQty);
     self::prepareQuantityForBundleOption($selectedQtys2, $qty, $multiplyQty);
 }