特定商品を特定配送にする場合(メーカー直送等の場合)

includes/modules/shipping/maker.phpを作成(配送モジュールを複製変更)

makerでクラス・コードを定義57行目に下記を追加

if($restrict->fields['master_categories_id'] == '1'){ 
$this->enabled = false; 
}

上記場合はマスターカテゴリの1をメーカー直送から排除
メーカー直送を適用したくないカテゴリーidを追加していく

if($restrict->fields['master_categories_id'] == '1'){ 
$this->enabled = false; 
}
if($restrict->fields['master_categories_id'] == '2'){ 
$this->enabled = false; 
}

 

コメント (0件)