Hey guys, with the Products module, i'm trying to display the hierarchy image in the summary template.
I basically wish to have the hierarchy image on top of the products.
Help is very much apriciated.
Thanks,
M
Products Module Summary Template + hierarchy image
-
- Forum Members
- Posts: 24
- Joined: Wed Jun 18, 2008 1:25 am
Re: Products Module Summary Template + hierarchy image
I have the same question, but I'm trying to get the corresponding hierarchy image within the Products detail template.
Re: Products Module Summary Template + hierarchy image
You can make module Smarty calls within the templates i.e. {Products action=hierarchy etc etc} can be used in another Products template.
-
- Forum Members
- Posts: 24
- Joined: Wed Jun 18, 2008 1:25 am
Re: Products Module Summary Template + hierarchy image
Thanks! I'm still having trouble displaying ONLY the image that pertains to the hierarchy of the current item. Here's what I've tried so far:
{Products action='hierarchy' hierarchy='name'}
{Products action='hierarchy' parent='$entry->hierarchy_id'}
Both return the full list of hierarchy items, rather than the one specific to the current product being viewed.
{Products action='hierarchy' hierarchy='name'}
{Products action='hierarchy' parent='$entry->hierarchy_id'}
Both return the full list of hierarchy items, rather than the one specific to the current product being viewed.
-
- Forum Members
- Posts: 24
- Joined: Wed Jun 18, 2008 1:25 am
Re: Products Module Summary Template + hierarchy image
FANTASTIC STUFF! Thanks for taking the time to figure things out and share your findings with others - Very helpful!
Here's the code I ended up using:
{assign var='get_hierarchy_info' value=$Products->GetHierarchyInfo($entry->hierarchy_id)}
<img src="{$hierarchy_image_location}/{$get_hierarchy_info.image}">
Here's the code I ended up using:
{assign var='get_hierarchy_info' value=$Products->GetHierarchyInfo($entry->hierarchy_id)}
<img src="{$hierarchy_image_location}/{$get_hierarchy_info.image}">