コード例 #1
0
    public function hookAdminStatsModules($params)
    {
        $engineParams = array('id' => 'id_customer', 'title' => $this->displayName, 'columns' => $this->_columns, 'defaultSortColumn' => $this->_defaultSortColumn, 'defaultSortDirection' => $this->_defaultSortDirection, 'emptyMessage' => $this->_emptyMessage, 'pagingMessage' => $this->_pagingMessage);
        if (Tools::getValue('export')) {
            $this->csvExport($engineParams);
        }
        $this->_html = '
		<fieldset class="width3"><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->displayName . '</legend>
			' . ModuleGrid::engine($engineParams) . '
		<p><a href="' . htmlentities($_SERVER['REQUEST_URI']) . '&export=1"><img src="../img/admin/asterisk.gif" />' . $this->l('CSV Export') . '</a></p>
		</fieldset><br />
		<fieldset class="width3"><legend><img src="../img/admin/comment.gif" /> ' . $this->l('Guide') . '</legend>
			<h2 >' . $this->l('Develop clients\' loyalty') . '</h2>
			<p class="space">
				' . $this->l('Keeping a client is more profitable than acquiring a new one. Thus, it is essential to make them loyal, in other words to make them want to come back to your shop.') . ' <br />
				' . $this->l('Word of mouth is also a good way of getting new satisfied customers as an unsatisfied customer won\'t attract new ones.') . '<br />
				' . $this->l('There are many ways to achieve this: ') . '
				<ul>
					<li>' . $this->l('Occasional operations: commercial rewards (personalized special offers, product or service offered), non commercial rewards (priority handling of an order or a product), pecuniary rewards (bonds, discount coupons, payback...).') . '</li>
					<li>' . $this->l('Sustainable operations: loyalty points or cards, which not only justify communication between merchant and client, but also offer advantages to clients (private offers, discounts).') . '</li>
				</ul>
				' . $this->l('These operations encourage customers to buy and also to return to your online shop regularly.') . ' <br />
			</p><br />
		</fieldset>';
        return $this->_html;
    }
コード例 #2
0
    public function hookAdminStatsModules($params)
    {
        $engineParams = array('id' => 'id_product', 'title' => $this->displayName, 'columns' => $this->_columns, 'defaultSortColumn' => $this->_defaultSortColumn, 'emptyMessage' => $this->_emptyMessage, 'pagingMessage' => $this->_pagingMessage);
        $this->_html = '
		<fieldset class="width3"><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->displayName . '</legend>
			' . ModuleGrid::engine($engineParams) . '
		</fieldset>';
        return $this->_html;
    }
コード例 #3
0
    public function hookAdminStatsModules($params)
    {
        $engineParams = array('id' => 'id_product', 'title' => $this->displayName, 'columns' => $this->_columns, 'defaultSortColumn' => $this->_defaultSortColumn, 'defaultSortDirection' => $this->_defaultSortDirection, 'emptyMessage' => $this->_emptyMessage, 'pagingMessage' => $this->_pagingMessage);
        if (Tools::getValue('export')) {
            $this->csvExport($engineParams);
        }
        $this->_html = '
		<fieldset class="width3"><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->displayName . '</legend>
			' . ModuleGrid::engine($engineParams) . '
			<p><a href="' . htmlentities($_SERVER['REQUEST_URI']) . '&export=1"><img src="../img/admin/asterisk.gif" />' . $this->l('CSV Export') . '</a></p>
		</fieldset>';
        return $this->_html;
    }
コード例 #4
0
    public function hookAdminStatsModules($params)
    {
        $engineParams = array('id' => 'id_customer', 'title' => $this->displayName, 'columns' => $this->_columns, 'defaultSortColumn' => $this->_defaultSortColumn, 'emptyMessage' => $this->_emptyMessage, 'pagingMessage' => $this->_pagingMessage);
        $this->_html = '
		<fieldset class="width3"><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->displayName . '</legend>
			' . ModuleGrid::engine($engineParams) . '
		</fieldset><br />
		<fieldset class="width3"><legend><img src="../img/admin/comment.gif" /> ' . $this->l('Guide') . '</legend>
			<h2 >' . $this->l('Develop clients\' loyalty') . '</h2>
			<p class="space">
				' . $this->l('Keeping a client is more profitable than capturing a new one. Thus, it is necessary to develop its loyalty, in other words to make him come back in your webshop.') . ' <br />
				' . $this->l('Word of mouth is also a means to get new satisfied clients; a dissatisfied one won\'t attract new clients.') . '<br />
				' . $this->l('In order to achieve this goal you can organize: ') . '
				<ul>
					<li>' . $this->l('Punctual operations: commercial rewards (personalized special offers, product or service offered), non commercial rewards (priority handling of an order or a product), pecuniary rewards (bonds, discount coupons, payback...).') . '</li>
					<li>' . $this->l('Sustainable operations: loyalty or points cards, which not only justify communication between merchant and client, but also offer advantages to clients (private offers, discounts).') . '</li>
				</ul>
				' . $this->l('These operations encourage clients to buy and also to come back in your webshop regularly.') . ' <br />
			</p><br />
		</fieldset>';
        return $this->_html;
    }
コード例 #5
0
 public function install()
 {
     return parent::install() && $this->registerHook('AdminStatsModules');
 }