rob84
Members-
Posts
84 -
Joined
-
Last visited
rob84's Achievements
Newbie (1/14)
3
Reputation
-
Hello. I need a good module for block categories, that allow me to show only the category and sub categories when navigate inside it. Example here: https://www.amazon.com/s/ref=lp_511228_nr_n_2?fst=as%3Aoff&rh=n%3A228013%2Cn%3A%21468240%2Cn%3A511228%2Cn%3A3755001&bbn=511228&ie=UTF8&qid=1508005231&rnid=511228 See attachment. In the red circle you will see the sub categories nested with left arrow to go to up level. Thanks.
-
If you like, I attach the file I created. You can adapt and use it if you want If you need the EPS feel free to ask. I cannot attach EPS there, I can send it. Roberto.
-
Good impact. Maybe the logo on black background isn't the best choice. Try something more simple, if you like it See screenshot.
-
Module Block Categories - show only subcategories of selected category
rob84 replied to rob84's topic in Core developers
It seems no one knows.... -
Hello. I'm trying to get only subcategories of selected category. I have this code in category-tree-branch.tpl {foreach $node.id as $value} {if $value == $currentCategoryId} <li> <a id="cat-{$node.id}" href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'} <span class="numbers-prod-count">({$node.products})</span></a> {if $node.children|@count > 0} <ul> {foreach from=$node.children item=child name=categoryTreeBranch} {include file=$branche_tpl_path_sub node=$child last='false'} {/foreach} </ul> {/if} </li> {break} <li> <a id="cat-{$node.id}" href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'} <span class="numbers-prod-count">({$node.products})</span></a> </li> {/if} {/foreach} I can see right the 3th level subcategory if I click on 2nd level category, but i'm unable to see other categories. See screenshots attached. Thank you.
-
If I understood, you can simple select no palette color in product configuration, in this way you will see only a dropdown list for selecting color.
-
Get product's color palettes public name (in product.tpl)
rob84 replied to rob84's topic in Core developers
Anyone ?- 1 reply
-
- color palette
- product.tpl
-
(and 1 more)
Tagged with:
-
Hello. I would like to show the public name of the color palette selected for a product, in product.tpl template. I can only get the id_color_default with {$product->id_color_default} which correspond to id_attribute_group in DB (ps_attribute_group_lang). How to get the public name too ? Thanks.
- 1 reply
-
- color palette
- product.tpl
-
(and 1 more)
Tagged with:
-
[SOLVED] How to show available combinations
rob84 replied to vasikgreif's topic in Addons, modules and themes developers
Hello and thanks rocky for the code, works very good: {if isset($groups)}{strip} {l s='The following combinations are unavailable:'} {foreach from=$combinations key=idCombination item=combination} {if $combination.quantity == 0} {assign var=attributes value=','|explode:$combination.list} {foreach from=$groups key=id_attribute_group item=group} {foreach from=$group.attributes key=id_attribute item=group_attribute} {foreach from=$attributes item=attribute name=attribute} {if $id_attribute == $attribute|substr:1:-1} {$group_attribute}{if !$smarty.foreach.attribute.last}, {/if} {/if} {/foreach} {/foreach} {/foreach} {/if} {/foreach}{/strip}{/if} But how to not show the "{l s='The following combinations are unavailable:'}" if all combinations are available ? With this code the unavailable text appear if there are all combination available too. Thanks ! -
Hello. I'm trying to show only subcategories of selected categories in block categories module. Example of category tree: Main Category 1 (current) - sub 1 - sub 2 - sub 3 - sub 4 - sub 5 This is shown only when i'm in Main Category 1. When selected for example sub 1, the goal is to display only subcategories of sub 1 category and the Main category 1 link: <- Main Category 1 (link) - sub 1 (current) - sub 1-1 - sub 1-2 - sub 1-3 - sub 1-4 If selected the sub 1-1, for example, this one become the "parent" category : <- Main Category 1 (link) <- sub 1 (link) <- sub 1-1 (current) - sub 1-1-1 - sub 1-1-2 - sub 1-1-3 and so on.... I hope that was clear Thanks a lot.
-
Hello. How to show the 2nd and 3th level subcategories in category page ? Example like this: http://www.amazon.com/Laptops-Tablets/b/ref=nav_shopall_lapnet?ie=UTF8&node=2956501011 In the middle page about, you will see "Shop by Category", and "Laptops", "Tablets" and "2 in 1 computers", with all (or limit some) sub categories each one... Thanks
-
PDF invoice attached in email to shipped status - send email to admin too -
rob84 replied to rob84's topic in Core developers
Can be done adding a string in classes/Mail.php just under the line: $message->attach(new Swift_Message_Attachment($factura['content'], $factura['name'], $factura['mime'])); ? Thanks.