当前位置: 首页>>代码示例>>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;未经允许,请勿转载。