Products Mgr hierarchy values to Detail Template (Solved)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Joesurf
Forum Members
Forum Members
Posts: 35
Joined: Wed Apr 01, 2009 11:36 pm
Location: Carlsbad California

Products Mgr hierarchy values to Detail Template (Solved)

Post by Joesurf »

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:

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}&nbsp&nbsp;&nbsp;{$entry->fields.State->value}
  
  </div>

  {* include the cart 
  <div>
  {Cart2 sku=$entry->sku} 
  </div>
  *}

{/foreach}
Detail template functioning for results on same page:

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>
Could use some help passing the output to the page (iframe).
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}
This sends the results to my desired page, it was already available.
detailpage="iframe-hawaii"

Code: Select all

{Products category='Hawaii' detailpage="iframe-hawaii"}
Post Reply

Return to “Modules/Add-Ons”