當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ProductSale::fillProductSales方法代碼示例

本文整理匯總了PHP中ProductSale::fillProductSales方法的典型用法代碼示例。如果您正苦於以下問題:PHP ProductSale::fillProductSales方法的具體用法?PHP ProductSale::fillProductSales怎麽用?PHP ProductSale::fillProductSales使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ProductSale的用法示例。


在下文中一共展示了ProductSale::fillProductSales方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: install

 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     if (!parent::install() or !$this->registerHook('rightColumn') or !$this->registerHook('header') or !$this->registerHook('updateOrderStatus') or !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
開發者ID:srikanthash09,項目名稱:codetestdatld,代碼行數:10,代碼來源:blockbestsellers.php

示例2: install

 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     if (!parent::install() || !$this->registerHook('DisplayContentBottom') || !$this->registerHook('header') || !$this->registerHook('updateOrderStatus') || !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
開發者ID:FAVHYAN,項目名稱:a3workout,代碼行數:10,代碼來源:leoblockbestsellers.php

示例3: install

 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     if (!parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('rightColumn') || !$this->registerHook('displayHome') || !$this->registerHook('tdPostSlider') || !$this->registerHook('displayfooter') || !$this->registerHook('updateOrderStatus') || !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
開發者ID:reshman,項目名稱:swkart-presta,代碼行數:10,代碼來源:tdblockbestsellers.php

示例4: install

 public function install()
 {
     $this->_clearCache('*');
     if (!parent::install() || !$this->registerHook('header') || !$this->registerHook('leftColumn') || !$this->registerHook('actionOrderStatusPostUpdate') || !$this->registerHook('addproduct') || !$this->registerHook('updateproduct') || !$this->registerHook('deleteproduct') || !$this->registerHook('displayHomeTab') || !$this->registerHook('displayHomeTabContent') || !ProductSale::fillProductSales()) {
         return false;
     }
     Configuration::updateValue('PS_BLOCK_BESTSELLERS_TO_DISPLAY', 10);
     return true;
 }
開發者ID:zangles,項目名稱:lennyba,代碼行數:9,代碼來源:blockbestsellers.php

示例5: install

 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     $this->_clearCache('blockbestsellers.tpl');
     $this->_clearCache('blockbestsellers-home.tpl');
     if (!parent::install() || !$this->registerHook('rightColumn') || !$this->registerHook('header') || !$this->registerHook('actionOrderStatusPostUpdate') || !$this->registerHook('addproduct') || !$this->registerHook('updateproduct') || !$this->registerHook('deleteproduct') || !ProductSale::fillProductSales()) {
         return false;
     }
     return true;
 }
開發者ID:toufikadfab,項目名稱:PrestaShop-1.5,代碼行數:12,代碼來源:blockbestsellers.php

示例6: install

 public function install()
 {
     $this->_clearCache('*');
     if (!parent::install() || !$this->registerHook('header') || !$this->registerHook('actionOrderStatusPostUpdate') || !$this->registerHook('addproduct') || !$this->registerHook('updateproduct') || !$this->registerHook('deleteproduct') || !$this->registerHook('displayHomeTab') || !$this->registerHook('displayHomeTabContent') || !ProductSale::fillProductSales()) {
         return false;
     }
     // Hook the module either on the left or right column
     $theme = new Theme(Context::getContext()->shop->id_theme);
     if ((!$theme->default_left_column || !$this->registerHook('leftColumn')) && (!$theme->default_right_column || !$this->registerHook('rightColumn'))) {
         // If there are no colums implemented by the template, throw an error and uninstall the module
         $this->_errors[] = $this->l('This module need to be hooked in a column and your theme does not implement one');
         parent::uninstall();
         return false;
     }
     return true;
 }
開發者ID:carloslastresDev,項目名稱:HealthyTaiwan_UsingPrestaShop,代碼行數:16,代碼來源:blockbestsellers.php

示例7: install

 /**
  * @see ModuleCore::install()
  */
 public function install()
 {
     return parent::install() && $this->registerHook('rightColumn') && $this->registerHook('header') && ProductSale::fillProductSales();
 }
開發者ID:Evil1991,項目名稱:PrestaShop-1.4,代碼行數:7,代碼來源:blockbestsellers.php

示例8: install

 public function install()
 {
     return parent::install() && $this->registerHook('rightColumn') && $this->registerHook('updateOrderStatus') && ProductSale::fillProductSales() && Configuration::updateValue('PRODUCTS_BESTSELLERS_NBR', 4) && Configuration::updateValue('PRODUCTS_BESTSELLERS_RANDOM', 1);
 }
開發者ID:zapalm,項目名稱:blockbestsellerz,代碼行數:4,代碼來源:blockbestsellerz.php


注:本文中的ProductSale::fillProductSales方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。