[+] Dispatcher

This commit is contained in:
fBrignoli committed 2011-06-15 16:32:06 +00:00
1 parent 5f0fb35a1d
commit 1bb4a61a42
140 files changed
+775 -373

No files matched your search

+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('AddressController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/address'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('AddressesController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/addresses'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('AuthController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/authentication'.$params);
+13 -2
View File
@@ -25,5 +25,16 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
require_once(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('BestSalesController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/best-sales'.$params);
+13 -2
View File
@@ -25,5 +25,16 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
require_once(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('CartController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/cart'.$params);
+13 -2
View File
@@ -25,5 +25,16 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
include(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('CategoryController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/category'.$params);
+1 -1
View File
@@ -92,7 +92,7 @@ class FrontControllerCore
$link = new Link(); $link = new Link();
if ($this->auth AND !$cookie->isLogged($this->guestAllowed)) if ($this->auth AND !$cookie->isLogged($this->guestAllowed))
Tools::redirect('authentication.php'.($this->authRedirection ? '?back='.$this->authRedirection : '')); Tools::redirect('index.php/authentication'.($this->authRedirection ? '?back='.$this->authRedirection : ''));
/* Theme is missing or maintenance */ /* Theme is missing or maintenance */
if (!is_dir(_PS_THEME_DIR_)) if (!is_dir(_PS_THEME_DIR_))
+22 -21
View File
@@ -51,9 +51,9 @@ class LinkCore
public function getProductDeletePictureLink($product, $id_picture){ public function getProductDeletePictureLink($product, $id_picture){
if (is_object($product)) if (is_object($product))
return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink().((isset($product->category) AND !empty($product->category) AND $product->category != 'home') ? $product->category.'/' : '').(int)$product->id.'-'.$product->link_rewrite.($product->ean13 ? '-'.$product->ean13 : '').'.html?deletePicture='.$id_picture) : return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink().((isset($product->category) AND !empty($product->category) AND $product->category != 'home') ? $product->category.'/' : '').(int)$product->id.'-'.$product->link_rewrite.($product->ean13 ? '-'.$product->ean13 : '').'.html?deletePicture='.$id_picture) :
(_PS_BASE_URL_.__PS_BASE_URI__.'product.php?id_product='.(int)$product->id).'&deletePicture='.$id_picture; (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=product&id_product='.(int)$product->id).'&deletePicture='.$id_picture;
else else
return _PS_BASE_URL_.__PS_BASE_URI__.'product.php?id_product='.(int)$product.'&deletePicture='.$id_picture; return _PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=product&id_product='.(int)$product.'&deletePicture='.$id_picture;
} }
/** /**
@@ -67,34 +67,34 @@ class LinkCore
{ {
if (is_object($id_product)) if (is_object($id_product))
return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang).((isset($id_product->category) AND !empty($id_product->category) AND $id_product->category != 'home') ? $id_product->category.'/' : '').(int)$id_product->id.'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') : return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang).((isset($id_product->category) AND !empty($id_product->category) AND $id_product->category != 'home') ? $id_product->category.'/' : '').(int)$id_product->id.'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') :
(_PS_BASE_URL_.__PS_BASE_URI__.'product.php?id_product='.(int)$id_product->id); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=product&id_product='.(int)$id_product->id);
elseif ($alias) elseif ($alias)
return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang).(($category AND $category != 'home') ? ($category.'/') : '').(int)$id_product.'-'.$alias.($ean13 ? '-'.$ean13 : '').'.html') : return ($this->allow == 1)?(_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)$id_lang).(($category AND $category != 'home') ? ($category.'/') : '').(int)$id_product.'-'.$alias.($ean13 ? '-'.$ean13 : '').'.html') :
(_PS_BASE_URL_.__PS_BASE_URI__.'product.php?id_product='.(int)$id_product); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=product&id_product='.(int)$id_product);
else else
return _PS_BASE_URL_.__PS_BASE_URI__.'product.php?id_product='.(int)$id_product; return _PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=product&id_product='.(int)$id_product;
} }
public function getCategoryLink($id_category, $alias = NULL, $id_lang = NULL) public function getCategoryLink($id_category, $alias = NULL, $id_lang = NULL)
{ {
if (is_object($id_category)) if (is_object($id_category))
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_category->id).'-'.$id_category->link_rewrite) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_category->id).'-'.$id_category->link_rewrite) :
(_PS_BASE_URL_.__PS_BASE_URI__.'category.php?id_category='.(int)($id_category->id)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=category&id_category='.(int)($id_category->id));
if ($alias) if ($alias)
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_category).'-'.$alias) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_category).'-'.$alias) :
(_PS_BASE_URL_.__PS_BASE_URI__.'category.php?id_category='.(int)($id_category)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=category&id_category='.(int)($id_category));
return _PS_BASE_URL_.__PS_BASE_URI__.'category.php?id_category='.(int)($id_category); return _PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=category&id_category='.(int)($id_category);
} }
public function getCMSCategoryLink($id_category, $alias = NULL, $id_lang = NULL) public function getCMSCategoryLink($id_category, $alias = NULL, $id_lang = NULL)
{ {
if (is_object($id_category)) if (is_object($id_category))
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/category/'.(int)($id_category->id).'-'.$id_category->link_rewrite) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/category/'.(int)($id_category->id).'-'.$id_category->link_rewrite) :
(_PS_BASE_URL_.__PS_BASE_URI__.'cms.php?id_cms_category='.(int)($id_category->id)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=cms&id_cms_category='.(int)($id_category->id));
if ($alias) if ($alias)
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/category/'.(int)($id_category).'-'.$alias) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/category/'.(int)($id_category).'-'.$alias) :
(_PS_BASE_URL_.__PS_BASE_URI__.'cms.php?id_cms_category='.(int)($id_category)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=cms&id_cms_category='.(int)($id_category));
return _PS_BASE_URL_.__PS_BASE_URI__.'cms.php?id_cms_category='.(int)($id_category); return _PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=cms&id_cms_category='.(int)($id_category);
} }
public function getCMSLink($cms, $alias = null, $ssl = false, $id_lang = NULL) public function getCMSLink($cms, $alias = null, $ssl = false, $id_lang = NULL)
@@ -105,35 +105,35 @@ class LinkCore
{ {
return ($this->allow == 1) ? return ($this->allow == 1) ?
($base.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/'.(int)($cms->id).'-'.$cms->link_rewrite) : ($base.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/'.(int)($cms->id).'-'.$cms->link_rewrite) :
($base.__PS_BASE_URI__.'cms.php?id_cms='.(int)($cms->id)); ($base.__PS_BASE_URI__.'index.php?controller=cms&id_cms='.(int)($cms->id));
} }
if ($alias) if ($alias)
return ($this->allow == 1) ? ($base.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/'.(int)($cms).'-'.$alias) : return ($this->allow == 1) ? ($base.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).'content/'.(int)($cms).'-'.$alias) :
($base.__PS_BASE_URI__.'cms.php?id_cms='.(int)($cms)); ($base.__PS_BASE_URI__.'index.php?controller=cms&id_cms='.(int)($cms));
return $base.__PS_BASE_URI__.'cms.php?id_cms='.(int)($cms); return $base.__PS_BASE_URI__.'index.php?controller=cms&id_cms='.(int)($cms);
} }
public function getSupplierLink($id_supplier, $alias = NULL, $id_lang = NULL) public function getSupplierLink($id_supplier, $alias = NULL, $id_lang = NULL)
{ {
if (is_object($id_supplier)) if (is_object($id_supplier))
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_supplier->id).'__'.$id_supplier->link_rewrite) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_supplier->id).'__'.$id_supplier->link_rewrite) :
(_PS_BASE_URL_.__PS_BASE_URI__.'supplier.php?id_supplier='.(int)($id_supplier->id)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=supplier&id_supplier='.(int)($id_supplier->id));
if ($alias) if ($alias)
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_supplier).'__'.$alias) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_supplier).'__'.$alias) :
(_PS_BASE_URL_.__PS_BASE_URI__.'supplier.php?id_supplier='.(int)($id_supplier)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=supplier&id_supplier='.(int)($id_supplier));
return _PS_BASE_URL_.__PS_BASE_URI__.'supplier.php?id_supplier='.(int)($id_supplier); return _PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=supplier&id_supplier='.(int)($id_supplier);
} }
public function getManufacturerLink($id_manufacturer, $alias = NULL, $id_lang = NULL) public function getManufacturerLink($id_manufacturer, $alias = NULL, $id_lang = NULL)
{ {
if (is_object($id_manufacturer)) if (is_object($id_manufacturer))
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_manufacturer->id).'_'.$id_manufacturer->link_rewrite) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_manufacturer->id).'_'.$id_manufacturer->link_rewrite) :
(_PS_BASE_URL_.__PS_BASE_URI__.'manufacturer.php?id_manufacturer='.(int)($id_manufacturer->id)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=manufacturer&id_manufacturer='.(int)($id_manufacturer->id));
if ($alias) if ($alias)
return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_manufacturer).'_'.$alias) : return ($this->allow == 1) ? (_PS_BASE_URL_.__PS_BASE_URI__.$this->getLangLink((int)($id_lang)).(int)($id_manufacturer).'_'.$alias) :
(_PS_BASE_URL_.__PS_BASE_URI__.'manufacturer.php?id_manufacturer='.(int)($id_manufacturer)); (_PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=manufacturer&id_manufacturer='.(int)($id_manufacturer));
return _PS_BASE_URL_.__PS_BASE_URI__.'manufacturer.php?id_manufacturer='.(int)($id_manufacturer); return _PS_BASE_URL_.__PS_BASE_URI__.'index.php?controller=manufacturer&id_manufacturer='.(int)($id_manufacturer);
} }
public function getImageLink($name, $ids, $type = NULL) public function getImageLink($name, $ids, $type = NULL)
@@ -196,7 +196,7 @@ class LinkCore
{ {
$uri_path = ''; $uri_path = '';
if ($filename != 'index.php') if ($filename != 'index.php')
$uri_path = $filename; $uri_path = 'index.php?controller='.$filename;
} }
self::$cache['page'][$filename.'_'.$id_lang] = $uri_path; self::$cache['page'][$filename.'_'.$id_lang] = $uri_path;
} }
@@ -305,3 +305,4 @@ class LinkCore
return Language::getIsoById((int)$id_lang).'/'; return Language::getIsoById((int)$id_lang).'/';
} }
} }
+48 -26
View File
@@ -398,47 +398,68 @@ class OrderCore extends ObjectModel
return $result['message']; return $result['message'];
} }
/**
* Add breakdown prices in an order detail row
*
* @param array &$row
*/
public function setProductPrices(&$row) public function setProductPrices(&$row)
{ {
if ($this->_taxCalculationMethod == PS_TAX_EXC) if ($this->_taxCalculationMethod == PS_TAX_EXC)
$row['product_price'] = Tools::ps_round($row['product_price'], 2); $row = $this->setProductPricesTaxExcl($row);
else else
$row['product_price_wt'] = Tools::ps_round($row['product_price'] * (1 + $row['tax_rate'] / 100), 2); $row = $this->setProductPricesTaxIncl($row);
}
/**
* Compute tax excl prices for an order detail
*
* @param array $row
*/
protected function getProductsPricesTaxExcl($row)
{
$row['product_price'] = Tools::ps_round($row['product_price'], 2);
if ($row['reduction_percent']) if ($row['reduction_percent'])
{
if ($this->_taxCalculationMethod == PS_TAX_EXC)
$row['product_price'] = $row['product_price'] - $row['product_price'] * ($row['reduction_percent'] * 0.01); $row['product_price'] = $row['product_price'] - $row['product_price'] * ($row['reduction_percent'] * 0.01);
else
$row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] - $row['product_price_wt'] * ($row['reduction_percent'] * 0.01), 2);
}
if ($row['reduction_amount']) if ($row['reduction_amount'])
{
if ($this->_taxCalculationMethod == PS_TAX_EXC)
$row['product_price'] = $row['product_price'] - $row['reduction_amount'] / (1 + $row['tax_rate'] / 100); $row['product_price'] = $row['product_price'] - $row['reduction_amount'] / (1 + $row['tax_rate'] / 100);
else
$row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] - $row['reduction_amount'], 2);
}
if ($row['group_reduction']) if ($row['group_reduction'])
{
if ($this->_taxCalculationMethod == PS_TAX_EXC)
$row['product_price'] = $row['product_price'] - $row['product_price'] * ($row['group_reduction'] * 0.01); $row['product_price'] = $row['product_price'] - $row['product_price'] * ($row['group_reduction'] * 0.01);
else
$row['product_price'] = Tools::ps_round($row['product_price'], 2); // rounding in case of reduction
$row['product_price_wt'] = Tools::ps_round($row['product_price'] * (1 + ($row['tax_rate'] * 0.01)), 2) + Tools::ps_round($row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100), 2);
$row['total_wt'] = $row['product_quantity'] * $row['product_price_wt'];
$row['total_price'] = $row['product_quantity'] * $row['product_price'];
}
/**
* Compute tax incl prices for an order detail
*
* @param array $row
*/
protected function getProductsPricesTaxIncl($row)
{
$row['product_price_wt'] = Tools::ps_round($row['product_price'] * (1 + $row['tax_rate'] / 100), 2);
if ($row['reduction_percent'])
$row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] - $row['product_price_wt'] * ($row['reduction_percent'] * 0.01), 2);
if ($row['reduction_amount'])
$row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] - $row['reduction_amount'], 2);
if ($row['group_reduction'])
$row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] - $row['product_price_wt'] * ($row['group_reduction'] * 0.01), 2); $row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] - $row['product_price_wt'] * ($row['group_reduction'] * 0.01), 2);
}
if (($row['reduction_percent'] OR $row['reduction_amount'] OR $row['group_reduction']) AND $this->_taxCalculationMethod == PS_TAX_EXC) $row['product_price_wt_but_ecotax'] = $row['product_price_wt'];
$row['product_price'] = Tools::ps_round($row['product_price'], 2); $row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] + $row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100), 2);
if ($this->_taxCalculationMethod == PS_TAX_EXC)
$row['product_price_wt'] = Tools::ps_round($row['product_price'] * (1 + ($row['tax_rate'] * 0.01)), 2) + Tools::ps_round($row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100), 2);
else
{
$row['product_price_wt_but_ecotax'] = $row['product_price_wt'];
$row['product_price_wt'] = Tools::ps_round($row['product_price_wt'] + $row['ecotax'] * (1 + $row['ecotax_tax_rate'] / 100), 2);
}
$row['total_wt'] = $row['product_quantity'] * $row['product_price_wt']; $row['total_wt'] = $row['product_quantity'] * $row['product_price_wt'];
$row['total_price'] = $row['product_quantity'] * $row['product_price']; $row['total_price'] = $row['product_quantity'] * $row['product_price'];
@@ -980,3 +1001,4 @@ class OrderCore extends ObjectModel
WHERE `id_order` = '.(int)($this->id)) !== false); WHERE `id_order` = '.(int)($this->id)) !== false);
} }
} }
+4 -3
View File
@@ -47,10 +47,11 @@ class SubDomainCore extends ObjectModel
{ {
if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT `name` FROM `'._DB_PREFIX_.'subdomain`')) if (!$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS('SELECT `name` FROM `'._DB_PREFIX_.'subdomain`'))
return false; return false;
$subDomains = array();
$sub_domains = array();
foreach ($result AS $row) foreach ($result AS $row)
$subDomains[] = $row['name']; $sub_domains[] = $row['name'];
return $subDomains; return $sub_domains;
} }
} }
+32 -15
View File
@@ -58,6 +58,9 @@ class ToolsCore
global $link; global $link;
if (strpos($url, $baseUri) !== FALSE && strpos($url, $baseUri) == 0) if (strpos($url, $baseUri) !== FALSE && strpos($url, $baseUri) == 0)
$url = substr($url, strlen($baseUri)); $url = substr($url, strlen($baseUri));
if (strpos($url, 'index.php/') !== FALSE && strpos($url, 'index.php/') == 0)
$url = substr($url, strlen('index.php/'));
$explode = explode('?', $url); $explode = explode('?', $url);
$url = $link->getPageLink($explode[0], true); $url = $link->getPageLink($explode[0], true);
if (isset($explode[1])) if (isset($explode[1]))
@@ -84,6 +87,8 @@ class ToolsCore
global $link; global $link;
if (strpos($url, __PS_BASE_URI__) !== FALSE && strpos($url, __PS_BASE_URI__) == 0) if (strpos($url, __PS_BASE_URI__) !== FALSE && strpos($url, __PS_BASE_URI__) == 0)
$url = substr($url, strlen(__PS_BASE_URI__)); $url = substr($url, strlen(__PS_BASE_URI__));
if (strpos($url, 'index.php/') !== FALSE && strpos($url, 'index.php/') == 0)
$url = substr($url, strlen('index.php/'));
$explode = explode('?', $url); $explode = explode('?', $url);
$url = $link->getPageLink($explode[0]); $url = $link->getPageLink($explode[0]);
if (isset($explode[1])) if (isset($explode[1]))
@@ -1711,31 +1716,43 @@ FileETag INode MTime Size
*/ */
public static function displayAsDeprecated() public static function displayAsDeprecated()
{ {
if (_PS_DISPLAY_COMPATIBILITY_WARNING_) $backtrace = debug_backtrace();
{ $callee = next($backtrace);
$backtrace = debug_backtrace(); $error = 'Function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['line'].'</strong><br />';
$callee = next($backtrace); $message = Tools::displayError('The function').' '.$callee['function'].' ('.Tools::displayError('Line').' '.$callee['line'].') '.Tools::displayError('is deprecated and will be removed in the next major version.');
trigger_error('Function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['line'].'</strong><br />', E_USER_WARNING);
$message = Tools::displayError('The function').' '.$callee['function'].' ('.Tools::displayError('Line').' '.$callee['line'].') '.Tools::displayError('is deprecated and will be removed in the next major version.'); self::throwDeprecated($error, $message, $callee['class']);
Logger::addLog($message, 3, $callee['class']);
}
} }
/** /**
* Display a warning message indicating that the parameter is deprecated * Display a warning message indicating that the parameter is deprecated
*/ */
public static function displayParameterAsDeprecated($parameter) public static function displayParameterAsDeprecated($parameter)
{
$backtrace = debug_backtrace();
$callee = next($backtrace);
$error = 'Parameter <strong>'.$parameter.'</strong> in function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['Line'].'</strong><br />';
$message = Tools::displayError('The parameter').' '.$parameter.' '.Tools::displayError(' in function ').' '.$callee['function'].' ('.Tools::displayError('Line').' '.$callee['Line'].') '.Tools::displayError('is deprecated and will be removed in the next major version.');
self::throwDeprecated($error, $message, $callee['class']);
}
public static function displayFileAsDeprecated()
{
$backtrace = debug_backtrace();
$callee = current($backtrace);
$error = 'File <strong>'.$callee['file'].'</strong> is deprecated<br />';
$message = Tools::displayError('The file').' '.$callee['file'].' '.Tools::displayError('is deprecated and will be removed in the next major version.');
self::throwDeprecated($error, $message, $callee['class']);
}
protected static function throwDeprecated($error, $message, $class)
{ {
if (_PS_DISPLAY_COMPATIBILITY_WARNING_) if (_PS_DISPLAY_COMPATIBILITY_WARNING_)
{ {
$backtrace = debug_backtrace(); trigger_error($error, E_USER_WARNING);
$callee = next($backtrace); Logger::addLog($message, 3, $class);
trigger_error('Parameter <strong>'.$parameter.'</strong> in function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['Line'].'</strong><br />', E_USER_WARNING);
$message = Tools::displayError('The parameter').' '.$parameter.' '.Tools::displayError(' in function ').' '.$callee['function'].' ('.Tools::displayError('Line').' '.$callee['Line'].') '.Tools::displayError('is deprecated and will be removed in the next major version.');
Logger::addLog($message, 3, $callee['class']);
} }
} }
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('CMSController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/cms'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('ContactController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/contact-form'.$params);
+4 -13
View File
@@ -75,7 +75,7 @@ class AddressControllerCore extends FrontController
if (self::$cart->id_address_delivery == $this->_address->id) if (self::$cart->id_address_delivery == $this->_address->id)
unset(self::$cart->id_address_delivery); unset(self::$cart->id_address_delivery);
if ($this->_address->delete()) if ($this->_address->delete())
Tools::redirect('addresses.php'); Tools::redirect('index.php?controller=addresses');
$this->errors[] = Tools::displayError('This address cannot be deleted.'); $this->errors[] = Tools::displayError('This address cannot be deleted.');
} }
self::$smarty->assign(array('address' => $this->_address, 'id_address' => (int)$id_address)); self::$smarty->assign(array('address' => $this->_address, 'id_address' => (int)$id_address));
@@ -83,7 +83,7 @@ class AddressControllerCore extends FrontController
elseif (Tools::isSubmit('ajax')) elseif (Tools::isSubmit('ajax'))
exit; exit;
else else
Tools::redirect('addresses.php'); Tools::redirect('index.php?controller=addresses');
} }
if (Tools::isSubmit('submitAddress')) if (Tools::isSubmit('submitAddress'))
{ {
@@ -164,7 +164,7 @@ class AddressControllerCore extends FrontController
} }
} }
elseif (self::$cookie->is_guest) elseif (self::$cookie->is_guest)
Tools::redirect('addresses.php'); Tools::redirect('index.php?controller=addresses');
if ($result = $address->save()) if ($result = $address->save())
{ {
@@ -220,7 +220,7 @@ class AddressControllerCore extends FrontController
/* Secure restriction for guest */ /* Secure restriction for guest */
if (self::$cookie->is_guest) if (self::$cookie->is_guest)
Tools::redirect('addresses.php'); Tools::redirect('index.php?controller=addresses');
if (Tools::isSubmit('id_country') AND Tools::getValue('id_country') != NULL AND is_numeric(Tools::getValue('id_country'))) if (Tools::isSubmit('id_country') AND Tools::getValue('id_country') != NULL AND is_numeric(Tools::getValue('id_country')))
$selectedCountry = (int)Tools::getValue('id_country'); $selectedCountry = (int)Tools::getValue('id_country');
@@ -257,15 +257,6 @@ class AddressControllerCore extends FrontController
)); ));
} }
protected function _processAddressFormat()
{
$id_country = is_null($this->_address)? 0 : (int)$this->_address->id_country;
$dlv_adr_fields = AddressFormat::getOrderedAddressFields($id_country, $split_all = true);
self::$smarty->assign('ordered_adr_fields', $dlv_adr_fields);
}
public function displayHeader() public function displayHeader()
{ {
if (Tools::getValue('ajax') != 'true') if (Tools::getValue('ajax') != 'true')
+3 -3
View File
@@ -40,7 +40,7 @@ class AuthControllerCore extends FrontController
parent::preProcess(); parent::preProcess();
if (self::$cookie->isLogged() AND !Tools::isSubmit('ajax')) if (self::$cookie->isLogged() AND !Tools::isSubmit('ajax'))
Tools::redirect('my-account.php'); Tools::redirect('index.php?controller=my-account');
if (Tools::getValue('create_account')) if (Tools::getValue('create_account'))
{ {
@@ -203,7 +203,7 @@ class AuthControllerCore extends FrontController
} }
if ($back = Tools::getValue('back')) if ($back = Tools::getValue('back'))
Tools::redirect($back); Tools::redirect($back);
Tools::redirect('my-account.php'); Tools::redirect('index.php?controller=my-account');
} }
} }
} }
@@ -272,7 +272,7 @@ class AuthControllerCore extends FrontController
{ {
if ($back = Tools::getValue('back')) if ($back = Tools::getValue('back'))
Tools::redirect($back); Tools::redirect($back);
Tools::redirect('my-account.php'); Tools::redirect('index.php?controller=my-account');
} }
} }
} }
+2 -1
View File
@@ -65,7 +65,7 @@ class CmsControllerCore extends FrontController
elseif (Validate::isLoadedObject($this->cms_category)) elseif (Validate::isLoadedObject($this->cms_category))
$this->assignCase = 2; $this->assignCase = 2;
else else
Tools::redirect('404.php'); Tools::redirect('index.php?controller=404');
if((int)(Configuration::get('PS_REWRITING_SETTINGS'))) if((int)(Configuration::get('PS_REWRITING_SETTINGS')))
{ {
@@ -124,3 +124,4 @@ class CmsControllerCore extends FrontController
self::$smarty->display(_PS_THEME_DIR_.'cms.tpl'); self::$smarty->display(_PS_THEME_DIR_.'cms.tpl');
} }
} }
+3 -2
View File
@@ -216,7 +216,7 @@ class CartControllerCore extends FrontController
{ {
$queryString = Tools::safeOutput(Tools::getValue('query', NULL)); $queryString = Tools::safeOutput(Tools::getValue('query', NULL));
if ($queryString AND !Configuration::get('PS_CART_REDIRECT')) if ($queryString AND !Configuration::get('PS_CART_REDIRECT'))
Tools::redirect('search.php?search='.$queryString); Tools::redirect('index.php?controller=search&search='.$queryString);
if (isset($_SERVER['HTTP_REFERER'])) if (isset($_SERVER['HTTP_REFERER']))
{ {
// Redirect to previous page // Redirect to previous page
@@ -227,7 +227,7 @@ class CartControllerCore extends FrontController
} }
} }
if (Tools::getValue('ajax') != 'true' AND !sizeof($this->errors)) if (Tools::getValue('ajax') != 'true' AND !sizeof($this->errors))
Tools::redirect('order.php?'.(isset($idProduct) ? 'ipa='.(int)($idProduct) : '')); Tools::redirect('index.php?controller=order&'.(isset($idProduct) ? 'ipa='.(int)($idProduct) : ''));
} }
} }
@@ -239,3 +239,4 @@ class CartControllerCore extends FrontController
self::$smarty->display(_PS_THEME_DIR_.'errors.tpl'); self::$smarty->display(_PS_THEME_DIR_.'errors.tpl');
} }
} }
+1 -1
View File
@@ -42,7 +42,7 @@ class CompareControllerCore extends FrontController
$postProducts = isset($product_list) ? rtrim($product_list,'|') : ''; $postProducts = isset($product_list) ? rtrim($product_list,'|') : '';
if (!Configuration::get('PS_COMPARATOR_MAX_ITEM')) if (!Configuration::get('PS_COMPARATOR_MAX_ITEM'))
return Tools::redirect('404.php'); return Tools::redirect('index.php?controller=404');
if ($postProducts) if ($postProducts)
{ {
+2 -2
View File
@@ -32,7 +32,7 @@ class GuestTrackingControllerCore extends FrontController
parent::preProcess(); parent::preProcess();
if (self::$cookie->isLogged()) if (self::$cookie->isLogged())
Tools::redirect('history.php'); Tools::redirect('index.php?controller=history');
} }
public function process() public function process()
@@ -59,7 +59,6 @@ class GuestTrackingControllerCore extends FrontController
$customizedDatas = Product::getAllCustomizedDatas((int)($order->id_cart)); $customizedDatas = Product::getAllCustomizedDatas((int)($order->id_cart));
Product::addCustomizationPrice($products, $customizedDatas); Product::addCustomizationPrice($products, $customizedDatas);
$this->processAddressFormat($addressDelivery, $addressInvoice);
self::$smarty->assign(array( self::$smarty->assign(array(
'shop_name' => Configuration::get('PS_SHOP_NAME'), 'shop_name' => Configuration::get('PS_SHOP_NAME'),
'order' => $order, 'order' => $order,
@@ -137,3 +136,4 @@ class GuestTrackingControllerCore extends FrontController
} }
} }
+7 -7
View File
@@ -67,7 +67,7 @@ class OrderControllerCore extends ParentOrderController
} }
if (!self::$cookie->isLogged(true) AND in_array($this->step, array(1, 2, 3))) if (!self::$cookie->isLogged(true) AND in_array($this->step, array(1, 2, 3)))
Tools::redirect('authentication.php?back='.urlencode('order.php?step='.$this->step)); Tools::redirect('index.php?controller=authentication&back=order.php?step='.$this->step);
if ($this->nbProducts) if ($this->nbProducts)
self::$smarty->assign('virtual_cart', $isVirtualCart); self::$smarty->assign('virtual_cart', $isVirtualCart);
@@ -109,10 +109,10 @@ class OrderControllerCore extends ParentOrderController
{ {
$email = self::$cookie->email; $email = self::$cookie->email;
self::$cookie->logout(); // If guest we clear the cookie for security reason self::$cookie->logout(); // If guest we clear the cookie for security reason
Tools::redirect('guest-tracking.php?id_order='.(int)$id_order.'&email='.urlencode($email)); Tools::redirect('index.php?controller=guest-tracking&id_order='.(int)$id_order.'&email='.urlencode($email));
} }
else else
Tools::redirect('history.php'); Tools::redirect('index.php?controller=history');
} }
$this->_assignPayment(); $this->_assignPayment();
break; break;
@@ -172,7 +172,7 @@ class OrderControllerCore extends ParentOrderController
global $isVirtualCart; global $isVirtualCart;
if ($this->step >= 2 AND (!self::$cart->id_address_delivery OR !self::$cart->id_address_invoice)) if ($this->step >= 2 AND (!self::$cart->id_address_delivery OR !self::$cart->id_address_invoice))
Tools::redirect('order.php?step=1'); Tools::redirect('index.php?controller=order&step=1');
$delivery = new Address((int)(self::$cart->id_address_delivery)); $delivery = new Address((int)(self::$cart->id_address_delivery));
$invoice = new Address((int)(self::$cart->id_address_invoice)); $invoice = new Address((int)(self::$cart->id_address_invoice));
@@ -182,10 +182,10 @@ class OrderControllerCore extends ParentOrderController
unset(self::$cart->id_address_delivery); unset(self::$cart->id_address_delivery);
if ($invoice->deleted) if ($invoice->deleted)
unset(self::$cart->id_address_invoice); unset(self::$cart->id_address_invoice);
Tools::redirect('order.php?step=1'); Tools::redirect('index.php?controller=order&step=1');
} }
elseif ($this->step >= 3 AND !self::$cart->id_carrier AND !$isVirtualCart) elseif ($this->step >= 3 AND !self::$cart->id_carrier AND !$isVirtualCart)
Tools::redirect('order.php?step=2'); Tools::redirect('index.php?controller=order&step=2');
} }
/* /*
@@ -241,7 +241,7 @@ class OrderControllerCore extends ParentOrderController
self::$smarty->assign('cart', self::$cart); self::$smarty->assign('cart', self::$cart);
if (self::$cookie->is_guest) if (self::$cookie->is_guest)
Tools::redirect('order.php?step=2'); Tools::redirect('index.php?controller=order?step=2');
} }
/* Carrier step */ /* Carrier step */
+1 -1
View File
@@ -84,7 +84,7 @@ class OrderDetailControllerCore extends FrontController
'{message}' => $message->message), '{message}' => $message->message),
$to, $toName, $customer->email, $customer->firstname.' '.$customer->lastname); $to, $toName, $customer->email, $customer->firstname.' '.$customer->lastname);
if (Tools::getValue('ajax') != 'true') if (Tools::getValue('ajax') != 'true')
Tools::redirect('order-detail.php?id_order='.(int)($idOrder)); Tools::redirect('index.php?controller=order-detail&id_order='.(int)($idOrder));
} }
else else
{ {
+8 -8
View File
@@ -46,16 +46,16 @@ class OrderFollowControllerCore extends FrontController
$customizationQtyInput = Tools::getValue('customization_qty_input'); $customizationQtyInput = Tools::getValue('customization_qty_input');
if (!$id_order = (int)(Tools::getValue('id_order'))) if (!$id_order = (int)(Tools::getValue('id_order')))
Tools::redirect('history.php'); Tools::redirect('index.php?controller=history');
if (!$order_qte_input = Tools::getValue('order_qte_input')) if (!$order_qte_input = Tools::getValue('order_qte_input'))
Tools::redirect('order-follow.php?errorDetail1'); Tools::redirect('index.php?controller=order-follow&errorDetail1');
if ($customizationIds = Tools::getValue('customization_ids') AND !$customizationQtyInput) if ($customizationIds = Tools::getValue('customization_ids') AND !$customizationQtyInput)
Tools::redirect('order-follow.php?errorDetail1'); Tools::redirect('index.php?controller=order-follow&errorDetail1');
if (!$ids_order_detail = Tools::getValue('ids_order_detail') AND !$customizationIds) if (!$ids_order_detail = Tools::getValue('ids_order_detail') AND !$customizationIds)
Tools::redirect('order-follow.php?errorDetail2'); Tools::redirect('index.php?controller=order-follow&errorDetail2');
$order = new Order((int)($id_order)); $order = new Order((int)($id_order));
if (!$order->isReturnable()) Tools::redirect('order-follow.php?errorNotReturnable'); if (!$order->isReturnable()) Tools::redirect('index.php?controller=order-follow&errorNotReturnable');
if ($order->id_customer != self::$cookie->id_customer) if ($order->id_customer != self::$cookie->id_customer)
die(Tools::displayError()); die(Tools::displayError());
$orderReturn = new OrderReturn(); $orderReturn = new OrderReturn();
@@ -63,15 +63,15 @@ class OrderFollowControllerCore extends FrontController
$orderReturn->id_order = $id_order; $orderReturn->id_order = $id_order;
$orderReturn->question = strval(Tools::getValue('returnText')); $orderReturn->question = strval(Tools::getValue('returnText'));
if (empty($orderReturn->question)) if (empty($orderReturn->question))
Tools::redirect('order-follow.php?errorMsg'); Tools::redirect('index.php?controller=order-follow&errorMsg');
if (!$orderReturn->checkEnoughProduct($ids_order_detail, $order_qte_input, $customizationIds, $customizationQtyInput)) if (!$orderReturn->checkEnoughProduct($ids_order_detail, $order_qte_input, $customizationIds, $customizationQtyInput))
Tools::redirect('order-follow.php?errorQuantity'); Tools::redirect('index.php?controller=order-follow&errorQuantity');
$orderReturn->state = 1; $orderReturn->state = 1;
$orderReturn->add(); $orderReturn->add();
$orderReturn->addReturnDetail($ids_order_detail, $order_qte_input, $customizationIds, $customizationQtyInput); $orderReturn->addReturnDetail($ids_order_detail, $order_qte_input, $customizationIds, $customizationQtyInput);
Module::hookExec('orderReturn', array('orderReturn' => $orderReturn)); Module::hookExec('orderReturn', array('orderReturn' => $orderReturn));
Tools::redirect('order-follow.php'); Tools::redirect('index.php?controller=order-follow');
} }
$ordersReturn = OrderReturn::getOrdersReturn((int)(self::$cookie->id_customer)); $ordersReturn = OrderReturn::getOrdersReturn((int)(self::$cookie->id_customer));
+11 -10
View File
@@ -55,13 +55,13 @@ class ParentOrderControllerCore extends FrontController
parent::preProcess(); parent::preProcess();
// Redirect to the good order process // Redirect to the good order process
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 AND strpos($_SERVER['PHP_SELF'], 'order.php') === false) if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 AND Tools::getValue('controller') != 'order')
Tools::redirect('order.php'); Tools::redirect('index.php?controller=order');
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 AND strpos($_SERVER['PHP_SELF'], 'order-opc.php') === false) if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 AND Tools::getValue('controller') != 'order-opc')
{ {
if (isset($_GET['step']) AND $_GET['step'] == 3) if (isset($_GET['step']) AND $_GET['step'] == 3)
Tools::redirect('order-opc.php?isPaymentStep=true'); Tools::redirect('index.php?controller=order-opc&isPaymentStep=true');
Tools::redirect('order-opc.php'); Tools::redirect('index.php?controller=order-opc');
} }
if (Configuration::get('PS_CATALOG_MODE')) if (Configuration::get('PS_CATALOG_MODE'))
@@ -80,8 +80,8 @@ class ParentOrderControllerCore extends FrontController
self::$cookie->id_cart = $duplication['cart']->id; self::$cookie->id_cart = $duplication['cart']->id;
self::$cookie->write(); self::$cookie->write();
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1) if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1)
Tools::redirect('order-opc.php'); Tools::redirect('index.php?controller=order-opc');
Tools::redirect('order.php'); Tools::redirect('index.php?controller=order');
} }
} }
@@ -105,7 +105,7 @@ class ParentOrderControllerCore extends FrontController
if (!sizeof($this->errors)) if (!sizeof($this->errors))
{ {
self::$cart->addDiscount((int)($discount->id)); self::$cart->addDiscount((int)($discount->id));
Tools::redirect('order-opc.php'); Tools::redirect('index.php?controller=order-opc');
} }
} }
self::$smarty->assign(array( self::$smarty->assign(array(
@@ -116,7 +116,7 @@ class ParentOrderControllerCore extends FrontController
elseif (isset($_GET['deleteDiscount']) AND Validate::isUnsignedId($_GET['deleteDiscount'])) elseif (isset($_GET['deleteDiscount']) AND Validate::isUnsignedId($_GET['deleteDiscount']))
{ {
self::$cart->deleteDiscount((int)($_GET['deleteDiscount'])); self::$cart->deleteDiscount((int)($_GET['deleteDiscount']));
Tools::redirect('order-opc.php'); Tools::redirect('index.php?controller=order-opc');
} }
/* Is there only virtual product in cart */ /* Is there only virtual product in cart */
@@ -277,7 +277,7 @@ class ParentOrderControllerCore extends FrontController
protected function _assignAddress() protected function _assignAddress()
{ {
if (!Customer::getAddressesTotalById((int)(self::$cookie->id_customer))) if (!Customer::getAddressesTotalById((int)(self::$cookie->id_customer)))
Tools::redirect('address.php?back=order.php?step=1'); Tools::redirect('index.php?controller=address&back=order.php&step=1');
$customer = new Customer((int)(self::$cookie->id_customer)); $customer = new Customer((int)(self::$cookie->id_customer));
if (Validate::isLoadedObject($customer)) if (Validate::isLoadedObject($customer))
{ {
@@ -389,3 +389,4 @@ class ParentOrderControllerCore extends FrontController
self::$cart->update(); self::$cart->update();
} }
} }
+3 -3
View File
@@ -31,7 +31,7 @@ class PasswordControllerCore extends FrontController
{ {
public function __construct() public function __construct()
{ {
$this->php_self = 'password.php'; $this->php_self = 'password';
parent::__construct(); parent::__construct();
} }
@@ -60,7 +60,7 @@ class PasswordControllerCore extends FrontController
array('{email}' => $customer->email, array('{email}' => $customer->email,
'{lastname}' => $customer->lastname, '{lastname}' => $customer->lastname,
'{firstname}' => $customer->firstname, '{firstname}' => $customer->firstname,
'{url}' => self::$link->getPageLink('password.php', true).'?token='.$customer->secure_key.'&id_customer='.(int)$customer->id), '{url}' => self::$link->getPageLink('password', true).'?token='.$customer->secure_key.'&id_customer='.(int)$customer->id),
$customer->email, $customer->email,
$customer->firstname.' '.$customer->lastname)) $customer->firstname.' '.$customer->lastname))
self::$smarty->assign(array('confirmation' => 2, 'email' => $customer->email)); self::$smarty->assign(array('confirmation' => 2, 'email' => $customer->email));
@@ -78,7 +78,7 @@ class PasswordControllerCore extends FrontController
$customer = new Customer(); $customer = new Customer();
$customer->getByemail($email); $customer->getByemail($email);
if ((strtotime($customer->last_passwd_gen.'+'.(int)($min_time = Configuration::get('PS_PASSWD_TIME_FRONT')).' minutes') - time()) > 0) if ((strtotime($customer->last_passwd_gen.'+'.(int)($min_time = Configuration::get('PS_PASSWD_TIME_FRONT')).' minutes') - time()) > 0)
Tools::redirect('authentication.php?error_regen_pwd'); Tools::redirect('index.php?controller=authentication&error_regen_pwd');
else else
{ {
$customer->passwd = Tools::encrypt($password = Tools::passwdGen((int)(MIN_PASSWD_LENGTH))); $customer->passwd = Tools::encrypt($password = Tools::passwdGen((int)(MIN_PASSWD_LENGTH)));
+1
View File
@@ -67,6 +67,7 @@ class ProductControllerCore extends FrontController
if (Validate::isLoadedObject($this->product)) if (Validate::isLoadedObject($this->product))
{ {
$canonicalURL = self::$link->getProductLink($this->product); $canonicalURL = self::$link->getProductLink($this->product);
p($canonicalURL);
if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', Tools::getProtocol().$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])) if (!preg_match('/^'.Tools::pRegexp($canonicalURL, '/').'([&?].*)?$/', Tools::getProtocol().$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']))
{ {
header('HTTP/1.0 301 Moved'); header('HTTP/1.0 301 Moved');
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('DiscountController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/discount'.$params);
+2 -2
View File
@@ -68,7 +68,7 @@ if ($cookie->isLoggedBack() AND Tools::getValue('file'))
} }
if (!file_exists($file)) if (!file_exists($file))
Tools::redirect('index.php'); Tools::redirect('index.php/index');
} }
else else
{ {
@@ -78,7 +78,7 @@ else
$cookie = new Cookie('ps'); $cookie = new Cookie('ps');
Tools::setCookieLanguage(); Tools::setCookieLanguage();
if (!$cookie->isLogged() AND !Tools::getValue('secure_key') AND !Tools::getValue('id_order')) if (!$cookie->isLogged() AND !Tools::getValue('secure_key') AND !Tools::getValue('id_order'))
Tools::redirect('authentication.php?back=get-file.php&key='.$key); Tools::redirect('index.php/authentication?back=get-file.php&key='.$key);
elseif (!$cookie->isLogged() AND Tools::getValue('secure_key') AND Tools::getValue('id_order')) elseif (!$cookie->isLogged() AND Tools::getValue('secure_key') AND Tools::getValue('id_order'))
{ {
$order = new Order((int)Tools::getValue('id_order')); $order = new Order((int)Tools::getValue('id_order'));
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('GuestTrackingController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/guest-tracking'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('HistoryController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/history'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('IdentityController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/identity'.$params);
+4 -1
View File
@@ -1,3 +1,4 @@
<?php <?php
/* /*
* 2007-2011 PrestaShop * 2007-2011 PrestaShop
@@ -26,4 +27,6 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('IndexController')->run(); $dispatcher = new Dispatcher();
$dispatcher->dispatch();
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('ManufacturerController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/manufacturer'.$params);
+2 -2
View File
@@ -60,7 +60,7 @@ if (!isset($response[7]) OR !isset($response[3]) OR !isset($response[9]))
} }
if ($response[0] == 3) if ($response[0] == 3)
Tools::redirect('order.php?step=3&aimerror=1'); Tools::redirect('index.php/order?step=3&aimerror=1');
else else
{ {
/* Does the cart exist and is valid? */ /* Does the cart exist and is valid? */
@@ -82,6 +82,6 @@ else
else else
$authorizeaim->validateOrder((int)$cart->id, _PS_OS_ERROR_, (float)$response[9], $authorizeaim->displayName, $message); $authorizeaim->validateOrder((int)$cart->id, _PS_OS_ERROR_, (float)$response[9], $authorizeaim->displayName, $message);
Tools::redirect('order-confirmation.php?id_module='.(int)$authorizeaim->id.'&id_cart='.(int)$cart->id.'&key='.$customer->secure_key); Tools::redirect('index.php/order-confirmation?id_module='.(int)$authorizeaim->id.'&id_cart='.(int)$cart->id.'&key='.$customer->secure_key);
} }
+1 -1
View File
@@ -33,7 +33,7 @@ include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/bankwire.php'); include(dirname(__FILE__).'/bankwire.php');
if (!$cookie->isLogged(true)) if (!$cookie->isLogged(true))
Tools::redirect('authentication.php?back=order.php'); Tools::redirect('index.php/authentication?back=order.php');
$bankwire = new BankWire(); $bankwire = new BankWire();
echo $bankwire->execPayment($cart); echo $bankwire->execPayment($cart);
+1 -1
View File
@@ -73,7 +73,7 @@
<b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='bankwire'}.</b> <b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='bankwire'}.</b>
</p> </p>
<p class="cart_navigation"> <p class="cart_navigation">
<a href="{$link->getPageLink('order.php', true)}?step=3" class="button_large">{l s='Other payment methods' mod='bankwire'}</a> <a href="{$link->getPageLink('order', true)}?step=3" class="button_large">{l s='Other payment methods' mod='bankwire'}</a>
<input type="submit" name="submit" value="{l s='I confirm my order' mod='bankwire'}" class="exclusive_large" /> <input type="submit" name="submit" value="{l s='I confirm my order' mod='bankwire'}" class="exclusive_large" />
</p> </p>
</form> </form>
+2 -2
View File
@@ -35,11 +35,11 @@
<br /><br />- {l s='Do not forget to insert your order #' mod='bankwire'} <span class="bold">{$id_order}</span> {l s='in the subject of your bank wire' mod='bankwire'} <br /><br />- {l s='Do not forget to insert your order #' mod='bankwire'} <span class="bold">{$id_order}</span> {l s='in the subject of your bank wire' mod='bankwire'}
<br /><br />{l s='An e-mail has been sent to you with this information.' mod='bankwire'} <br /><br />{l s='An e-mail has been sent to you with this information.' mod='bankwire'}
<br /><br /><span class="bold">{l s='Your order will be sent as soon as we receive your settlement.' mod='bankwire'}</span> <br /><br /><span class="bold">{l s='Your order will be sent as soon as we receive your settlement.' mod='bankwire'}</span>
<br /><br />{l s='For any questions or for further information, please contact our' mod='bankwire'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='bankwire'}</a>. <br /><br />{l s='For any questions or for further information, please contact our' mod='bankwire'} <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='bankwire'}</a>.
</p> </p>
{else} {else}
<p class="warning"> <p class="warning">
{l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='bankwire'} {l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='bankwire'}
<a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='bankwire'}</a>. <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='bankwire'}</a>.
</p> </p>
{/if} {/if}
@@ -26,7 +26,7 @@
<!-- MODULE Block best sellers --> <!-- MODULE Block best sellers -->
<div id="best-sellers_block_right" class="block products_block"> <div id="best-sellers_block_right" class="block products_block">
<h4><a href="{$link->getPageLink('best-sales.php')}">{l s='Top sellers' mod='blockbestsellers'}</a></h4> <h4><a href="{$link->getPageLink('best-sales')}">{l s='Top sellers' mod='blockbestsellers'}</a></h4>
<div class="block_content"> <div class="block_content">
{if $best_sellers|@count > 0} {if $best_sellers|@count > 0}
<ul class="product_images"> <ul class="product_images">
@@ -38,7 +38,7 @@
<dt class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}</a></dt> <dt class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}</a></dt>
{/foreach} {/foreach}
</dl> </dl>
<p><a href="{$link->getPageLink('best-sales.php')}" title="{l s='All best sellers' mod='blockbestsellers'}" class="button_large">{l s='All best sellers' mod='blockbestsellers'}</a></p> <p><a href="{$link->getPageLink('best-sales')}" title="{l s='All best sellers' mod='blockbestsellers'}" class="button_large">{l s='All best sellers' mod='blockbestsellers'}</a></p>
{else} {else}
<p>{l s='No best sellers at this time' mod='blockbestsellers'}</p> <p>{l s='No best sellers at this time' mod='blockbestsellers'}</p>
{/if} {/if}
+9 -9
View File
@@ -119,11 +119,11 @@ var ajaxCart = {
//send the ajax request to the server //send the ajax request to the server
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: baseDir + 'cart.php', url: baseDir + 'index.php',
async: true, async: true,
cache: false, cache: false,
dataType : "json", dataType : "json",
data: 'ajax=true&token=' + static_token, data: 'controller=cart&ajax=true&token=' + static_token,
success: function(jsonData) success: function(jsonData)
{ {
ajaxCart.updateCart(jsonData); ajaxCart.updateCart(jsonData);
@@ -180,11 +180,11 @@ var ajaxCart = {
//send the ajax request to the server //send the ajax request to the server
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: baseDir + 'cart.php', url: baseDir + 'index.php',
async: true, async: true,
cache: false, cache: false,
dataType : "json", dataType : "json",
data: 'add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): ''), data: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): ''),
success: function(jsonData,textStatus,jqXHR) success: function(jsonData,textStatus,jqXHR)
{ {
// add appliance to whishlist module // add appliance to whishlist module
@@ -230,11 +230,11 @@ var ajaxCart = {
//send the ajax request to the server //send the ajax request to the server
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: baseDir + 'cart.php', url: baseDir + 'index.php',
async: true, async: true,
cache: false, cache: false,
dataType : "json", dataType : "json",
data: 'delete=1&id_product=' + idProduct + '&ipa=' + ((idCombination != null && parseInt(idCombination)) ? idCombination : '') + ((customizationId && customizationId != null) ? '&id_customization=' + customizationId : '') + '&token=' + static_token + '&ajax=true', data: 'controller=cart&delete=1&id_product=' + idProduct + '&ipa=' + ((idCombination != null && parseInt(idCombination)) ? idCombination : '') + ((customizationId && customizationId != null) ? '&id_customization=' + customizationId : '') + '&token=' + static_token + '&ajax=true',
success: function(jsonData) { success: function(jsonData) {
ajaxCart.updateCart(jsonData); ajaxCart.updateCart(jsonData);
if ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc') if ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc')
@@ -327,7 +327,7 @@ var ajaxCart = {
} }
var removeLinks = $('#cart_block_product_' + domIdProduct).find('a.ajax_cart_block_remove_link'); var removeLinks = $('#cart_block_product_' + domIdProduct).find('a.ajax_cart_block_remove_link');
if (!product.hasCustomizedDatas && !removeLinks.length) if (!product.hasCustomizedDatas && !removeLinks.length)
$('#' + domIdProduct + ' span.remove_link').html('<a class="ajax_cart_block_remove_link" rel="nofollow" href="' + baseDir + 'cart.php?delete&amp;id_product=' + product['id'] + '&amp;ipa=' + product['idCombination'] + '&amp;token=' + static_token + '" title="' + removingLinkText + '"> </a>'); $('#' + domIdProduct + ' span.remove_link').html('<a class="ajax_cart_block_remove_link" rel="nofollow" href="' + baseDir + 'index.php?controller=cart&amp;delete&amp;id_product=' + product['id'] + '&amp;ipa=' + product['idCombination'] + '&amp;token=' + static_token + '" title="' + removingLinkText + '"> </a>');
}, },
doesCustomizationStillExist : function (product, customizationId) doesCustomizationStillExist : function (product, customizationId)
@@ -416,7 +416,7 @@ var ajaxCart = {
content += '<span class="quantity-formated"><span class="quantity">' + this.quantity + '</span>x</span>'; content += '<span class="quantity-formated"><span class="quantity">' + this.quantity + '</span>x</span>';
var name = (this.name.length > 12 ? this.name.substring(0, 10) + '...' : this.name); var name = (this.name.length > 12 ? this.name.substring(0, 10) + '...' : this.name);
content += '<a href="' + this.link + '" title="' + this.name + '">' + name + '</a>'; content += '<a href="' + this.link + '" title="' + this.name + '">' + name + '</a>';
content += '<span class="remove_link"><a rel="nofollow" class="ajax_cart_block_remove_link" href="' + baseDir + 'cart.php?delete&amp;id_product=' + productId + '&amp;token=' + static_token + (this.hasAttributes ? '&amp;ipa=' + parseInt(this.idCombination) : '') + '"> </a></span>'; content += '<span class="remove_link"><a rel="nofollow" class="ajax_cart_block_remove_link" href="' + baseDir + 'index.php?controller=cart&amp;delete&amp;id_product=' + productId + '&amp;token=' + static_token + (this.hasAttributes ? '&amp;ipa=' + parseInt(this.idCombination) : '') + '"> </a></span>';
content += '<span class="price">' + this.priceByLine + '</span>'; content += '<span class="price">' + this.priceByLine + '</span>';
content += '</dt>'; content += '</dt>';
if (this.hasAttributes) if (this.hasAttributes)
@@ -483,7 +483,7 @@ var ajaxCart = {
// If the customization is already displayed on the cart, no update's needed // If the customization is already displayed on the cart, no update's needed
if($('#cart_block').find("div[id^=deleteCustomizableProduct_" + customizationId + "_]").length) if($('#cart_block').find("div[id^=deleteCustomizableProduct_" + customizationId + "_]").length)
return (''); return ('');
content += '<li name="customization"><div class="deleteCustomizableProduct" id="deleteCustomizableProduct_' + customizationId + '_' + productId + '_' + (productAttributeId ? productAttributeId : '0') + '"><a rel="nofollow" class="ajax_cart_block_remove_link" href="' + baseDir + 'cart.php?delete&amp;id_product=' + productId + '&amp;ipa=' + productAttributeId + '&amp;id_customization=' + customizationId + '&amp;token=' + static_token + '"> </a></div><span class="quantity-formated"><span class="quantity">' + parseInt(this.quantity) + '</span>x</span>'; content += '<li name="customization"><div class="deleteCustomizableProduct" id="deleteCustomizableProduct_' + customizationId + '_' + productId + '_' + (productAttributeId ? productAttributeId : '0') + '"><a rel="nofollow" class="ajax_cart_block_remove_link" href="' + baseDir + 'index.php?controller=cart&amp;delete&amp;id_product=' + productId + '&amp;ipa=' + productAttributeId + '&amp;id_customization=' + customizationId + '&amp;token=' + static_token + '"> </a></div><span class="quantity-formated"><span class="quantity">' + parseInt(this.quantity) + '</span>x</span>';
// Give to the customized product the first textfield value as name // Give to the customized product the first textfield value as name
$(this.datas).each(function(){ $(this.datas).each(function(){
+1 -1
View File
@@ -86,7 +86,7 @@
"name": "{$discount.name|cat:' : '|cat:$discount.description|truncate:18:'...'|addslashes}", "name": "{$discount.name|cat:' : '|cat:$discount.description|truncate:18:'...'|addslashes}",
"description": "{$discount.description|addslashes}", "description": "{$discount.description|addslashes}",
"nameDescription": "{$discount.name|cat:' : '|cat:$discount.description|truncate:18:'...'}", "nameDescription": "{$discount.name|cat:' : '|cat:$discount.description|truncate:18:'...'}",
"link": "{$link->getPageLink('order.php', true)}?deleteDiscount={$discount.id_discount}", "link": "{$link->getPageLink('order', true)}?deleteDiscount={$discount.id_discount}",
"price": "-{if $discount.value_real != '!'}{if $priceDisplay == 1}{convertPrice|html_entity_decode:2:'UTF-8' price=$discount.value_tax_exc}{else}{convertPrice|html_entity_decode:2:'UTF-8' price=$discount.value_real}{/if}{/if}" "price": "-{if $discount.value_real != '!'}{if $priceDisplay == 1}{convertPrice|html_entity_decode:2:'UTF-8' price=$discount.value_tax_exc}{else}{convertPrice|html_entity_decode:2:'UTF-8' price=$discount.value_real}{/if}{/if}"
{rdelim} {rdelim}
{if !$smarty.foreach.discounts.last},{/if} {if !$smarty.foreach.discounts.last},{/if}
+6 -6
View File
@@ -38,7 +38,7 @@ var removingLinkText = '{l s='remove this product from my cart' mod='blockcart'
<!-- MODULE Block cart --> <!-- MODULE Block cart -->
<div id="cart_block" class="block exclusive"> <div id="cart_block" class="block exclusive">
<h4> <h4>
<a href="{$link->getPageLink("$order_process.php", true)}">{l s='Cart' mod='blockcart'}</a> <a href="{$link->getPageLink("$order_process", true)}">{l s='Cart' mod='blockcart'}</a>
{if $ajax_allowed} {if $ajax_allowed}
<span id="block_cart_expand" {if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !isset($colapseExpandStatus)}class="hidden"{/if}>&nbsp;</span> <span id="block_cart_expand" {if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !isset($colapseExpandStatus)}class="hidden"{/if}>&nbsp;</span>
<span id="block_cart_collapse" {if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'}class="hidden"{/if}>&nbsp;</span> <span id="block_cart_collapse" {if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'}class="hidden"{/if}>&nbsp;</span>
@@ -63,7 +63,7 @@ var removingLinkText = '{l s='remove this product from my cart' mod='blockcart'
<dt id="cart_block_product_{$product.id_product}{if $product.id_product_attribute}_{$product.id_product_attribute}{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"> <dt id="cart_block_product_{$product.id_product}{if $product.id_product_attribute}_{$product.id_product_attribute}{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
<span class="quantity-formated"><span class="quantity">{$product.cart_quantity}</span>x</span> <span class="quantity-formated"><span class="quantity">{$product.cart_quantity}</span>x</span>
<a class="cart_block_product_name" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)}" title="{$product.name|escape:html:'UTF-8'}">{t text=$product.name length='10' encode='true'}</a> <a class="cart_block_product_name" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)}" title="{$product.name|escape:html:'UTF-8'}">{t text=$product.name length='10' encode='true'}</a>
<span class="remove_link">{if !isset($customizedDatas.$productId.$productAttributeId)}<a rel="nofollow" class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart.php')}?delete&amp;id_product={$product.id_product}&amp;ipa={$product.id_product_attribute}&amp;token={$static_token}" title="{l s='remove this product from my cart' mod='blockcart'}">&nbsp;</a>{/if}</span> <span class="remove_link">{if !isset($customizedDatas.$productId.$productAttributeId)}<a rel="nofollow" class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart')}?delete&amp;id_product={$product.id_product}&amp;ipa={$product.id_product_attribute}&amp;token={$static_token}" title="{l s='remove this product from my cart' mod='blockcart'}">&nbsp;</a>{/if}</span>
<span class="price">{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$product.total`"}{else}{displayWtPrice p="`$product.total_wt`"}{/if}</span> <span class="price">{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$product.total`"}{else}{displayWtPrice p="`$product.total_wt`"}{/if}</span>
</dt> </dt>
{if isset($product.attributes_small)} {if isset($product.attributes_small)}
@@ -77,7 +77,7 @@ var removingLinkText = '{l s='remove this product from my cart' mod='blockcart'
<ul class="cart_block_customizations" id="customization_{$productId}_{$productAttributeId}"> <ul class="cart_block_customizations" id="customization_{$productId}_{$productAttributeId}">
{foreach from=$customizedDatas.$productId.$productAttributeId key='id_customization' item='customization' name='customizations'} {foreach from=$customizedDatas.$productId.$productAttributeId key='id_customization' item='customization' name='customizations'}
<li name="customization"> <li name="customization">
<div class="deleteCustomizableProduct" id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}"><a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart.php')}?delete&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_customization={$id_customization}&amp;token={$static_token}"> </a></div> <div class="deleteCustomizableProduct" id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}"><a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart')}?delete&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_customization={$id_customization}&amp;token={$static_token}"> </a></div>
<span class="quantity-formated"><span class="quantity">{$customization.quantity}</span>x</span>{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}{t text=$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" " length='28' encode='true'} <span class="quantity-formated"><span class="quantity">{$customization.quantity}</span>x</span>{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}{t text=$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" " length='28' encode='true'}
{else} {else}
{l s='Customization #' mod='blockcart'}{$id_customization|intval}{l s=':' mod='blockcart'} {l s='Customization #' mod='blockcart'}{$id_customization|intval}{l s=':' mod='blockcart'}
@@ -101,7 +101,7 @@ var removingLinkText = '{l s='remove this product from my cart' mod='blockcart'
<tr class="bloc_cart_voucher" id="bloc_cart_voucher_{$discount.id_discount}"> <tr class="bloc_cart_voucher" id="bloc_cart_voucher_{$discount.id_discount}">
<td class="name" title="{$discount.description}">{$discount.name|cat:' : '|cat:$discount.description|truncate:18:'...'|escape:'htmlall':'UTF-8'}</td> <td class="name" title="{$discount.description}">{$discount.name|cat:' : '|cat:$discount.description|truncate:18:'...'|escape:'htmlall':'UTF-8'}</td>
<td class="price">-{if $discount.value_real != '!'}{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}{/if}</td> <td class="price">-{if $discount.value_real != '!'}{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}{/if}</td>
<td class="delete"><a href="{$link->getPageLink("$order_process.php", true)}?deleteDiscount={$discount.id_discount}" title="{l s='Delete'}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" width="11" height="13" class="icon" /></a></td> <td class="delete"><a href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount}" title="{l s='Delete'}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" width="11" height="13" class="icon" /></a></td>
</tr> </tr>
{/foreach} {/foreach}
</tbody> </tbody>
@@ -139,8 +139,8 @@ var removingLinkText = '{l s='remove this product from my cart' mod='blockcart'
{/if} {/if}
{/if} {/if}
<p id="cart-buttons"> <p id="cart-buttons">
{if $order_process == 'order'}<a href="{$link->getPageLink("$order_process.php", true)}" class="button_small" title="{l s='Cart' mod='blockcart'}">{l s='Cart' mod='blockcart'}</a>{/if} {if $order_process == 'order'}<a href="{$link->getPageLink("$order_process", true)}" class="button_small" title="{l s='Cart' mod='blockcart'}">{l s='Cart' mod='blockcart'}</a>{/if}
<a href="{$link->getPageLink("$order_process.php", true)}{if $order_process == 'order'}?step=1{/if}" id="button_order_cart" class="exclusive{if $order_process == 'order-opc'}_large{/if}" title="{l s='Check out' mod='blockcart'}">{l s='Check out' mod='blockcart'}</a> <a href="{$link->getPageLink("$order_process", true)}{if $order_process == 'order'}?step=1{/if}" id="button_order_cart" class="exclusive{if $order_process == 'order-opc'}_large{/if}" title="{l s='Check out' mod='blockcart'}">{l s='Check out' mod='blockcart'}</a>
</p> </p>
</div> </div>
</div> </div>
+6 -6
View File
@@ -38,7 +38,7 @@
{foreach from=$cms_title.cms item=cms_page} {foreach from=$cms_title.cms item=cms_page}
{if isset($cms_page.link)}<li><a href="{$cms_page.link}" title="{$cms_page.meta_title|escape:html:'UTF-8'}">{$cms_page.meta_title|escape:html:'UTF-8'}</a></li>{/if} {if isset($cms_page.link)}<li><a href="{$cms_page.link}" title="{$cms_page.meta_title|escape:html:'UTF-8'}">{$cms_page.meta_title|escape:html:'UTF-8'}</a></li>{/if}
{/foreach} {/foreach}
{if $cms_title.display_store}<li><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} {if $cms_title.display_store}<li><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}
</ul> </ul>
</div> </div>
{/foreach} {/foreach}
@@ -46,11 +46,11 @@
{else} {else}
<!-- MODULE Block footer --> <!-- MODULE Block footer -->
<ul class="block_various_links" id="block_various_links_footer"> <ul class="block_various_links" id="block_various_links_footer">
{if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if} {if !$PS_CATALOG_MODE}<li class="first_item"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a></li>{/if}
<li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li> <li class="{if $PS_CATALOG_MODE}first_{/if}item"><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a></li>
{if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales.php')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if} {if !$PS_CATALOG_MODE}<li class="item"><a href="{$link->getPageLink('best-sales')}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a></li>{/if}
{if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if} {if $display_stores_footer}<li class="item"><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a></li>{/if}
<li class="item"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li> <li class="item"><a href="{$link->getPageLink('contact-form', true)}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact us' mod='blockcms'}</a></li>
{foreach from=$cmslinks item=cmslink} {foreach from=$cmslinks item=cmslink}
{if $cmslink.meta_title != ''} {if $cmslink.meta_title != ''}
<li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li> <li class="item"><a href="{$cmslink.link|addslashes}" title="{$cmslink.meta_title|escape:'htmlall':'UTF-8'}">{$cmslink.meta_title|escape:'htmlall':'UTF-8'}</a></li>
@@ -26,7 +26,7 @@
<!-- Block manufacturers module --> <!-- Block manufacturers module -->
<div id="manufacturers_block_left" class="block blockmanufacturer"> <div id="manufacturers_block_left" class="block blockmanufacturer">
<h4>{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer.php')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</h4> <h4>{if $display_link_manufacturer}<a href="{$link->getPageLink('manufacturer')}" title="{l s='Manufacturers' mod='blockmanufacturer'}">{/if}{l s='Manufacturers' mod='blockmanufacturer'}{if $display_link_manufacturer}</a>{/if}</h4>
<div class="block_content"> <div class="block_content">
{if $manufacturers} {if $manufacturers}
{if $text_list} {if $text_list}
+8 -8
View File
@@ -26,18 +26,18 @@
<!-- Block myaccount module --> <!-- Block myaccount module -->
<div class="block myaccount"> <div class="block myaccount">
<h4><a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='blockmyaccount'}</a></h4> <h4><a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='blockmyaccount'}</a></h4>
<div class="block_content"> <div class="block_content">
<ul class="bullet"> <ul class="bullet">
<li><a href="{$link->getPageLink('history.php', true)}" title="">{l s='My orders' mod='blockmyaccount'}</a></li> <li><a href="{$link->getPageLink('history', true)}" title="">{l s='My orders' mod='blockmyaccount'}</a></li>
{if $returnAllowed}<li><a href="{$link->getPageLink('order-follow.php', true)}" title="">{l s='My merchandise returns' mod='blockmyaccount'}</a></li>{/if} {if $returnAllowed}<li><a href="{$link->getPageLink('order-follow', true)}" title="">{l s='My merchandise returns' mod='blockmyaccount'}</a></li>{/if}
<li><a href="{$link->getPageLink('order-slip.php', true)}" title="">{l s='My credit slips' mod='blockmyaccount'}</a></li> <li><a href="{$link->getPageLink('order-slip', true)}" title="">{l s='My credit slips' mod='blockmyaccount'}</a></li>
<li><a href="{$link->getPageLink('addresses.php', true)}" title="">{l s='My addresses' mod='blockmyaccount'}</a></li> <li><a href="{$link->getPageLink('addresses', true)}" title="">{l s='My addresses' mod='blockmyaccount'}</a></li>
<li><a href="{$link->getPageLink('identity.php', true)}" title="">{l s='My personal info' mod='blockmyaccount'}</a></li> <li><a href="{$link->getPageLink('identity', true)}" title="">{l s='My personal info' mod='blockmyaccount'}</a></li>
{if $voucherAllowed}<li><a href="{$link->getPageLink('discount.php', true)}" title="">{l s='My vouchers' mod='blockmyaccount'}</a></li>{/if} {if $voucherAllowed}<li><a href="{$link->getPageLink('discount', true)}" title="">{l s='My vouchers' mod='blockmyaccount'}</a></li>{/if}
{$HOOK_BLOCK_MY_ACCOUNT} {$HOOK_BLOCK_MY_ACCOUNT}
</ul> </ul>
<p class="logout"><a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Sign out' mod='blockmyaccount'}">{l s='Sign out' mod='blockmyaccount'}</a></p> <p class="logout"><a href="{$link->getPageLink('index')}?mylogout" title="{l s='Sign out' mod='blockmyaccount'}">{l s='Sign out' mod='blockmyaccount'}</a></p>
</div> </div>
</div> </div>
<!-- /Block myaccount module --> <!-- /Block myaccount module -->
@@ -26,7 +26,7 @@
<!-- MODULE Block new products --> <!-- MODULE Block new products -->
<div id="new-products_block_right" class="block products_block"> <div id="new-products_block_right" class="block products_block">
<h4><a href="{$link->getPageLink('new-products.php')}" title="{l s='New products' mod='blocknewproducts'}">{l s='New products' mod='blocknewproducts'}</a></h4> <h4><a href="{$link->getPageLink('new-products')}" title="{l s='New products' mod='blocknewproducts'}">{l s='New products' mod='blocknewproducts'}</a></h4>
<div class="block_content"> <div class="block_content">
{if $new_products !== false} {if $new_products !== false}
<ul class="product_images clearfix"> <ul class="product_images clearfix">
@@ -42,7 +42,7 @@
{if $newproduct.description_short}<dd class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}">{$newproduct.description_short|strip_tags:'UTF-8'|truncate:50:'...'}</a>&nbsp;<a href="{$newproduct.link}"><img src="{$img_dir}bullet.gif" alt="&gt;&gt;" width="10" height="7" /></a></dd>{/if} {if $newproduct.description_short}<dd class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}">{$newproduct.description_short|strip_tags:'UTF-8'|truncate:50:'...'}</a>&nbsp;<a href="{$newproduct.link}"><img src="{$img_dir}bullet.gif" alt="&gt;&gt;" width="10" height="7" /></a></dd>{/if}
{/foreach} {/foreach}
</dl> </dl>
<p><a href="{$link->getPageLink('new-products.php')}" title="{l s='All new products' mod='blocknewproducts'}" class="button_large">{l s='All new products' mod='blocknewproducts'}</a></p> <p><a href="{$link->getPageLink('new-products')}" title="{l s='All new products' mod='blocknewproducts'}" class="button_large">{l s='All new products' mod='blocknewproducts'}</a></p>
{else} {else}
<p>{l s='No new products at this time' mod='blocknewproducts'}</p> <p>{l s='No new products at this time' mod='blocknewproducts'}</p>
{/if} {/if}
+1 -1
View File
@@ -32,7 +32,7 @@
{if isset($msg) && $msg} {if isset($msg) && $msg}
<p class="{if $nw_error}warning_inline{else}success_inline{/if}">{$msg}</p> <p class="{if $nw_error}warning_inline{else}success_inline{/if}">{$msg}</p>
{/if} {/if}
<form action="{$link->getPageLink('index.php')}" method="post"> <form action="{$link->getPageLink('index')}" method="post">
<p><input type="text" name="email" size="18" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}" onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter'}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter'}';" /></p> <p><input type="text" name="email" size="18" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}" onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter'}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter'}';" /></p>
<p> <p>
<select name="action"> <select name="action">
@@ -26,8 +26,8 @@
<!-- Block permanent links module HEADER --> <!-- Block permanent links module HEADER -->
<ul id="header_links"> <ul id="header_links">
<li id="header_link_contact"><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li> <li id="header_link_contact"><a href="{$link->getPageLink('contact-form', true)}" title="{l s='contact' mod='blockpermanentlinks'}">{l s='contact' mod='blockpermanentlinks'}</a></li>
<li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap.php')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li> <li id="header_link_sitemap"><a href="{$link->getPageLink('sitemap')}" title="{l s='sitemap' mod='blockpermanentlinks'}">{l s='sitemap' mod='blockpermanentlinks'}</a></li>
<li id="header_link_bookmark"> <li id="header_link_bookmark">
<script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');</script> <script type="text/javascript">writeBookmarkLink('{$come_from}', '{$meta_title|addslashes|addslashes}', '{l s='bookmark' mod='blockpermanentlinks'}');</script>
@@ -28,13 +28,13 @@
<div id="permanent_links"> <div id="permanent_links">
<!-- Sitemap --> <!-- Sitemap -->
<div class="sitemap"> <div class="sitemap">
<a href="{$link->getPageLink('sitemap.php')}"><img src="{$img_dir}icon/sitemap.gif" alt="{l s='sitemap' mod='blockpermanentlinks'}" title="{l s='sitemap' mod='blockpermanentlinks'}" /></a>&nbsp; <a href="{$link->getPageLink('sitemap')}"><img src="{$img_dir}icon/sitemap.gif" alt="{l s='sitemap' mod='blockpermanentlinks'}" title="{l s='sitemap' mod='blockpermanentlinks'}" /></a>&nbsp;
<a href="{$link->getPageLink('sitemap.php')}">{l s='sitemap' mod='blockpermanentlinks'}</a> <a href="{$link->getPageLink('sitemap')}">{l s='sitemap' mod='blockpermanentlinks'}</a>
</div> </div>
<!-- Contact --> <!-- Contact -->
<div class="contact"> <div class="contact">
<a href="{$link->getPageLink('contact-form.php', true)}"><img src="{$img_dir}icon/contact.gif" alt="{l s='contact' mod='blockpermanentlinks'}" title="{l s='contact' mod='blockpermanentlinks'}" /></a>&nbsp; <a href="{$link->getPageLink('contact-form', true)}"><img src="{$img_dir}icon/contact.gif" alt="{l s='contact' mod='blockpermanentlinks'}" title="{l s='contact' mod='blockpermanentlinks'}" /></a>&nbsp;
<a href="{$link->getPageLink('contact-form.php', true)}">{l s='contact' mod='blockpermanentlinks'}</a> <a href="{$link->getPageLink('contact-form', true)}">{l s='contact' mod='blockpermanentlinks'}</a>
</div> </div>
<!-- Bookmark --> <!-- Bookmark -->
<div class="add_bookmark"> <div class="add_bookmark">
+3 -3
View File
@@ -27,7 +27,7 @@
<!-- Block search module TOP --> <!-- Block search module TOP -->
<div id="search_block_top"> <div id="search_block_top">
<form method="get" action="{$link->getPageLink('search.php')}" id="searchbox"> <form method="get" action="{$link->getPageLink('search')}" id="searchbox">
<p> <p>
<label for="search_query_top"><!-- image on background --></label> <label for="search_query_top"><!-- image on background --></label>
<input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderby" value="position" />
@@ -62,7 +62,7 @@
if($(this).val().length > 0){ if($(this).val().length > 0){
stopInstantSearchQueries(); stopInstantSearchQueries();
instantSearchQuery = $.ajax({ instantSearchQuery = $.ajax({
url: '{/literal}{if $search_ssl == 1}{$link->getPageLink('search.php', true)}{else}{$link->getPageLink('search.php')}{/if}{literal}', url: '{/literal}{if $search_ssl == 1}{$link->getPageLink('search', true)}{else}{$link->getPageLink('search')}{/if}{literal}',
data: 'instantSearch=1&id_lang={/literal}{$cookie->id_lang}{literal}&q='+$(this).val(), data: 'instantSearch=1&id_lang={/literal}{$cookie->id_lang}{literal}&q='+$(this).val(),
dataType: 'html', dataType: 'html',
success: function(data){ success: function(data){
@@ -98,7 +98,7 @@
$('document').ready( function() { $('document').ready( function() {
$("#search_query_top") $("#search_query_top")
.autocomplete( .autocomplete(
'{/literal}{if $search_ssl == 1}{$link->getPageLink('search.php', true)}{else}{$link->getPageLink('search.php')}{/if}{literal}', { '{/literal}{if $search_ssl == 1}{$link->getPageLink('search', true)}{else}{$link->getPageLink('search')}{/if}{literal}', {
minChars: 3, minChars: 3,
max: 10, max: 10,
width: 500, width: 500,
+3 -3
View File
@@ -27,7 +27,7 @@
<!-- Block search module --> <!-- Block search module -->
<div id="search_block_left" class="block exclusive"> <div id="search_block_left" class="block exclusive">
<h4>{l s='Search' mod='blocksearch'}</h4> <h4>{l s='Search' mod='blocksearch'}</h4>
<form method="get" action="{$link->getPageLink('search.php', true)}" id="searchbox"> <form method="get" action="{$link->getPageLink('search', true)}" id="searchbox">
<p class="block_content"> <p class="block_content">
<label for="search_query_block">{l s='Enter a product name' mod='blocksearch'}</label> <label for="search_query_block">{l s='Enter a product name' mod='blocksearch'}</label>
<input type="hidden" name="orderby" value="position" /> <input type="hidden" name="orderby" value="position" />
@@ -62,7 +62,7 @@
if($(this).val().length > 0){ if($(this).val().length > 0){
stopInstantSearchQueries(); stopInstantSearchQueries();
instantSearchQuery = $.ajax({ instantSearchQuery = $.ajax({
url: '{/literal}{if $search_ssl == 1}{$link->getPageLink('search.php', true)}{else}{$link->getPageLink('search.php')}{/if}{literal}', url: '{/literal}{if $search_ssl == 1}{$link->getPageLink('search', true)}{else}{$link->getPageLink('search')}{/if}{literal}',
data: 'instantSearch=1&id_lang={/literal}{$cookie->id_lang}{literal}&q='+$(this).val(), data: 'instantSearch=1&id_lang={/literal}{$cookie->id_lang}{literal}&q='+$(this).val(),
dataType: 'html', dataType: 'html',
success: function(data){ success: function(data){
@@ -98,7 +98,7 @@
$('document').ready( function() { $('document').ready( function() {
$("#search_query_block") $("#search_query_block")
.autocomplete( .autocomplete(
'{/literal}{if $search_ssl == 1}{$link->getPageLink('search.php', true)}{else}{$link->getPageLink('search.php')}{/if}{literal}', { '{/literal}{if $search_ssl == 1}{$link->getPageLink('search', true)}{else}{$link->getPageLink('search')}{/if}{literal}', {
minChars: 3, minChars: 3,
max: 10, max: 10,
width: 500, width: 500,
+3 -2
View File
@@ -26,7 +26,7 @@
<!-- MODULE Block specials --> <!-- MODULE Block specials -->
<div id="special_block_right" class="block products_block exclusive blockspecials"> <div id="special_block_right" class="block products_block exclusive blockspecials">
<h4><a href="{$link->getPageLink('prices-drop.php')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></h4> <h4><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></h4>
<div class="block_content"> <div class="block_content">
{if $special} {if $special}
@@ -48,7 +48,7 @@
</li> </li>
</ul> </ul>
<p> <p>
<a href="{$link->getPageLink('prices-drop.php')}" title="{l s='All specials' mod='blockspecials'}" class="button_large">{l s='All specials' mod='blockspecials'}</a> <a href="{$link->getPageLink('prices-drop')}" title="{l s='All specials' mod='blockspecials'}" class="button_large">{l s='All specials' mod='blockspecials'}</a>
</p> </p>
{else} {else}
<p>{l s='No specials at this time' mod='blockspecials'}</p> <p>{l s='No specials at this time' mod='blockspecials'}</p>
@@ -56,3 +56,4 @@
</div> </div>
</div> </div>
<!-- /MODULE Block specials --> <!-- /MODULE Block specials -->
+3 -3
View File
@@ -26,11 +26,11 @@
<!-- Block stores module --> <!-- Block stores module -->
<div id="stores_block_left" class="block"> <div id="stores_block_left" class="block">
<h4><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockstore'}">{l s='Our stores' mod='blockstore'}</a></h4> <h4><a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockstore'}">{l s='Our stores' mod='blockstore'}</a></h4>
<div class="block_content blockstore"> <div class="block_content blockstore">
<p> <p>
<a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockstore'}"><img src="{$module_dir}{$store_img}" alt="{l s='Our stores' mod='blockstore'}" width="174" height="115" /></a><br /> <a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockstore'}"><img src="{$module_dir}{$store_img}" alt="{l s='Our stores' mod='blockstore'}" width="174" height="115" /></a><br />
<a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockstore'}">{l s='Discover our stores' mod='blockstore'}</a> <a href="{$link->getPageLink('stores')}" title="{l s='Our stores' mod='blockstore'}">{l s='Discover our stores' mod='blockstore'}</a>
</p> </p>
</div> </div>
</div> </div>
+1 -1
View File
@@ -26,7 +26,7 @@
<!-- Block suppliers module --> <!-- Block suppliers module -->
<div id="suppliers_block_left" class="block blocksupplier"> <div id="suppliers_block_left" class="block blocksupplier">
<h4>{if $display_link_supplier}<a href="{$link->getPageLink('supplier.php')}" title="{l s='Suppliers' mod='blocksupplier'}">{/if}{l s='Suppliers' mod='blocksupplier'}{if $display_link_supplier}</a>{/if}</h4> <h4>{if $display_link_supplier}<a href="{$link->getPageLink('supplier')}" title="{l s='Suppliers' mod='blocksupplier'}">{/if}{l s='Suppliers' mod='blocksupplier'}{if $display_link_supplier}</a>{/if}</h4>
<div class="block_content"> <div class="block_content">
{if $suppliers} {if $suppliers}
{if $text_list} {if $text_list}
+1 -1
View File
@@ -30,7 +30,7 @@
<p class="block_content"> <p class="block_content">
{if $tags} {if $tags}
{foreach from=$tags item=tag name=myLoop} {foreach from=$tags item=tag name=myLoop}
<a href="{$link->getPageLink('search.php')}?tag={$tag.name|urlencode}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a> <a href="{$link->getPageLink('search')}?tag={$tag.name|urlencode}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a>
{/foreach} {/foreach}
{else} {else}
{l s='No tags specified yet' mod='blocktags'} {l s='No tags specified yet' mod='blocktags'}
+4 -4
View File
@@ -30,15 +30,15 @@
{l s='Welcome' mod='blockuserinfo'}, {l s='Welcome' mod='blockuserinfo'},
{if $cookie->isLogged()} {if $cookie->isLogged()}
<span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span> <span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span>
(<a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Log out' mod='blockuserinfo'}</a>) (<a href="{$link->getPageLink('index')}?mylogout" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Log out' mod='blockuserinfo'}</a>)
{else} {else}
<a href="{$link->getPageLink('my-account.php', true)}">{l s='Log in' mod='blockuserinfo'}</a> <a href="{$link->getPageLink('my-account', true)}">{l s='Log in' mod='blockuserinfo'}</a>
{/if} {/if}
</p> </p>
<ul id="header_nav"> <ul id="header_nav">
{if !$PS_CATALOG_MODE} {if !$PS_CATALOG_MODE}
<li id="shopping_cart"> <li id="shopping_cart">
<a href="{$link->getPageLink("$order_process.php", true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='Cart:' mod='blockuserinfo'}</a> <a href="{$link->getPageLink("$order_process", true)}" title="{l s='Your Shopping Cart' mod='blockuserinfo'}">{l s='Cart:' mod='blockuserinfo'}</a>
<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>
<span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span> <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='blockuserinfo'}</span>
<span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='blockuserinfo'}</span>
@@ -56,7 +56,7 @@
<span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span> <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>
</li> </li>
{/if} {/if}
<li id="your_account"><a href="{$link->getPageLink('my-account.php', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a></li> <li id="your_account"><a href="{$link->getPageLink('my-account', true)}" title="{l s='Your Account' mod='blockuserinfo'}">{l s='Your Account' mod='blockuserinfo'}</a></li>
</ul> </ul>
</div> </div>
<!-- /Block user information module HEADER --> <!-- /Block user information module HEADER -->
+1 -1
View File
@@ -86,7 +86,7 @@ if ($cookie->isLogged())
} }
else else
{ {
Tools::redirect('authentication.php?back=modules/blockwishlist/mywishlist.php'); Tools::redirect('index.php/authentication?back=modules/blockwishlist/mywishlist.php');
} }
$smarty->assign(array( $smarty->assign(array(
+2 -2
View File
@@ -31,7 +31,7 @@
</script> </script>
<div id="mywishlist"> <div id="mywishlist">
{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='blockwishlist'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='My wishlists' mod='blockwishlist'}{/capture} {capture name=path}<a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='blockwishlist'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='My wishlists' mod='blockwishlist'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='My wishlists' mod='blockwishlist'}</h2> <h2>{l s='My wishlists' mod='blockwishlist'}</h2>
@@ -94,7 +94,7 @@
{/if} {/if}
<ul class="footer_links"> <ul class="footer_links">
<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='blockwishlist'}</a></li> <li><a href="{$link->getPageLink('my-account', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account', true)}">{l s='Back to Your Account' mod='blockwishlist'}</a></li>
<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='blockwishlist'}</a></li> <li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='blockwishlist'}</a></li>
</ul> </ul>
</div> </div>
+1 -1
View File
@@ -71,7 +71,7 @@
<a class="button_small clear" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category_rewrite)}" title="{l s='View' mod='blockwishlist'}">{l s='View' mod='blockwishlist'}</a> <a class="button_small clear" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category_rewrite)}" title="{l s='View' mod='blockwishlist'}">{l s='View' mod='blockwishlist'}</a>
{if isset($product.attribute_quantity) AND $product.attribute_quantity >= 1 OR !isset($product.attribute_quantity) AND $product.product_quantity >= 1} {if isset($product.attribute_quantity) AND $product.attribute_quantity >= 1 OR !isset($product.attribute_quantity) AND $product.product_quantity >= 1}
{if !$ajax} {if !$ajax}
<form id="addtocart_{$product.id_product|intval}_{$product.id_product_attribute|intval}" action="{$link->getPageLink('cart.php')}" method="post"> <form id="addtocart_{$product.id_product|intval}_{$product.id_product_attribute|intval}" action="{$link->getPageLink('cart')}" method="post">
<p class="hidden"> <p class="hidden">
<input type="hidden" name="id_product" value="{$product.id_product|intval}" id="product_page_product_id" /> <input type="hidden" name="id_product" value="{$product.id_product|intval}" id="product_page_product_id" />
<input type="hidden" name="add" value="1" /> <input type="hidden" name="add" value="1" />
+1 -1
View File
@@ -28,5 +28,5 @@
<br /><br /> <br /><br />
{l s='You have chosen the cash on delivery method.' mod='cashondelivery'} {l s='You have chosen the cash on delivery method.' mod='cashondelivery'}
<br /><br /><span class="bold">{l s='Your order will be sent very soon.' mod='cashondelivery'}</span> <br /><br /><span class="bold">{l s='Your order will be sent very soon.' mod='cashondelivery'}</span>
<br /><br />{l s='For any questions or for further information, please contact our' mod='cashondelivery'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cashondelivery'}</a>. <br /><br />{l s='For any questions or for further information, please contact our' mod='cashondelivery'} <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='cashondelivery'}</a>.
</p> </p>
+1 -1
View File
@@ -52,7 +52,7 @@
<b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='cashondelivery'}.</b> <b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='cashondelivery'}.</b>
</p> </p>
<p class="cart_navigation"> <p class="cart_navigation">
<a href="{$link->getPageLink('order.php', true)}?step=3" class="button_large">{l s='Other payment methods' mod='cashondelivery'}</a> <a href="{$link->getPageLink('order', true)}?step=3" class="button_large">{l s='Other payment methods' mod='cashondelivery'}</a>
<input type="submit" name="submit" value="{l s='I confirm my order' mod='cashondelivery'}" class="exclusive_large" /> <input type="submit" name="submit" value="{l s='I confirm my order' mod='cashondelivery'}" class="exclusive_large" />
</p> </p>
</form> </form>
+3 -3
View File
@@ -31,11 +31,11 @@ include(dirname(__FILE__).'/cashticket.php');
$module = new CashTicket(); $module = new CashTicket();
if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active) if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active)
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$currency = new Currency($cart->id_currency); $currency = new Currency($cart->id_currency);
if (!$module->isCurrencyActive($currency->iso_code)) if (!$module->isCurrencyActive($currency->iso_code))
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$amount = number_format((float)($cart->getOrderTotal(true, Cart::BOTH)), 2, '.',''); $amount = number_format((float)($cart->getOrderTotal(true, Cart::BOTH)), 2, '.','');
if (Tools::getValue('hash') != md5(Configuration::get($module->prefix.'SALT') + $amount + $currency->iso_code)) if (Tools::getValue('hash') != md5(Configuration::get($module->prefix.'SALT') + $amount + $currency->iso_code))
@@ -98,7 +98,7 @@ if ($state == _PS_OS_ERROR_)
else else
{ {
$order = new Order($module->currentOrder); $order = new Order($module->currentOrder);
Tools::redirect('order-confirmation.php?id_cart='.(int)($cart->id).'&id_module='.(int)($module->id).'&id_order='.(int)($module->currentOrder).'&key='.$order->secure_key); Tools::redirect('index.php/order-confirmation?id_cart='.(int)($cart->id).'&id_module='.(int)($module->id).'&id_order='.(int)($module->currentOrder).'&key='.$order->secure_key);
} }
+2 -2
View File
@@ -31,11 +31,11 @@ include(dirname(__FILE__).'/cashticket.php');
$module = new CashTicket(); $module = new CashTicket();
if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active) if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active)
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$currency = new Currency($cart->id_currency); $currency = new Currency($cart->id_currency);
if (!$module->isCurrencyActive($currency->iso_code)) if (!$module->isCurrencyActive($currency->iso_code))
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$result = $module->createDisposition($cart); $result = $module->createDisposition($cart);
+1 -1
View File
@@ -33,7 +33,7 @@ include(dirname(__FILE__).'/../../header.php');
include(dirname(__FILE__).'/cheque.php'); include(dirname(__FILE__).'/cheque.php');
if (!$cookie->isLogged(true)) if (!$cookie->isLogged(true))
Tools::redirect('authentication.php?back=order.php'); Tools::redirect('index.php/authentication?back=order.php');
$cheque = new Cheque(); $cheque = new Cheque();
echo $cheque->execPayment($cart); echo $cheque->execPayment($cart);
+1 -1
View File
@@ -25,7 +25,7 @@
*} *}
<p class="payment_module"> <p class="payment_module">
<a href="{$this_path_ssl}payment.php" title="{l s='Pay by cheque' mod='cheque'}"> <a href="{$this_path_ssl}payment" title="{l s='Pay by cheque' mod='cheque'}">
<img src="{$this_path}cheque.jpg" alt="{l s='Pay by cheque' mod='cheque'}" width="86" height="49" /> <img src="{$this_path}cheque.jpg" alt="{l s='Pay by cheque' mod='cheque'}" width="86" height="49" />
{l s='Pay by cheque (order process will be longer)' mod='cheque'} {l s='Pay by cheque (order process will be longer)' mod='cheque'}
</a> </a>
+1 -1
View File
@@ -73,7 +73,7 @@
<b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='cheque'}.</b> <b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='cheque'}.</b>
</p> </p>
<p class="cart_navigation"> <p class="cart_navigation">
<a href="{$link->getPageLink('order.php', true)}?step=3" class="button_large">{l s='Other payment methods' mod='cheque'}</a> <a href="{$link->getPageLink('order', true)}?step=3" class="button_large">{l s='Other payment methods' mod='cheque'}</a>
<input type="submit" name="submit" value="{l s='I confirm my order' mod='cheque'}" class="exclusive_large" /> <input type="submit" name="submit" value="{l s='I confirm my order' mod='cheque'}" class="exclusive_large" />
</p> </p>
</form> </form>
+2 -2
View File
@@ -33,11 +33,11 @@
<br /><br />- {l s='mail to' mod='cheque'} <span class="bold">{if $chequeAddress}{$chequeAddress}{else}___________{/if}</span> <br /><br />- {l s='mail to' mod='cheque'} <span class="bold">{if $chequeAddress}{$chequeAddress}{else}___________{/if}</span>
<br /><br />{l s='An e-mail has been sent to you with this information.' mod='cheque'} <br /><br />{l s='An e-mail has been sent to you with this information.' mod='cheque'}
<br /><br /><span class="bold">{l s='Your order will be sent as soon as we receive your payment.' mod='cheque'}</span> <br /><br /><span class="bold">{l s='Your order will be sent as soon as we receive your payment.' mod='cheque'}</span>
<br /><br />{l s='For any questions or for further information, please contact our' mod='cheque'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cheque'}</a>. <br /><br />{l s='For any questions or for further information, please contact our' mod='cheque'} <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='cheque'}</a>.
</p> </p>
{else} {else}
<p class="warning"> <p class="warning">
{l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='cheque'} {l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='cheque'}
<a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='cheque'}</a>. <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='cheque'}</a>.
</p> </p>
{/if} {/if}
+3 -3
View File
@@ -32,12 +32,12 @@ include(dirname(__FILE__).'/cheque.php');
$cheque = new Cheque(); $cheque = new Cheque();
if ($cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$cheque->active) if ($cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$cheque->active)
Tools::redirectLink(__PS_BASE_URI__.'order.php?step=1'); Tools::redirectLink(__PS_BASE_URI__.'index.php/order?step=1');
$customer = new Customer((int)$cart->id_customer); $customer = new Customer((int)$cart->id_customer);
if (!Validate::isLoadedObject($customer)) if (!Validate::isLoadedObject($customer))
Tools::redirectLink(__PS_BASE_URI__.'order.php?step=1'); Tools::redirectLink(__PS_BASE_URI__.'index.php/order?step=1');
$currency = new Currency((int)(isset($_POST['currency_payement']) ? $_POST['currency_payement'] : $cookie->id_currency)); $currency = new Currency((int)(isset($_POST['currency_payement']) ? $_POST['currency_payement'] : $cookie->id_currency));
$total = (float)($cart->getOrderTotal(true, Cart::BOTH)); $total = (float)($cart->getOrderTotal(true, Cart::BOTH));
@@ -49,5 +49,5 @@ $mailVars = array(
$cheque->validateOrder((int)($cart->id), _PS_OS_CHEQUE_, $total, $cheque->displayName, NULL, $mailVars, (int)($currency->id), false, $customer->secure_key); $cheque->validateOrder((int)($cart->id), _PS_OS_CHEQUE_, $total, $cheque->displayName, NULL, $mailVars, (int)($currency->id), false, $customer->secure_key);
Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?id_cart='.(int)($cart->id).'&id_module='.(int)($cheque->id).'&id_order='.$cheque->currentOrder.'&key='.$customer->secure_key); Tools::redirectLink(__PS_BASE_URI__.'index.php/order-confirmation?id_cart='.(int)($cart->id).'&id_module='.(int)($cheque->id).'&id_order='.$cheque->currentOrder.'&key='.$customer->secure_key);
+2 -2
View File
@@ -24,7 +24,7 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
{capture name=path}<a href="{$link->getPageLink('order.php', true)}">{l s='Your shopping cart' mod='gcheckout'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Google Checkout' mod='gcheckout'}{/capture} {capture name=path}<a href="{$link->getPageLink('order', true)}">{l s='Your shopping cart' mod='gcheckout'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Google Checkout' mod='gcheckout'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='Order summary' mod='gcheckout'}</h2> <h2>{l s='Order summary' mod='gcheckout'}</h2>
@@ -49,7 +49,7 @@
<b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='gcheckout'}.</b> <b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='gcheckout'}.</b>
</p> </p>
<p class="cart_navigation"> <p class="cart_navigation">
<a href="{$link->getPageLink('order.php', true)}?step=3" class="button_large">{l s='Other payment methods' mod='gcheckout'}</a> <a href="{$link->getPageLink('order', true)}?step=3" class="button_large">{l s='Other payment methods' mod='gcheckout'}</a>
<a href="#" class="exclusive_large" onclick="$('#gcheckout_form').submit();return false;">{l s='I confirm my order' mod='gcheckout'}</a> <a href="#" class="exclusive_large" onclick="$('#gcheckout_form').submit();return false;">{l s='I confirm my order' mod='gcheckout'}</a>
</p> </p>
+1 -1
View File
@@ -30,7 +30,7 @@ include(dirname(__FILE__).'/../../init.php');
include(dirname(__FILE__).'/gcheckout.php'); include(dirname(__FILE__).'/gcheckout.php');
if (!$cookie->isLogged(true)) if (!$cookie->isLogged(true))
Tools::redirect('authentication.php?back=order.php'); Tools::redirect('index.php/authentication?back=order.php');
elseif (!$cart->getOrderTotal(true, Cart::BOTH)) elseif (!$cart->getOrderTotal(true, Cart::BOTH))
Tools::displayError('Error: Empty cart'); Tools::displayError('Error: Empty cart');
+1
View File
@@ -8,4 +8,5 @@
<tab>seo</tab> <tab>seo</tab>
<is_configurable>1</is_configurable> <is_configurable>1</is_configurable>
<need_instance>1</need_instance> <need_instance>1</need_instance>
<limited_countries></limited_countries>
</module> </module>
+3
View File
@@ -185,6 +185,9 @@ XML;
'supplier' => false, 'supplier' => false,
'store' => false); 'store' => false);
foreach ($pages AS $page => $ssl)
foreach($langs as $lang)
$this->_addSitemapNode($xml, $link->getPageLink($page, $ssl, $lang['id_lang']), '0.5', 'monthly');
if(Configuration::get('PS_REWRITING_SETTINGS')) if(Configuration::get('PS_REWRITING_SETTINGS'))
foreach ($pages AS $page => $ssl) foreach ($pages AS $page => $ssl)
+1 -1
View File
@@ -33,7 +33,7 @@ include(dirname(__FILE__).'/../../init.php');
include(dirname(__FILE__).'/hipay.php'); include(dirname(__FILE__).'/hipay.php');
if (!$cookie->isLogged(true)) if (!$cookie->isLogged(true))
Tools::redirect('authentication.php?back=order.php'); Tools::redirect('index.php/authentication?back=order.php');
$hipay = new HiPay(); $hipay = new HiPay();
$hipay->payment(); $hipay->payment();
+1 -1
View File
@@ -45,7 +45,7 @@
<a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
{if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} {if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2}
<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&amp;id_product={$product.id_product}&amp;token={$static_token}&amp;add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart')}?qty=1&amp;id_product={$product.id_product}&amp;token={$static_token}&amp;add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>
{else} {else}
<span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>
{/if} {/if}
+1 -1
View File
@@ -35,7 +35,7 @@ include_once(dirname(__FILE__).'/LoyaltyModule.php');
include_once(dirname(__FILE__).'/LoyaltyStateModule.php'); include_once(dirname(__FILE__).'/LoyaltyStateModule.php');
if (!$cookie->isLogged()) if (!$cookie->isLogged())
Tools::redirect('authentication.php?back=modules/loyalty/loyalty-program.php'); Tools::redirect('index.php/authentication?back=modules/loyalty/loyalty-program.php');
Tools::addCSS(_PS_CSS_DIR_.'jquery.cluetip.css', 'all'); Tools::addCSS(_PS_CSS_DIR_.'jquery.cluetip.css', 'all');
Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery.dimensions.js',_PS_JS_DIR_.'jquery/jquery.cluetip.js')); Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery.dimensions.js',_PS_JS_DIR_.'jquery/jquery.cluetip.js'));
+2 -2
View File
@@ -30,7 +30,7 @@
--> -->
</script> </script>
{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='loyalty'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='My loyalty points' mod='loyalty'}{/capture} {capture name=path}<a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='loyalty'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='My loyalty points' mod='loyalty'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='My loyalty points' mod='loyalty'}</h2> <h2>{l s='My loyalty points' mod='loyalty'}</h2>
@@ -199,6 +199,6 @@ $(document).ready(function()
{/if} {/if}
<ul class="footer_links"> <ul class="footer_links">
<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='loyalty'}</a></li> <li><a href="{$link->getPageLink('my-account', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account', true)}">{l s='Back to Your Account' mod='loyalty'}</a></li>
<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='loyalty'}</a></li> <li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='loyalty'}</a></li>
</ul> </ul>
+2 -2
View File
@@ -31,7 +31,7 @@
</script> </script>
<div id="myalerts"> <div id="myalerts">
{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='mailalerts'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='My alerts' mod='mailalerts'}{/capture} {capture name=path}<a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='mailalerts'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='My alerts' mod='mailalerts'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='My alerts' mod='mailalerts'}</h2> <h2>{l s='My alerts' mod='mailalerts'}</h2>
@@ -73,7 +73,7 @@
{/if} {/if}
<ul class="footer_links"> <ul class="footer_links">
<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='mailalerts'}</a></li> <li><a href="{$link->getPageLink('my-account', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account', true)}">{l s='Back to Your Account' mod='mailalerts'}</a></li>
<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='mailalerts'}</a></li> <li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir}">{l s='Home' mod='mailalerts'}</a></li>
</ul> </ul>
</div> </div>
+1 -1
View File
@@ -340,7 +340,7 @@ class MondialRelay extends Module
{ {
if (empty($_POST['MR_Selected_Num_'.$cart->id_carrier])) // Case error : the customer didn't choose a 'relais' but selected Relais Colis TNT as a carrier if (empty($_POST['MR_Selected_Num_'.$cart->id_carrier])) // Case error : the customer didn't choose a 'relais' but selected Relais Colis TNT as a carrier
Tools::redirect('order.php?step=2&mr_null'); Tools::redirect('index.php/order?step=2&mr_null');
else else
{ {
Db::getInstance()->delete(_DB_PREFIX_.'mr_selected','id_cart = "'.(int)($cart->id).'"'); Db::getInstance()->delete(_DB_PREFIX_.'mr_selected','id_cart = "'.(int)($cart->id).'"');
+3 -3
View File
@@ -27,18 +27,18 @@
{if $status == 'ok'} {if $status == 'ok'}
<p>{l s='Your order on' mod='moneybookers'} <span class="bold">{$shop_name}</span> {l s='is complete.' mod='moneybookers'} <p>{l s='Your order on' mod='moneybookers'} <span class="bold">{$shop_name}</span> {l s='is complete.' mod='moneybookers'}
<br /><br /><span class="bold">{l s='Your order will be shipped as soon as possible.' mod='moneybookers'}</span> <br /><br /><span class="bold">{l s='Your order will be shipped as soon as possible.' mod='moneybookers'}</span>
<br /><br />{l s='For any questions or for further information, please contact our' mod='moneybookers'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='moneybookers'}</a>. <br /><br />{l s='For any questions or for further information, please contact our' mod='moneybookers'} <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='moneybookers'}</a>.
</p> </p>
{else} {else}
{if $status == 'pending'} {if $status == 'pending'}
<p>{l s='Your order on' mod='moneybookers'} <span class="bold">{$shop_name}</span> {l s='is pending.' mod='moneybookers'} <p>{l s='Your order on' mod='moneybookers'} <span class="bold">{$shop_name}</span> {l s='is pending.' mod='moneybookers'}
<br /><br /><span class="bold">{l s='Your order will be shipped as soon as we receive your bankwire.' mod='moneybookers'}</span> <br /><br /><span class="bold">{l s='Your order will be shipped as soon as we receive your bankwire.' mod='moneybookers'}</span>
<br /><br />{l s='For any questions or for further information, please contact our' mod='moneybookers'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='moneybookers'}</a>. <br /><br />{l s='For any questions or for further information, please contact our' mod='moneybookers'} <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='moneybookers'}</a>.
</p> </p>
{else} {else}
<p class="warning"> <p class="warning">
{l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='moneybookers'} {l s='We noticed a problem with your order. If you think this is an error, you can contact our' mod='moneybookers'}
<a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='moneybookers'}</a>. <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='moneybookers'}</a>.
</p> </p>
{/if} {/if}
{/if} {/if}
+1
View File
@@ -8,4 +8,5 @@
<tab>payments_gateways</tab> <tab>payments_gateways</tab>
<is_configurable>1</is_configurable> <is_configurable>1</is_configurable>
<need_instance>1</need_instance> <need_instance>1</need_instance>
<limited_countries></limited_countries>
</module> </module>
+1 -1
View File
@@ -39,7 +39,7 @@ $smarty->assign(array(
'id_module' => $id_module, 'id_module' => $id_module,
'id_cart' => $id_cart, 'id_cart' => $id_cart,
'key' => $key, 'key' => $key,
'ogone_link' => (method_exists($link, 'getPageLink') ? $link->getPageLink('my-account.php') : _PS_BASE_URL_.'my-account.php') 'ogone_link' => (method_exists($link, 'getPageLink') ? $link->getPageLink('my-account') : _PS_BASE_URL_.'my-account')
)); ));
echo $ogone->display(__FILE__, 'waiting.tpl'); echo $ogone->display(__FILE__, 'waiting.tpl');
+1 -1
View File
@@ -186,7 +186,7 @@ class Ogone extends PaymentModule
else else
$smarty->assign('status', 'failed'); $smarty->assign('status', 'failed');
$link = new Link(); $link = new Link();
$smarty->assign('ogone_link', (method_exists($link, 'getPageLink') ? $link->getPageLink('contact-form.php', true) : Tools::getHttpHost(true).'contact-form.php')); $smarty->assign('ogone_link', (method_exists($link, 'getPageLink') ? $link->getPageLink('contact-form', true) : Tools::getHttpHost(true).'contact-form'));
return $this->display(__FILE__, 'hookorderconfirmation.tpl'); return $this->display(__FILE__, 'hookorderconfirmation.tpl');
} }
+2 -2
View File
@@ -24,7 +24,7 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
{capture name=path}<a href="{$link->getPageLink('order.php', true)}">{l s='Your shopping cart' mod='paypal'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='PayPal' mod='paypal'}{/capture} {capture name=path}<a href="{$link->getPageLink('order', true)}">{l s='Your shopping cart' mod='paypal'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='PayPal' mod='paypal'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='Order summary' mod='paypal'}</h2> <h2>{l s='Order summary' mod='paypal'}</h2>
@@ -54,7 +54,7 @@
<b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='paypal'}.</b> <b>{l s='Please confirm your order by clicking \'I confirm my order\'' mod='paypal'}.</b>
</p> </p>
<p class="cart_navigation"> <p class="cart_navigation">
<a href="{$link->getPageLink('order.php', true)}?step=3" class="button_large">{l s='Other payment methods' mod='paypal'}</a> <a href="{$link->getPageLink('order', true)}?step=3" class="button_large">{l s='Other payment methods' mod='paypal'}</a>
<input type="submit" name="submitPayment" value="{l s='I confirm my order' mod='paypal'}" class="exclusive_large" /> <input type="submit" name="submitPayment" value="{l s='I confirm my order' mod='paypal'}" class="exclusive_large" />
</p> </p>
</form> </form>
+1 -1
View File
@@ -28,5 +28,5 @@
<br /><br /> <br /><br />
{l s='You have chosen the PayPal method.' mod='paypal'} {l s='You have chosen the PayPal method.' mod='paypal'}
<br /><br /><span class="bold">{l s='Your order will be sent very soon.' mod='paypal'}</span> <br /><br /><span class="bold">{l s='Your order will be sent very soon.' mod='paypal'}</span>
<br /><br />{l s='For any questions or for further information, please contact our' mod='paypal'} <a href="{$link->getPageLink('contact-form.php', true)}">{l s='customer support' mod='paypal'}</a>. <br /><br />{l s='For any questions or for further information, please contact our' mod='paypal'} <a href="{$link->getPageLink('contact-form', true)}">{l s='customer support' mod='paypal'}</a>.
</p> </p>
+1 -1
View File
@@ -24,7 +24,7 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
{capture name=path}<a href="{$link->getPageLink('order.php', true)}">{l s='Your shopping cart' mod='paypal'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='PayPal' mod='paypal'}{/capture} {capture name=path}<a href="{$link->getPageLink('order', true)}">{l s='Your shopping cart' mod='paypal'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='PayPal' mod='paypal'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{$message}</h2> <h2>{$message}</h2>
+1 -1
View File
@@ -47,6 +47,6 @@
<input type="hidden" name="payerID" value="{$payerID|escape:'htmlall'|stripslashes}" /> <input type="hidden" name="payerID" value="{$payerID|escape:'htmlall'|stripslashes}" />
<input type="submit" id="submitLogin" name="submitLogin" class="button" value="{l s='Log in' mod='paypal'}" /> <input type="submit" id="submitLogin" name="submitLogin" class="button" value="{l s='Log in' mod='paypal'}" />
</p> </p>
<p class="lost_password center"><a href="{$link->getPageLink('password.php')}">{l s='Forgot your password?' mod='paypal'}</a></p> <p class="lost_password center"><a href="{$link->getPageLink('password')}">{l s='Forgot your password?' mod='paypal'}</a></p>
</fieldset> </fieldset>
</form> </form>
+1 -1
View File
@@ -88,7 +88,7 @@ function displayProcess($payerID)
$cookie->paypal_token = strval($cookie->paypal_token); $cookie->paypal_token = strval($cookie->paypal_token);
$cookie->paypal_payer_id = $payerID; $cookie->paypal_payer_id = $payerID;
Tools::redirect('order.php?step=1&back=paypal'); Tools::redirect('index.php/order?step=1&back=paypal');
} }
function displayConfirm() function displayConfirm()
+3 -3
View File
@@ -31,11 +31,11 @@ include(dirname(__FILE__).'/paysafecard.php');
$module = new PaysafeCard(); $module = new PaysafeCard();
if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active) if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active)
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$currency = new Currency($cart->id_currency); $currency = new Currency($cart->id_currency);
if (!$module->isCurrencyActive($currency->iso_code)) if (!$module->isCurrencyActive($currency->iso_code))
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$amount = number_format((float)($cart->getOrderTotal(true, Cart::BOTH)), 2, '.',''); $amount = number_format((float)($cart->getOrderTotal(true, Cart::BOTH)), 2, '.','');
if (Tools::getValue('hash') != md5(Configuration::get($module->prefix.'SALT') + $amount + $currency->iso_code)) if (Tools::getValue('hash') != md5(Configuration::get($module->prefix.'SALT') + $amount + $currency->iso_code))
@@ -95,7 +95,7 @@ if ($state == _PS_OS_ERROR_)
else else
{ {
$order = new Order($module->currentOrder); $order = new Order($module->currentOrder);
Tools::redirect('order-confirmation.php?id_cart='.(int)($cart->id).'&id_module='.(int)($module->id).'&id_order='.(int)($module->currentOrder).'&key='.$order->secure_key); Tools::redirect('index.php/order-confirmation?id_cart='.(int)($cart->id).'&id_module='.(int)($module->id).'&id_order='.(int)($module->currentOrder).'&key='.$order->secure_key);
} }
+2 -2
View File
@@ -31,11 +31,11 @@ include(dirname(__FILE__).'/paysafecard.php');
$module = new PaysafeCard(); $module = new PaysafeCard();
if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active) if (!$cart->id OR $cart->id_customer == 0 OR $cart->id_address_delivery == 0 OR $cart->id_address_invoice == 0 OR !$module->active)
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$currency = new Currency($cart->id_currency); $currency = new Currency($cart->id_currency);
if (!$module->isCurrencyActive($currency->iso_code)) if (!$module->isCurrencyActive($currency->iso_code))
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
$result = $module->createDisposition($cart); $result = $module->createDisposition($cart);
@@ -33,7 +33,7 @@ require_once(dirname(__FILE__).'/../../init.php');
include_once(dirname(__FILE__).'/ReferralProgramModule.php'); include_once(dirname(__FILE__).'/ReferralProgramModule.php');
if (!$cookie->isLogged()) if (!$cookie->isLogged())
Tools::redirect('authentication.php?back=modules/referralprogram/referralprogram-program.php'); Tools::redirect('index.php/authentication?back=modules/referralprogram/referralprogram-program.php');
Tools::addCSS(_PS_CSS_DIR_.'thickbox.css', 'all'); Tools::addCSS(_PS_CSS_DIR_.'thickbox.css', 'all');
Tools::addJS(array(_PS_JS_DIR_.'jquery/thickbox-modified.js',_PS_JS_DIR_.'jquery/jquery.idTabs.modified.js')); Tools::addJS(array(_PS_JS_DIR_.'jquery/thickbox-modified.js',_PS_JS_DIR_.'jquery/jquery.idTabs.modified.js'));
@@ -38,7 +38,7 @@
//]]> //]]>
</script> </script>
{capture name=path}<a href="{$link->getPageLink('my-account.php', true)}">{l s='My account' mod='referralprogram'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Referral Program' mod='referralprogram'}{/capture} {capture name=path}<a href="{$link->getPageLink('my-account', true)}">{l s='My account' mod='referralprogram'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Referral Program' mod='referralprogram'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./breadcrumb.tpl"}
<h2>{l s='Referral program' mod='referralprogram'}</h2> <h2>{l s='Referral program' mod='referralprogram'}</h2>
@@ -218,6 +218,6 @@
</div> </div>
<ul class="footer_links"> <ul class="footer_links">
<li><a href="{$link->getPageLink('my-account.php', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account.php', true)}">{l s='Back to Your Account' mod='referralprogram'}</a></li> <li><a href="{$link->getPageLink('my-account', true)}"><img src="{$img_dir}icon/my-account.gif" alt="" class="icon" /></a><a href="{$link->getPageLink('my-account', true)}">{l s='Back to Your Account' mod='referralprogram'}</a></li>
<li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir_ssl}">{l s='Home' mod='referralprogram'}</a></li> <li><a href="{$base_dir}"><img src="{$img_dir}icon/home.gif" alt="" class="icon" /></a><a href="{$base_dir_ssl}">{l s='Home' mod='referralprogram'}</a></li>
</ul> </ul>
+1 -1
View File
@@ -63,7 +63,7 @@ if (isset($return['SIGNATURE']) AND isset($return['CENAME']) AND isset($return['
if (!$cart->update()) if (!$cart->update())
Tools::redirect(); Tools::redirect();
else else
Tools::redirect('order.php?step=3'); Tools::redirect('index.php/order?step=3');
} }
else else
echo '<div class="alert error"><img src="' . _PS_IMG_ . 'admin/forbbiden.gif" alt="nok" />&nbsp;'.$so->displaySoError('999').' echo '<div class="alert error"><img src="' . _PS_IMG_ . 'admin/forbbiden.gif" alt="nok" />&nbsp;'.$so->displaySoError('999').'
+1 -1
View File
@@ -31,7 +31,7 @@ include(dirname(__FILE__).'/trackingfront.php');
$tf = new TrackingFront(); $tf = new TrackingFront();
if (!$tf->active) if (!$tf->active)
Tools::redirect('404.php'); Tools::redirect('index.php/404');
$tf->postProcess(); $tf->postProcess();
echo $tf->isLogged() ? $tf->displayAccount() : $tf->displayLogin(); echo $tf->isLogged() ? $tf->displayAccount() : $tf->displayLogin();
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('MyAccountController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/my-account'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('NewProductsController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/new-products'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderConfirmationController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order-confirmation'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderDetailController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order-detail'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderFollowController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order-follow'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderOpcController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order-opc'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderReturnController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order-return'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderSlipController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order-slip'.$params);
+12 -1
View File
@@ -26,4 +26,15 @@
*/ */
require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/config/config.inc.php');
ControllerFactory::getController('OrderController')->run(); Tools::displayFileAsDeprecated();
// init front controller in order to use Tools::redirect
$controller = new FrontController();
$controller->init();
$params = $_SERVER['QUERY_STRING'];
if (!empty($params))
$params = '?'.$params;
Tools::redirect('index.php/order'.$params);
Loaded 100 of 140 files, more files were not shown because too many files have changed in this diff. Show more