- Timestamp:
- 2012/04/15 03:05:06 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/products/LC_Page_Products_Detail.php
r21693 r21743 92 92 */ 93 93 function action() { 94 // フックポイント.95 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);96 $objPlugin->doAction('LC_Page_Products_Detail_action_before', array($this));97 94 98 95 // 会員クラス … … 162 159 $objCartSess->addProduct($product_class_id, $this->objFormParam->getValue('quantity')); 163 160 164 // フックポイント.165 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg);166 $objPlugin->doAction('LC_Page_Products_Detail_action_cart', array($this));167 161 168 162 SC_Response_Ex::sendRedirect(CART_URLPATH); 169 exit;163 SC_Response_Ex::actionExit(); 170 164 } 171 165 break; … … 176 170 if (count($this->arrErr) == 0) { 177 171 if (!$this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 178 // フックポイント. 172 179 173 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 180 174 $objPlugin->doAction('LC_Page_Products_Detail_action_add_favorite', array($this)); 181 175 182 exit;176 SC_Response_Ex::actionExit(); 183 177 } 184 178 } … … 192 186 if (count($this->arrErr) == 0) { 193 187 if ($this->lfRegistFavoriteProduct($this->objFormParam->getValue('favorite_product_id'),$objCustomer->getValue('customer_id'))) { 194 // フックポイント. 188 195 189 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 196 190 $objPlugin->doAction('LC_Page_Products_Detail_action_add_favorite_sphone', array($this)); 197 191 198 192 print 'true'; 199 exit;193 SC_Response_Ex::actionExit(); 200 194 } 201 195 } 202 196 print 'error'; 203 exit;197 SC_Response_Ex::actionExit(); 204 198 } 205 199 break; … … 324 318 $this->is_favorite = SC_Helper_DB_Ex::sfDataExists('dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($objCustomer->getValue('customer_id'), $product_id)); 325 319 } 326 // フックポイント. 327 $objPlugin = SC_Helper_Plugin_Ex::getSingletonInstance($this->plugin_activate_flg); 328 $objPlugin->doAction('LC_Page_Products_Detail_action_after', array($this)); 320 329 321 } 330 322
Note: See TracChangeset
for help on using the changeset viewer.