Jump to content

shookai

Members
  • Posts

    83
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

shookai's Achievements

Newbie

Newbie (1/14)

0

Reputation

1

Community Answers

  1. Hoping that you can help 😉 Please let me know if you need more information, it's so frustrated to not being able to fix it. Thanks in advance
  2. It did not work ;-/ ("$this->context->smarty->assign($data_template); " works for other hooks ) code of mywishlist.tpl: <script> var baseDir = '{$base_dir|addslashes}'; var static_token = '{$static_token|addslashes}'; var isLogged = true; var advansedwishlist_controller_url = '{$advansedwishlist_controller_url nofilter}'; var mywishlist_url= '{$mywishlist_url nofilter}'; var url_cart = "{$link->getModuleLink('ps_shoppingcart', 'ajax', array(), true)|escape:'html':'UTF-8'}"; {if $advansedwishlistis17 != 1} var ps_ws_version = 'advansedwishlistis16'; {else} var ps_ws_version = 'advansedwishlistis17'; {/if} var single_mode = '{$single_mode}'; </script> <script> function openFeed(evt, feedName) { var i, x, tablinks; x = document.getElementsByClassName("feed"); for (i = 0; i < x.length; i++) { x.style.display = "none"; } tablinks = document.getElementsByClassName("tablink"); for (i = 0; i < x.length; i++) { tablinks.className = tablinks.className.replace("feed_active", ""); } document.getElementById(feedName).style.display = "block"; evt.currentTarget.firstElementChild.className += " feed_active"; } </script> <div id="mywishlist" class="{if $advansedwishlistis17 == 1}mywishlist_17{else}mywishlist_16{/if}"> <div id="nav_feed"> <a href="javascript:void(0)" onclick="openFeed(event, 'SavedFeed');"> <div class="feed_active tablink">Saved Search</div> </a> <a href="javascript:void(0)" onclick="openFeed(event, 'FavouriteFeed');"> <div class=" tablink">Favourite Item</div> </a> <a href="javascript:void(0)" onclick="openFeed(event, 'FavouriteSeller');"> <div class=" tablink">Favourite Seller Item</div> </a> <a href="javascript:void(0)" onclick="openFeed(event, 'RecentlyViewed');"> <div class=" tablink">Recently Viewed</div> </a> </div> <div id="SavedFeed" class="feed" style="display:block"> <h2>Saved Search</h2> {$products_data_list|print_r} {if isset($products_data_list) && count($products_data_list)} {foreach $products_data_list as $product_page_data} <div class="row_feed_{$product_page_data['id_pp_feed_collecter']}"> <div class="clearfix"> <h3 class="pull-left feed_nmu_{$product_page_data['id_pp_feed_collecter']}"> <span>{ucfirst($product_page_data['name'])}</span> <a class="displayFeedNamePopup" href="javascript:;" data-id="{$product_page_data['id_pp_feed_collecter']}" data-name="{ucfirst($product_page_data['name'])}" data-frequency="{$product_page_data['frequency']}" data-toggle="modal" data-target="#updateFeedNameModal"><i class="fa fa-edit"></i></a> </h3> <a href="{$product_page_data['category_url']}" class="btn view_all pull-right" target="_blank">View all ({$product_page_data['products_count']})</a> </div> {if isset($product_page_data['products']) && $product_page_data['products']} <div class="products-list"> <div class="col-md-12"> <div class="row"> {include file="../../../../../themes/ayon/product-list.tpl" products=$product_page_data['products'] wscustomsix=true} </div> </div> </div> {/if} </div> {/foreach} {/if} </div> <div id="FavouriteFeed" class="feed" style="display:none"> <h2>Favourite Item</h2> {if $id_customer|intval neq 0} {if $wishlists} <div id="block-history" class="block-center hidden"> <table class="table table-bordered"> <thead> <tr> <th class="col-xs-2 col-md-2">{l s='Name' mod='advansedwishlist'}</th> <th class="col-xs-1 col-md-1">{l s='Qty' mod='advansedwishlist'}</th> <th class="col-xs-1 col-md-1">{l s='Viewed' mod='advansedwishlist'}</th> <th class="col-xs-2 col-md-2">{l s='Created' mod='advansedwishlist'}</th> {if !$single_mode} <th class="col-xs-2 col-md-2">{l s='Direct Link' mod='advansedwishlist'}</th> <th class="col-xs-2 col-md-2">{l s='Default' mod='advansedwishlist'}</th> <th class="col-xs-2 col-md-2">{l s='Delete' mod='advansedwishlist'}</th> {/if} </tr> </thead> <tbody> {section name=i loop=$wishlists} <tr id="wishlist_{$wishlists.id_wishlist|intval}"> <td class="col-xs-2 col-md-2"> <input type="hidden" value="{$wishlists.id_wishlist|intval}" id="pp_wishlist_id" /> <a id="get_wishlist_{$wishlists.id_wishlist|intval}" href="#" onclick="javascript:event.preventDefault();WishlistManage('ws-block-order-detail', '{$wishlists.id_wishlist|intval}');"> {$wishlists.name|truncate:30:'...'|escape:'htmlall':'UTF-8'} </a> </td> <td class="col-xs-1 col-md-1"> {assign var=n value=0} {foreach from=$nbProducts item=nb name=i} {if $nb.id_wishlist eq $wishlists.id_wishlist} {assign var=n value=$nb.nbProducts|intval} {/if} {/foreach} {if $n} {$n|intval} {else} 0 {/if} </td> <td class="col-xs-1 col-md-1">{$wishlists.counter|intval}</td> <td class="col-xs-2 col-md-2">{$wishlists.date_add|date_format:"%Y-%m-%d"|escape:'htmlall':'UTF-8'}</td> {if !$single_mode} <td class="col-xs-2 col-md-2"> <a href="#" onclick="javascript:event.preventDefault();WishlistManage('ws-block-order-detail', '{$wishlists.id_wishlist|intval}');"> {l s='View' mod='advansedwishlist'} </a> </td> <td class="col-xs-2 col-md-2 wishlist_default"> {if isset($wishlists.default) && $wishlists.default == 1} <p class="is_wish_list_default"> {if $wl_custom_font} <span class="jms-heart-1"></span> {else} {if $advansedwishlistis17 == 1} <i class="material-icons">assignment_turned_in</i> {else} <i class="icon icon-check-square"></i> {/if} {/if} </p> {else} <a href="#" onclick="javascript:event.preventDefault();(WishlistDefault('wishlist_{$wishlists.id_wishlist|intval}', '{$wishlists.id_wishlist|intval}'));"> {if $wl_custom_font} <span class="jms-compare-1"></span> {else} {if $advansedwishlistis17 == 1} <i class="material-icons">check_box_outline_blank</i> {else} <i class="icon icon-square"></i> {/if} {/if} </a> {/if} </td> <td class="col-xs-2 col-md-2 wishlist_delete"> <a class="icon" href="#" onclick="javascript:event.preventDefault();return (WishlistDelete('wishlist_{$wishlists.id_wishlist|intval}', '{$wishlists.id_wishlist|intval}', '{l s='Do you really want to delete this wishlist ?' mod='advansedwishlist' js=1}'));"> {if $wl_custom_font} <span class="jms-arrows-remove-1"></span> {else} {if $advansedwishlistis17 == 1} <i class="material-icons">delete</i> {else} <i class="icon-remove"></i> {/if} {/if} </a> </td> {/if} </tr> {/section} </tbody> </table> </div> <div id="ws-block-order-detail">&nbsp;</div> {else} {if $single_mode} {l s='No products in the list' mod='advansedwishlist'} {/if} {/if} {/if} </div> <div id="FavouriteSeller" class="feed" style="display:none"> <h2>Favourite Seller Item</h2> {if isset($favourite_sellers_products) && $favourite_sellers_products} {foreach $favourite_sellers_products as $sellerData} <div class="seller_row_{$sellerData['id_seller']}"> <div class="clearfix"> <h3 class="pull-left}"> <span>Favourite Seller: {$sellerData['seller_name']}</span> &nbsp;&nbsp;&nbsp;<a class="removeFavSeller" href="javascript:;" data-id="{$sellerData['id_seller']}"><i class="fa fa-trash-o"></i></a> </h3> <a href="{$sellerData['seller_shop']}" class="btn view_all pull-right" target="_blank">View all ({$sellerData['products_count']})</a> </div> {if isset($sellerData['products']) && $sellerData['products']} <div class="products-list"> <div class="col-md-12"> <div class="row"> {include file="../../../../../themes/ayon/product-list.tpl" products=$sellerData['products'] wscustomsix=true} </div> </div> </div> {/if} </div> {/foreach} {/if} </div> <div id="RecentlyViewed" class="feed" style="display:none"> <h2>Recently Viewed</h2> {if isset($most_viewed_products) && $most_viewed_products} <div class="clearfix"> <h3 class="pull-left}"> <span>Most viewed</span> </h3> <a href="{$most_viewed_products['category_url']}" class="btn view_all pull-right" target="_blank">View all ({$most_viewed_products['products_count']})</a> </div> {if isset($most_viewed_products['products']) && $most_viewed_products['products']} <div class="products-list"> <div class="col-md-12"> <div class="row"> {include file="../../../../../themes/ayon/product-list.tpl" products=$most_viewed_products['products'] wscustomsix=true} </div> </div> </div> {/if} {/if} </div> </div> {* <ul class="footer_links clearfix"> <li> <a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"> <span> <i class="icon-chevron-left"></i>{l s='Back to Your Account' mod='advansedwishlist'} </span> </a> </li> <li> <a class="btn btn-default button button-small" href="{$base_dir|escape:'html':'UTF-8'}"> <span> <i class="icon-chevron-left"></i>{l s='Home' mod='advansedwishlist'} </span> </a> </li> </ul> *}
  3. And I have reset the module of course after adding the hook in install function.
  4. Thanks for your help! First of all I have added the PHP file which was not loading in the override of the front controller : include_once(_PS_MODULE_DIR_ .'advansedwishlist/controllers/front/mywishlist.php'); in public function install() of the module I have added $this->registerHook('displayNav') && $this->registerHook('displayHome') && $this->registerHook('displayHomeTabContent'); and public function hookdisplayHome() { $data_template = $this->wishlistBildShortContent(); $this->context->smarty->assign($data_template); return $this->display(__FILE__, 'mywishlist.tpl'); } public function hookdisplayHomeTabContent($params) { // {$link->getModuleLink('advansedwishlist', 'mywishlist', array(), true)|addslashes} $data_template = $this->wishlistBildShortContent(); $this->context->smarty->assign($data_template); console_LOG($data_template); return $this->display(__FILE__, 'mywishlist.tpl'); } I was not sure what was the correct hook, so I added the module to the 2 hooks where modules on the homepage are displayed. The module is showing but all datas from the front controller module are not processed and no datas are showing. Thanks!
  5. Hey there, I have a module that I've hooked on the homepage. The TPL is showing but all datas from the PHP files in controller front are not loaded. Any idea? Thanks!
  6. Hey there, I have a prestashop 1.6.1.6. I'm trying to update pricing of my catalog thru the import tool. With old version of PS, everything went fine, but now it does not work anymore. I dont have any errors, it shows that import worked fine, but the price are not updated. I tried with a very simple CSV file with only 2 rows (headers and 1 row of data) : ID, name, price I deactivated all cache and optimisation on PS parameters. By any chance do you know how to fix this issue ? Thank you for your help. Julien
  7. Hi, Thank you for your help. All what you recommanded has been done already. And i checked your website, it's doesn't work perfectly as well. I have chosen "hochdruck" category with karsher and divers filter + price. When i go to the next page, then i go back, click on a product and then go back to product list, price filter is missing. It's a bug of the module i think. if you have any idea, let me know
  8. Hi all, Im struggling with the block layered module. I choose 3 filters, it works fine but when I go to the next page, sometimes 1 filter is missing (or all). And I can check the filter is missing in the URL as well. But it's very bizarre cause sometimes it works well and sometimes it doesn't... I tried to restore the module, re index the url, delete feature and create new one with new values... many times and im still facing the same issues. http://labellecitadelle.com/242-wine version PS 1.6.1.10 and 2.2.0 for block layered. thx you for your help guys. Julien
  9. Hello everyone, I try to find a solution to filter on the unit price than the retail price. I sell wine by case but I want users to filter products according to the price of the bottle rather than the case. I found the following topic https://www.prestashop.com/forums/topic/276126-block-layered-price-slider-use-unit-price/ but impossible to adapt with my version of PrestaShop ( 1.6 .1.5 ) . And I do not manage to update my files from those proposed by the nice developer who proposed his solution. I would have seem to find where divide my retail price by $ product.unit_price_ratio in layered.php . If anyone can help me ... Thank you for your help. Julien
×
×
  • Create New...