Jump to content

Blocknavigation (6 blocks in 1) v. [0.5] 0.6


vinoalvino
 Share

Recommended Posts

Hi,
I was searching for some space in my pages,
so I compacted some modules standard and other that I made:
I made a navigation module compact with:
1) Search (optional autocomplete)
2) Categories structurated from the bo
3) Active manufactures
4) Active supplier
5) Tags
6) Cms documents

In FO all is show with combo-box

In the BO (see picture) you can choose what you can validate in fo.


Note: It's better to remove the original blocks if you activate inside

Version 0.6:
I add options:
Show with products only
Show number of products

Sorry for my english!

4777_cQvWKan5rTr8jmWlpnar_t

4778_GBISSZAP498XT04yaFUJ_t

blocknavigation_06.zip

  • Like 3

Share this post


Link to post
Share on other sites

BUG?

If you choose from the option Categorie part of this great module Home and lets say the Laptops you cannot choose Home again because it already went back to home.
So the customer can only choose another part of your category but never Home.
I find this not user friendly and I think it should stay on the one you have choosen.
Any chance on fixing this?

Same goes for Manufacturers, Suppliers etc.

Thanks!

Share this post


Link to post
Share on other sites

in blocknavigation.tpl:

<!-- Navigation: categories -->
   {foreach from=$cat_sel item=sel}
       {assign var=n value=0}
       {foreach from=$sel item=opt}
       {if $n==0}

{$opt.name}
       {assign var=n value=1}
       {else}
{$opt.name}{if $cat_num==1} ({$opt.products}){/if}
       {/if}
       {/foreach}

   {/foreach}
<!-- /Navigation: categories -->



to

<!-- Navigation: categories -->
   {foreach from=$cat_sel item=sel}
       {assign var=n value=0}

       {foreach from=$sel item=opt}
{$opt.name}{if $cat_num==1} ({$opt.products}){/if}
       {/foreach}

   {/foreach}
<!-- /Navigation: categories -->



I not try but ... try it :smirk:

Share this post


Link to post
Share on other sites

  • 2 months later...
  • 1 month later...

Hi Vinoalvino

Thanks for sharing:-)

I´d like to know if the last version of that nice mod is full compatible with Presta 1.2.1 alfa.

Trying to install It on my local test server I have some errors:

Warning: require_once() [function.require-once]: Unable to access F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\htdocs\multishop\config/../classes/ZipArchive.php in F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\htdocs\multishop\config\config.inc.php on line 20

Warning: require_once(F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\htdocs\multishop\config/../classes/ZipArchive.php) [function.require-once]: failed to open stream: Result too large in F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\htdocs\multishop\config\config.inc.php on line 20

Fatal error: require_once() [function.require]: Failed opening required 'F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\htdocs\multishop\config/../classes/ZipArchive.php' (include_path='.;F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\server\php\PEAR') in F:\OpenSource\prestashop\server2go_a2_psm\distribute_apache2.0\htdocs\multishop\config\config.inc.php on line 20


and my blocks tab got broken, I had to uninstall the mod.

Thank you very much.

Share this post


Link to post
Share on other sites

  • 4 weeks later...

Hi

2 another questions :

1- Is it possible to have the parent's category name linkable ?
2- Is it possible to have the sum of ALL the products in categories and ALL subcategories ?

<!-- Navigation: categories -->
   {foreach from=$cat_sel item=sel}
       {assign var=n value=0}
       {foreach from=$sel item=opt}
       {if $n==0}


{$opt.name}
----------> linkable to the {$opt.name} category


       {assign var=n value=1}
       {else}

{$opt.name}{if $cat_num==1} ({$opt.products}){/if}
-------------------> sum of all products in category+all subcategories

       {/if}
       {/foreach}

   {/foreach}
<!-- /Navigation: categories -->
   {/if}




Thanks again for your great job !

Share this post


Link to post
Share on other sites

  • 1 year later...
  • 1 year later...
  • 3 months later...

Hello,

 

I use this very usefull module which solved my problem. Thanks ...

However is there a way to display the items from a category in alphabetical order rather than in ID order ?

 

Thanks for any answer.

 

Regards

Share this post


Link to post
Share on other sites

  • 5 weeks later...

I have installed (works fine) on a site running PS 1.4.8 here: www.encre-imprimante.net

I have not tried with 1.5.?

 

Nice module as i said but it lists categories by their IDs and I need this module which would list the categories in alphabetical order...

Because when you add a category it's listed by the end of the list even if the name should be listed by the beginning of the list.

Share this post


Link to post
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 7 months later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More