Skip to content

Instantly share code, notes, and snippets.

// /data/class/SC_Product.php
/**
* 商品IDに紐づく商品規格を自分自身に設定する.
*
* 引数の商品IDの配列に紐づく商品規格を取得し, 自分自身のフィールドに
* 設定する.
*
* @param array $arrProductId 商品ID の配列
* @param boolean $has_deleted 削除された商品規格も含む場合 true; 初期値 false
@izayoi256
izayoi256 / LC_Page_Admin_Order_ProductSelect.php
Last active July 4, 2016 01:22
LC_Page_Admin_Order_ProductSelect.php
// 略
// 規格2が設定されている
$this->tpl_classcat_find2 = $objProduct->classCat2_find;
$this->tpl_product_class_id = $objProduct->product_class_id;
$this->tpl_stock_find = $objProduct->stock_find;
SC_Utils_Ex::sfPrintR($objProduct->stock_find); // 追加
break;
default:
break;
}
@izayoi256
izayoi256 / AdminControllerProvider.php
Last active June 1, 2016 02:55
ルーティングの変更
// system/masterdata
$c->match('/setting/system/masterdata', '\Eccube\Controller\Admin\Setting\System\MasterdataController::index')->bind('admin_setting_system_masterdata');
// 旧
// $c->match('/setting/system/masterdata/edit', '\Eccube\Controller\Admin\Setting\System\MasterdataController::edit')->bind('admin_setting_system_masterdata_edit');
// 新
$c->match('/setting/system/masterdata/{entity}/edit', '\Eccube\Controller\Admin\Setting\System\MasterdataController::index')
->bind('admin_setting_system_masterdata_edit');