Products Mgr hierarchy values to Detail Template (Solved)
Posted: Wed Jan 22, 2014 12:37 am
Using Products 2.20.1
CMSms 1.11.9
I am using the products module to list resort timeshares for purchase on a site.
I need the detail template results to appear in a different page to accommodate an iframe view of the resort site.
Summary template functioning:
Detail template functioning for results on same page:
Could use some help passing the output to the page (iframe).
Thank you.
This sends the results to my desired page, it was already available.
detailpage="iframe-hawaii"
CMSms 1.11.9
I am using the products module to list resort timeshares for purchase on a site.
I need the detail template results to appear in a different page to accommodate an iframe view of the resort site.
Summary template functioning:
Code: Select all
{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink} {$pagetext} {$curpage} {$oftext} {$pagecount} {$nextlink} {$lastlink}
{/if}
{foreach from=$items item=entry}
{*
the summary template has access to custom fields via the $entry->fields hash
and to categories via the $entry->categories array of objects. Also
attribute information is available via $entry->attributes.
you should use the get_template_vars and the print_r modifier to see
what is available
*}
<div class="ProductDirectoryItem">
<a href="{$entry->detail_url}">{$entry->product_name}</a><br />{$entry->fields.City->value}  {$entry->fields.State->value}
</div>
{* include the cart
<div>
{Cart2 sku=$entry->sku}
</div>
*}
{/foreach}
Code: Select all
{* this is a sample product detail template *}
{assign var='products' value=$mod}
<div class="ProductDirectoryItem">
{* note: {content} must be called before the hierarchy view is called *}
{if $entry->hierarchy_id > 0}{$active_hierarchy=$entry->hierarchy_id}{/if}
{if is_array($entry->breadcrumb)}
Breadcrumb: {' >> '|implode:$entry->breadcrumb}<br/>
{/if}
<div >
<__iframe style="width: 977px; margin-right: 0px; border: 0px;" src="{$entry->fields.Link->value}" height="1200"></__iframe>
</div>
Thank you.
Code: Select all
{* this is a sample product detail template *}
{assign var='products' value=$mod}
<div class="ProductDirectoryItem">
{* note: {content} must be called before the hierarchy view is called *}
{if $entry->hierarchy_id > 0}{$active_hierarchy=$entry->hierarchy_id}{/if}
{if is_array($entry->breadcrumb)}
Breadcrumb: {' >> '|implode:$entry->breadcrumb}<br/>
{/if}
{redirect_page page='iframe'}{$entry->fields.Link->value}
detailpage="iframe-hawaii"
Code: Select all
{Products category='Hawaii' detailpage="iframe-hawaii"}