From 3957de6087fc4c398023ef59f315f7f7a8bbba8d Mon Sep 17 00:00:00 2001 From: gBrunier Date: Tue, 9 Aug 2011 16:35:11 +0000 Subject: [PATCH] [+] MO : Adding the favoriteproducts module - Part1 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7978 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/favoriteproducts/FavoriteProduct.php | 115 ++++++++++++++++++ modules/favoriteproducts/config.xml | 12 ++ modules/favoriteproducts/de.php | 4 + modules/favoriteproducts/debug.php | 10 ++ modules/favoriteproducts/en.php | 4 + modules/favoriteproducts/es.php | 4 + .../favoriteproducts-account.php | 48 ++++++++ .../favoriteproducts-account.tpl | 79 ++++++++++++ .../favoriteproducts-ajax.php | 64 ++++++++++ .../favoriteproducts-extra.tpl | 51 ++++++++ modules/favoriteproducts/favoriteproducts.css | 26 ++++ modules/favoriteproducts/favoriteproducts.php | 111 +++++++++++++++++ modules/favoriteproducts/fr.php | 13 ++ modules/favoriteproducts/img/add_favorite.gif | Bin 0 -> 2045 bytes modules/favoriteproducts/index.php | 36 ++++++ modules/favoriteproducts/it.php | 4 + modules/favoriteproducts/logo.gif | Bin 0 -> 2045 bytes modules/favoriteproducts/my-account.tpl | 27 ++++ 18 files changed, 608 insertions(+) create mode 100644 modules/favoriteproducts/FavoriteProduct.php create mode 100644 modules/favoriteproducts/config.xml create mode 100644 modules/favoriteproducts/de.php create mode 100644 modules/favoriteproducts/debug.php create mode 100644 modules/favoriteproducts/en.php create mode 100644 modules/favoriteproducts/es.php create mode 100644 modules/favoriteproducts/favoriteproducts-account.php create mode 100644 modules/favoriteproducts/favoriteproducts-account.tpl create mode 100644 modules/favoriteproducts/favoriteproducts-ajax.php create mode 100644 modules/favoriteproducts/favoriteproducts-extra.tpl create mode 100644 modules/favoriteproducts/favoriteproducts.css create mode 100644 modules/favoriteproducts/favoriteproducts.php create mode 100644 modules/favoriteproducts/fr.php create mode 100644 modules/favoriteproducts/img/add_favorite.gif create mode 100644 modules/favoriteproducts/index.php create mode 100644 modules/favoriteproducts/it.php create mode 100644 modules/favoriteproducts/logo.gif create mode 100644 modules/favoriteproducts/my-account.tpl diff --git a/modules/favoriteproducts/FavoriteProduct.php b/modules/favoriteproducts/FavoriteProduct.php new file mode 100644 index 000000000..96bb2142a --- /dev/null +++ b/modules/favoriteproducts/FavoriteProduct.php @@ -0,0 +1,115 @@ + +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +class FavoriteProduct extends ObjectModel +{ + public $id; + + public $id_product; + + public $id_customer; + + public $id_shop; + + public $date_add; + + public $date_upd; + + protected $fieldRequired = array( + 'id_product', + 'id_customer', + 'id_shop' + ); + + protected $fieldsValidate = array( + 'id_product' => 'isUnsignedInt', + 'id_customer' => 'isUnsignedInt', + 'id_shop' => 'isUnsignedInt' + ); + + protected $table = 'favorite_product'; + + protected $identifier = 'id_favorite_product'; + + public function getFields() + { + parent::validateFields(); + + $fields['id_product'] = (int)$this->id_product; + $fields['id_customer'] = (int)$this->id_customer; + $fields['id_shop'] = (int)$this->id_shop; + + return $fields; + } + + public static function getFavoriteProducts($id_customer, $id_lang, Shop $shop = null) + { + if (!$shop) + $shop = Context::getContext()->shop; + + return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(' + SELECT fp.`id_shop`, p.`id_product`, pl.`description_short`, pl.`link_rewrite`, pl.`name`, i.`id_image`, CONCAT(p.`id_product`, \'-\', i.`id_image`) as image + FROM `'._DB_PREFIX_.'favorite_product` fp + LEFT JOIN `'._DB_PREFIX_.'product` p ON (p.`id_product` = fp.`id_product`) + LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)($id_lang).$shop->sqlLang('pl').') + LEFT OUTER JOIN `'._DB_PREFIX_.'product_attribute` pa ON (p.`id_product` = pa.`id_product` AND `default_on` = 1) + LEFT JOIN `'._DB_PREFIX_.'image` i ON (i.`id_product` = p.`id_product` AND i.`cover` = 1) + LEFT JOIN `'._DB_PREFIX_.'image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = '.(int)($id_lang).') + WHERE p.`active` = 1 + '.$shop->sqlRestriction(false, 'fp')); + } + + public static function getFavoriteProduct($id_customer, $id_product, Shop $shop = null) + { + if (!$shop) + $shop = Context::getContext()->shop; + + $id_favorite_product = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' + SELECT `id_favorite_product` + FROM `'._DB_PREFIX_.'favorite_product` + WHERE `id_customer` = '.(int)($id_customer).' + AND `id_product` = '.(int)($id_product).' + AND `id_shop` = '.(int)($shop->getID())); + + if ($id_favorite_product) + return new FavoriteProduct($id_favorite_product); + return null; + } + + public static function isCustomerFavoriteProduct($id_customer, $id_product, Shop $shop = null) + { + if (!$shop) + $shop = Context::getContext()->shop; + + return (bool)Db::getInstance()->getValue(' + SELECT COUNT(*) + FROM `'._DB_PREFIX_.'favorite_product` + WHERE `id_customer` = '.(int)($id_customer).' + AND `id_product` = '.(int)($id_product).' + AND `id_shop` = '.(int)($shop->getID())); + } +} \ No newline at end of file diff --git a/modules/favoriteproducts/config.xml b/modules/favoriteproducts/config.xml new file mode 100644 index 000000000..153203e56 --- /dev/null +++ b/modules/favoriteproducts/config.xml @@ -0,0 +1,12 @@ + + + favoriteproducts + + + + + + 0 + 0 + + \ No newline at end of file diff --git a/modules/favoriteproducts/de.php b/modules/favoriteproducts/de.php new file mode 100644 index 000000000..601358d4f --- /dev/null +++ b/modules/favoriteproducts/de.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/modules/favoriteproducts/en.php b/modules/favoriteproducts/en.php new file mode 100644 index 000000000..601358d4f --- /dev/null +++ b/modules/favoriteproducts/en.php @@ -0,0 +1,4 @@ + +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +/* SSL Management */ +$useSSL = true; + +require_once(dirname(__FILE__).'/../../config/config.inc.php'); +require_once(dirname(__FILE__).'/../../init.php'); + +require_once(dirname(__FILE__).'/FavoriteProduct.php'); + +if (!Context::getContext()->cookie->isLogged()) + Tools::redirect('authentication.php?back=modules/favoriteproducts/favoriteproducts.php'); + +include(dirname(__FILE__).'/../../header.php'); + +if ((int)Context::getContext()->cookie->id_customer) +{ + $smarty->assign('favoriteProducts', FavoriteProduct::getFavoriteProducts((int)Context::getContext()->cookie->id_customer, (int)Context::getContext()->cookie->id_lang)); + + echo Module::display(dirname(__FILE__).'/favoriteproducts.php', 'favoriteproducts-account.tpl'); +} + +include(dirname(__FILE__).'/../../footer.php'); diff --git a/modules/favoriteproducts/favoriteproducts-account.tpl b/modules/favoriteproducts/favoriteproducts-account.tpl new file mode 100644 index 000000000..291c9402a --- /dev/null +++ b/modules/favoriteproducts/favoriteproducts-account.tpl @@ -0,0 +1,79 @@ +{* +* 2007-2011 PrestaShop +* +* NOTICE OF LICENSE +* +* This source file is subject to the Academic Free License (AFL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/afl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + + + +{capture name=path}{l s='My account' mod='favoriteproducts'}{$navigationPipe}{l s='My favorite products' mod='favoriteproducts'}{/capture} +{include file="$tpl_dir./breadcrumb.tpl"} + +
+

{l s='My favorite products' mod='favoriteproducts'}

+ {if $favoriteProducts} +
+ {foreach from=$favoriteProducts item=favoriteProduct} +
+ +
+

{$favoriteProduct.name}

+

{$favoriteProduct.description_short}

+
+
+ +
+
+ {/foreach} +
+ {else} +

{l s='No favorite products yet.' mod='favoriteproducts'}

+ {/if} + + +
\ No newline at end of file diff --git a/modules/favoriteproducts/favoriteproducts-ajax.php b/modules/favoriteproducts/favoriteproducts-ajax.php new file mode 100644 index 000000000..7febfb5a7 --- /dev/null +++ b/modules/favoriteproducts/favoriteproducts-ajax.php @@ -0,0 +1,64 @@ + +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +require_once(dirname(__FILE__).'/../../config/config.inc.php'); +include(dirname(__FILE__).'/FavoriteProduct.php'); + +if (Tools::getValue('action') AND Tools::getValue('id_product') AND Context::getContext()->cookie->id_customer) +{ + if (Tools::getValue('action') == 'remove') + { + // check if product exists + $product = new Product((int)Tools::getValue('id_product')); + if (!Validate::isLoadedObject($product)) + die('0'); + $favoriteProduct = FavoriteProduct::getFavoriteProduct((int)Context::getContext()->cookie->id_customer, (int)$product->id); + if ($favoriteProduct) + if ($favoriteProduct->delete()) + die('0'); + die('1'); + } + elseif (Tools::getValue('action') == 'add') + { + $product = new Product((int)Tools::getValue('id_product')); + // check if product exists + if (!Validate::isLoadedObject($product) || FavoriteProduct::isCustomerFavoriteProduct((int)Context::getContext()->cookie->id_customer, (int)$product->id)) + die('1'); + $favoriteProduct = new FavoriteProduct(); + $favoriteProduct->id_product = $product->id; + $favoriteProduct->id_customer = (int)Context::getContext()->cookie->id_customer; + $favoriteProduct->id_shop = (int)Context::getContext()->shop->getID(); + if ($favoriteProduct->add()) + die('0'); + die('1'); + } + else + die('1'); +} +else + die('1'); + diff --git a/modules/favoriteproducts/favoriteproducts-extra.tpl b/modules/favoriteproducts/favoriteproducts-extra.tpl new file mode 100644 index 000000000..fd2b818b0 --- /dev/null +++ b/modules/favoriteproducts/favoriteproducts-extra.tpl @@ -0,0 +1,51 @@ +{* +* 2007-2011 PrestaShop +* +* NOTICE OF LICENSE +* +* This source file is subject to the Academic Free License (AFL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/afl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + + + +{if !$isCustomerFavoriteProduct AND $isLogged} +
+ {l s='Add this product to my favorites' mod='favoriteproducts'} +
+{/if} \ No newline at end of file diff --git a/modules/favoriteproducts/favoriteproducts.css b/modules/favoriteproducts/favoriteproducts.css new file mode 100644 index 000000000..dbb89f353 --- /dev/null +++ b/modules/favoriteproducts/favoriteproducts.css @@ -0,0 +1,26 @@ +#favoriteproducts_block_extra span#add_favorites_btn { + cursor: pointer +} + +#favoriteproducts_block_account div.favoriteproduct { + background: none repeat scroll 0 0 #F1F2F4; + border: 1px solid #D0D3D8; + padding: 10px; + margin: 10px 0 +} + +#favoriteproducts_block_account div.favoriteproduct .fl { + float: left +} + +#favoriteproducts_block_account div.favoriteproduct .fr { + float: right +} + +#favoriteproducts_block_account div.favoriteproduct img { + margin: 5px +} + +#favoriteproducts_block_account div.favoriteproduct_description { + width: 350px +} \ No newline at end of file diff --git a/modules/favoriteproducts/favoriteproducts.php b/modules/favoriteproducts/favoriteproducts.php new file mode 100644 index 000000000..21dfb3433 --- /dev/null +++ b/modules/favoriteproducts/favoriteproducts.php @@ -0,0 +1,111 @@ + +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +if (!defined('_CAN_LOAD_FILES_')) + exit; + +class FavoriteProducts extends Module +{ + public function __construct() + { + $this->name = 'favoriteproducts'; + $this->tab = 'front_office_features'; + $this->version = 1.0; + $this->author = 'PrestaShop'; + $this->need_instance = 0; + + parent::__construct(); + + $this->displayName = $this->l('Favorite Products'); + $this->description = $this->l('Display a page with the favorite products of the customer'); + } + + public function install() + { + if (!parent::install() + OR !$this->registerHook('myAccountBlock') + OR !$this->registerHook('extraLeft') + OR !$this->registerHook('header')) + return false; + + if (!Db::getInstance()->Execute(' + CREATE TABLE `'._DB_PREFIX_.'favorite_product` ( + `id_favorite_product` int(10) unsigned NOT NULL auto_increment, + `id_product` int(10) unsigned NOT NULL, + `id_customer` int(10) unsigned NOT NULL, + `id_shop` int(10) unsigned NOT NULL, + `date_add` datetime NOT NULL, + `date_upd` datetime NOT NULL, + PRIMARY KEY (`id_favorite_product`)) + ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8')) + return false; + + return true; + } + + public function uninstall() + { + if (!parent::uninstall() OR !Db::getInstance()->Execute('DROP TABLE `'._DB_PREFIX_.'favorite_product`')) + return false; + return true; + } + + public function hookCustomerAccount($params) + { + include_once(dirname(__FILE__).'/FavoriteProduct.php'); + + $favoriteProducts = FavoriteProduct::getFavoriteProducts((int)$this->context->cookie->id_customer, (int)$this->context->cookie->id_lang); + + $this->context->smarty->assign(array('favorite_products' => $favoriteProducts)); + + return $this->display(__FILE__, 'my-account.tpl'); + } + + public function hookMyAccountBlock($params) + { + return $this->hookCustomerAccount($params); + } + + public function hookExtraLeft($params) + { + include_once(dirname(__FILE__).'/FavoriteProduct.php'); + + $this->context->smarty->assign(array( + 'isCustomerFavoriteProduct' => (FavoriteProduct::isCustomerFavoriteProduct((int)($this->context->cookie->id_customer), Tools::getValue('id_product')) ? 1 : 0), + 'isLogged' => (int)$this->context->cookie->id_customer)); + + return $this->display(__FILE__, 'favoriteproducts-extra.tpl'); + } + + public function hookHeader($params) + { + $this->context->controller->addCSS($this->_path.'favoriteproducts.css', 'all'); + } + +} + + diff --git a/modules/favoriteproducts/fr.php b/modules/favoriteproducts/fr.php new file mode 100644 index 000000000..a7210f458 --- /dev/null +++ b/modules/favoriteproducts/fr.php @@ -0,0 +1,13 @@ +favoriteproducts-account_d95cf4ab2cbf1dfb63f066b50558b07d'] = 'Mon compte'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts-account_a34e0796b9c15d09300f67d972379722'] = 'Mes produits favoris'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts-account_e2233f8a7cec20324ed48bc32ec98a5d'] = 'Vous ne possédez pas de produit favoris pour le moment'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts-account_0b3db27bc15f682e92ff250ebb167d4b'] = 'Retour à votre compte'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts-account_8cf04a9734132302f96da8e113e80ce5'] = 'Accueil'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts-extra_77b65985b439ff157c1c13d63c9dc294'] = 'Ajouter ce produit à mes favoris'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts_c249aeb21294d5e97598462b550e73eb'] = 'Produits Favoris'; +$_MODULE['<{favoriteproducts}prestashop>favoriteproducts_0db149d6f1284b51aa48c72dd1b0e7c6'] = 'Affiche une page avec les produits favoris de l\'utilisateur'; +$_MODULE['<{favoriteproducts}prestashop>my-account_a34e0796b9c15d09300f67d972379722'] = 'Mes produits favoris'; diff --git a/modules/favoriteproducts/img/add_favorite.gif b/modules/favoriteproducts/img/add_favorite.gif new file mode 100644 index 0000000000000000000000000000000000000000..8b0b263f659586f99603d8f76212ce5a215bf2ce GIT binary patch literal 2045 zcmZ?wbhEHb6krfw_}<8{MM-*%qV!%R>7z>0H*enjdh*zxKY#xJ|G!vK>i@rgn;aFE z$V;6+fBx>>yZ?UvII19d6sTBU`rf^Ja|O9}xjXJvmR{*1zeir;@87@YXV2Uq%6m>u z?&5gC!qrgBTArM^A5|KrDxKc7DSdH=5H zxb|K}sXre->`{=IASXFRkb8=#L`$yHwQJX|yI8HaF`pE#kiR&xZ%%jjMfsCD$`{n7 zPiV;fc=hU>tnh<9yZRhlJ{>)D)WUGFg4EytfByaa`QgKde}Dh|`~UaPyEhfPbiZFZ zH))~5k;8|Z536oly5xww#D|+V+Ef&~4<`Ql`@Lkh<^nIp=Kc2PmBh}<3U{p6`uX$c zW*M=+-@a|xw0!%$CSYhYjDi6Q0mc8^5xxNmE{P?HK-$K>q98FjJGDe1DK$Ma&sORE z?)^#%nJKnP;ikR@z6H*y8JQkcMXAA6ej&+K*~ykEO7?aNHWgMCxdpkYC5Z|ZxjA{o zRu#5Ni7EL>sa8NXNLXJ<0j#7X+g8aDB%uJZ(>cE=Rl!uxKsVXI%s|1+P|wiV#N6Cm zN5ROz&_Lh7NZ-&%*U;R`*vQJjKmiJrfVLH-q*(>IxIyg#@@$ndN=gc>^!3Zj%k|2Q z_413-^$jg8EkR}&8R-I5=oVMzl_XZ^<`pZ$OmImpPAf(~1RD^r68eAMwS&*t9 zlvKL-|y0U7xv`NbLe1q#l=rV8Pic`5nj#bDLG zzE+-j#U+V($*G<$wn{+#dYPFiR?cpQj%J1yj?RXbE{2A#2A0m2#%^YgCdLL%2Cl{y zmN308`N^fZsd*(Zy(tL2PB`^~5<+eP&}Ns^qRg_?6t|-MTm`U)tuk@D#R8{!P`xR* z-C~JTuRhQ*`k-h|Gy9x$yJ0TVUj|9^k~{QmXx$MeX-RQWVL^UgZccVqW=48iYD#ia zVnTdeY)o`iWJGvaXh?8SV1U1$uaCEvr-!?ntBbRfql3Mjt&O#nrG>efsfn=>Fhl9- z>S$|eYN)HJswgWdD#**p%1BE|N{EYziUvq{l z7%;SU>K3v&Xgqq@;Gkm4a$-%v!p;U6!FfHAiWj=s7#tdfZZ16FF<*d_MQwqBO2cIa zd7UF3iY#o7mcl0#95y^SA*-9ara)tb(kWhn@NZu#gpaT-;A7!W`JtG~C2XyKt>eJt zV+s-)Rs|a-I4<{_*(ee7!83{B+#G{?uLRDPV+{w4g;vZ-aA;_gR)};H$hg3?@a1JT IW+nz}08YN3O8@`> literal 0 HcmV?d00001 diff --git a/modules/favoriteproducts/index.php b/modules/favoriteproducts/index.php new file mode 100644 index 000000000..4e2611d37 --- /dev/null +++ b/modules/favoriteproducts/index.php @@ -0,0 +1,36 @@ + +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*/ + +header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); +header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); + +header("Cache-Control: no-store, no-cache, must-revalidate"); +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); + +header("Location: ../"); +exit; \ No newline at end of file diff --git a/modules/favoriteproducts/it.php b/modules/favoriteproducts/it.php new file mode 100644 index 000000000..601358d4f --- /dev/null +++ b/modules/favoriteproducts/it.php @@ -0,0 +1,4 @@ +7z>0H*enjdh*zxKY#xJ|G!vK>i@rgn;aFE z$V;6+fBx>>yZ?UvII19d6sTBU`rf^Ja|O9}xjXJvmR{*1zeir;@87@YXV2Uq%6m>u z?&5gC!qrgBTArM^A5|KrDxKc7DSdH=5H zxb|K}sXre->`{=IASXFRkb8=#L`$yHwQJX|yI8HaF`pE#kiR&xZ%%jjMfsCD$`{n7 zPiV;fc=hU>tnh<9yZRhlJ{>)D)WUGFg4EytfByaa`QgKde}Dh|`~UaPyEhfPbiZFZ zH))~5k;8|Z536oly5xww#D|+V+Ef&~4<`Ql`@Lkh<^nIp=Kc2PmBh}<3U{p6`uX$c zW*M=+-@a|xw0!%$CSYhYjDi6Q0mc8^5xxNmE{P?HK-$K>q98FjJGDe1DK$Ma&sORE z?)^#%nJKnP;ikR@z6H*y8JQkcMXAA6ej&+K*~ykEO7?aNHWgMCxdpkYC5Z|ZxjA{o zRu#5Ni7EL>sa8NXNLXJ<0j#7X+g8aDB%uJZ(>cE=Rl!uxKsVXI%s|1+P|wiV#N6Cm zN5ROz&_Lh7NZ-&%*U;R`*vQJjKmiJrfVLH-q*(>IxIyg#@@$ndN=gc>^!3Zj%k|2Q z_413-^$jg8EkR}&8R-I5=oVMzl_XZ^<`pZ$OmImpPAf(~1RD^r68eAMwS&*t9 zlvKL-|y0U7xv`NbLe1q#l=rV8Pic`5nj#bDLG zzE+-j#U+V($*G<$wn{+#dYPFiR?cpQj%J1yj?RXbE{2A#2A0m2#%^YgCdLL%2Cl{y zmN308`N^fZsd*(Zy(tL2PB`^~5<+eP&}Ns^qRg_?6t|-MTm`U)tuk@D#R8{!P`xR* z-C~JTuRhQ*`k-h|Gy9x$yJ0TVUj|9^k~{QmXx$MeX-RQWVL^UgZccVqW=48iYD#ia zVnTdeY)o`iWJGvaXh?8SV1U1$uaCEvr-!?ntBbRfql3Mjt&O#nrG>efsfn=>Fhl9- z>S$|eYN)HJswgWdD#**p%1BE|N{EYziUvq{l z7%;SU>K3v&Xgqq@;Gkm4a$-%v!p;U6!FfHAiWj=s7#tdfZZ16FF<*d_MQwqBO2cIa zd7UF3iY#o7mcl0#95y^SA*-9ara)tb(kWhn@NZu#gpaT-;A7!W`JtG~C2XyKt>eJt zV+s-)Rs|a-I4<{_*(ee7!83{B+#G{?uLRDPV+{w4g;vZ-aA;_gR)};H$hg3?@a1JT IW+nz}08YN3O8@`> literal 0 HcmV?d00001 diff --git a/modules/favoriteproducts/my-account.tpl b/modules/favoriteproducts/my-account.tpl new file mode 100644 index 000000000..78e32989f --- /dev/null +++ b/modules/favoriteproducts/my-account.tpl @@ -0,0 +1,27 @@ +{* +* 2007-2011 PrestaShop +* +* NOTICE OF LICENSE +* +* This source file is subject to the Academic Free License (AFL 3.0) +* that is bundled with this package in the file LICENSE.txt. +* It is also available through the world-wide-web at this URL: +* http://opensource.org/licenses/afl-3.0.php +* If you did not receive a copy of the license and are unable to +* obtain it through the world-wide-web, please send an email +* to license@prestashop.com so we can send you a copy immediately. +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade PrestaShop to newer +* versions in the future. If you wish to customize PrestaShop for your +* needs please refer to http://www.prestashop.com for more information. +* +* @author PrestaShop SA +* @copyright 2007-2011 PrestaShop SA +* @version Release: $Revision$ +* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) +* International Registered Trademark & Property of PrestaShop SA +*} + +
  • {l s='My favorite products' mod='favoriteproducts'}