// merge 1.4 => 6117
This commit is contained in:
@@ -251,8 +251,8 @@ if (!$params['category']->active)
|
||||
break;
|
||||
case 'id_attribute_group':
|
||||
$queryFilters .= ' AND p.id_product IN ( SELECT pa.`id_product`
|
||||
FROM `ps_product_attribute_combination` pac
|
||||
LEFT JOIN `ps_product_attribute` pa
|
||||
FROM `'._DB_PREFIX_.'product_attribute_combination` pac
|
||||
LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa
|
||||
ON (pa.`id_product_attribute` = pac.`id_product_attribute`) WHERE ';
|
||||
|
||||
foreach ($filterValues AS $filterValue)
|
||||
@@ -260,10 +260,10 @@ if (!$params['category']->active)
|
||||
$queryFilters = rtrim($queryFilters, 'OR ').')';
|
||||
break;
|
||||
case 'category':
|
||||
$parent = new category($id_parent);
|
||||
$parent = new Category($id_parent);
|
||||
if (!sizeof($selectedFilters['category']))
|
||||
$queryFilters .= ' AND p.id_product IN ( SELECT id_product FROM '._DB_PREFIX_.'category_product cp
|
||||
LEFT JOIN ps_category c ON (c.id_category = cp.id_category)
|
||||
LEFT JOIN '._DB_PREFIX_.'category c ON (c.id_category = cp.id_category)
|
||||
WHERE 1 AND c.nleft >= parent->nleft AND c.nright <= parent->nright';
|
||||
else
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ class BlockSearch extends Module
|
||||
{
|
||||
global $smarty;
|
||||
$smarty->assign('ENT_QUOTES', ENT_QUOTES);
|
||||
$smarty->assign('search_ssl', (int)(isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'));
|
||||
$smarty->assign('search_ssl', (int)(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'));
|
||||
|
||||
$ajaxSearch=(int)(Configuration::get('PS_SEARCH_AJAX'));
|
||||
$smarty->assign('ajaxsearch', $ajaxSearch);
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
require_once(dirname(__FILE__).'/../../config/config.inc.php');
|
||||
require_once(dirname(__FILE__).'/../../init.php');
|
||||
require_once(dirname(__FILE__).'/WishList.php');
|
||||
require_once(dirname(__FILE__).'/blockwishlist.php');
|
||||
|
||||
$errors = array();
|
||||
|
||||
@@ -53,7 +54,8 @@ if ($cookie->isLogged())
|
||||
if(!isset($cookie->id_wishlist) OR $cookie->id_wishlist == '')
|
||||
{
|
||||
$wishlist = new WishList();
|
||||
$wishlist->name = 'My WishList';
|
||||
$modWishlist = new BlockWishList();
|
||||
$wishlist->name = $modWishlist->l('My wishlist');
|
||||
$wishlist->id_customer = (int)($cookie->id_customer);
|
||||
list($us, $s) = explode(' ', microtime());
|
||||
srand($s * $us);
|
||||
|
||||
@@ -10,6 +10,7 @@ $_MODULE['<{blockwishlist}prestashop>blockwishlist-ajax_09dc02ecbb078868a3a86dde
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist-extra_15b94c64c4d5a4f7172e5347a36b94fd'] = 'Ajouter à ma liste';
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist_2715a65604e1af3d6933b61704865daf'] = 'Bloc liste de cadeaux';
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist_7244141a5de030c4c882556f4fd70a8b'] = 'Ajoute un bloc gérant les listes de cadeaux';
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist_4840f4437f55e68a587d358090b948d1'] = 'Ma liste de cadeaux';
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist_5ef2d617096ae7b47a83f3d4de9c84bd'] = 'Choix invalide pour l\'activation du module';
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist_f4d1ea475eaa85102e2b4e6d95da84bd'] = 'Confirmation';
|
||||
$_MODULE['<{blockwishlist}prestashop>blockwishlist_c888438d14855d7d96a2724ee9c306bd'] = 'Paramètres enregistrés';
|
||||
|
||||
@@ -80,7 +80,7 @@ class Treepodia extends Module
|
||||
|
||||
private function _getShopURL()
|
||||
{
|
||||
return ((Configuration::get('PS_SSL_ENABLED') OR (isset($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) != 'off')) ? Tools::getShopDomainSsl() : Tools::getShopDomain()).__PS_BASE_URI__;
|
||||
return ((Configuration::get('PS_SSL_ENABLED') OR (!empty($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) != 'off')) ? Tools::getShopDomainSsl() : Tools::getShopDomain()).__PS_BASE_URI__;
|
||||
}
|
||||
|
||||
public function generateXmlFlow()
|
||||
|
||||
Reference in New Issue
Block a user