first commit
This commit is contained in:
35
modules/gm_omniprice/views/templates/hook/index.php
Normal file
35
modules/gm_omniprice/views/templates/hook/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2030 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
4
modules/gm_omniprice/views/templates/hook/price.tpl
Normal file
4
modules/gm_omniprice/views/templates/hook/price.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
<span class="gm_omniprice" style="color:{$gm_omniprice_color}; background-color: {$gm_omniprice_background};">
|
||||
{l s='Lowest price within %d days before promotion:' sprintf=[$gm_omniprice_days] mod='gm_omniprice'}
|
||||
<span class="gm_omniprice_lowest" style="color:{$gm_omniprice_price_color};">{$gm_omniprice_lowest}</span>
|
||||
</span>
|
||||
20
modules/gm_omniprice/views/templates/hook/tab.tpl
Normal file
20
modules/gm_omniprice/views/templates/hook/tab.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="panel">
|
||||
<p>{l s='Product indexed today:' mod='gm_omniprice'} {if $indexedToday}{l s='Yes' mod='gm_omniprice'}{else}{l s='No' mod='gm_omniprice'}{/if}</p>
|
||||
<p>{l s='For simplicity, this table shows price change history for default currency, country, customer group and product attribute.' mod='gm_omniprice'}</p>
|
||||
<table class="table table-hover" id="orderProducts">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="fixed-width-md"><span class="title_box">{l s='Date' mod='gm_omniprice'}</span></th>
|
||||
<th class="fixed-width-md"><span class="title_box">{l s='Price' mod='gm_omniprice'}</span></th>
|
||||
<th class="fixed-width-md"><span class="title_box">{l s='Promotion' mod='gm_omniprice'}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
{foreach from=$historyData item=historyItem}
|
||||
<tr>
|
||||
<td>{$historyItem.date}</td>
|
||||
<td>{$historyItem.price_tin}</td>
|
||||
<td>{if $historyItem.is_specific_price == '1'}{l s='Yes' mod='gm_omniprice'}{/if}{if $historyItem.is_specific_price == '0'}{l s='No' mod='gm_omniprice'}{/if}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user