v2.0b (2011-06-01)
[*] Repackaged to fix new install table fields.
v2.0 (2011-06-01)
[+] First release of re-written module to the PrestaShop community.
#
#----------[ OPEN ]----------
#
admin/tabs/AdminStatsTab.php
#
#----------[ FIND ]----------
#
$from = date('Y-01-01');
$to = date('Y-12-31');
}
if (Tools::isSubmit('submitDateYearPrev'))
{
$from = (date('Y') - 1).date('-01-01');
$to = (date('Y') - 1).date('-12-31');
#
#----------[ REPLACE WITH ]----------
#
$from = date('Y-07-01');
$to = (date('Y') + 1).date('-06-30');
}
if (Tools::isSubmit('submitDateYearPrev'))
{
$from = (date('Y') - 1).date('-07-01');
$to = date('Y-06-30');#
#----------[ OPEN ]----------
#
classes/ModuleGraph.php
#
#----------[ FIND ]----------
#
$employee->stats_date_from = date('Y').'-01-01';
if (empty($employee->stats_date_to) OR $employee->stats_date_to == '0000-00-00')
$employee->stats_date_to = date('Y').'-12-31';
#
#----------[ REPLACE WITH ]----------
#
$employee->stats_date_from = date('Y').'-07-01';
if (empty($employee->stats_date_to) OR $employee->stats_date_to == '0000-00-00')
$employee->stats_date_to = (date('Y') + 1).'-06-30';
#
#----------[ OPEN ]----------
#
admin/tabs/AdminCarts.php
#
#----------[ FIND ]----------
#
// display cart header
echo '<h2>'.(($customer->id) ? $customer->firstname.' '.$customer->lastname : $this->l('Guest')).' - '.$this->l('Cart #').sprintf('%06d', $cart->id).' '.$this->l('from').' '.$cart->date_upd.'</h2>';
#
#----------[ REPLACE WITH ]----------
#
if ($prevCart = Db::getInstance()->getValue('SELECT `id_cart` FROM `'._DB_PREFIX_.'cart` WHERE `id_cart` < '.(int)$cart->id.' ORDER BY `id_cart` DESC'))
$prevCart = '<a href="'.$currentIndex.'&id_cart='.$prevCart.'&viewcart&token='.Tools::getValue('token').'"><img style="width: 24px; height: 24px" src="../img/admin/arrow-left.png" /></a>';
if ($nextCart = Db::getInstance()->getValue('SELECT `id_cart` FROM `'._DB_PREFIX_.'cart` WHERE `id_cart` > '.(int)$cart->id.' ORDER BY `id_cart` ASC'))
$nextCart = '<a href="'.$currentIndex.'&id_cart='.$nextCart.'&viewcart&token='.Tools::getValue('token').'"><img style="width: 24px; height: 24px" src="../img/admin/arrow-right.png" /></a>';
// display cart header
echo '<h2>'.$prevCart.' '.(($customer->id) ? $customer->firstname.' '.$customer->lastname : $this->l('Guest')).' - '.$this->l('Cart #').sprintf('%06d', $cart->id).' '.$this->l('from').' '.$cart->date_upd.' '.$nextCart.'</h2>';
#
#----------[ OPEN ]----------
#
admin/tabs/AdminOrders.pp
#
#----------[ FIND ]----------
#
'{followup}' => str_replace('@', $order->shipping_number, $carrier->url),
#
#----------[ AFTER, ADD ]----------
#
'{shippingnumber}' => $order->shipping_number,#
#----------[ OPEN ]----------
#
mails/(your language)/in_transit.html
mails/(your language)/in_transit.txt
#
#----------[ ADD, WHERE YOU WANT ]----------
#
{shippingnumber}
#
#-----[ OPEN ]-----
#
admin/tabs/AdminCarts.php
#
#-----[ FIND ]-----
#
'date_add' => array('title' => $this->l('Date'), 'width' => 90, 'align' => 'right', 'type' => 'datetime', 'filter_key' => 'a!date_add'));
#
#-----[ REPLACE WITH ]-----
#
'date_add' => array('title' => $this->l('Date'), 'width' => 90, 'align' => 'right', 'type' => 'datetime', 'filter_key' => 'a!date_add'),
'date_upd' => array('title' => $this->l('Updated'), 'width' => 90, 'align' => 'right', 'type' => 'datetime', 'filter_key' => 'a!date_upd'));