本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: install
/**
* @see ModuleCore::install()
*/
public function install()
{
return parent::install() && $this->registerHook('rightColumn') && $this->registerHook('header') && ProductSale::fillProductSales();
}
示例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);
}