CMS MADE SIMPLE FORGE

Products

 

[#11546] Products single view page template code

avatar
Created By: Sudhanshu Shekhar Ratnesh (ssratnesh)
Date Submitted: 2017-08-23 10:32

Assigned To:
Resolution: Invalid
State: Closed
Summary:
Products single view page template code
Detailed Description:
I'm create single product view page template with this code But it not working.
Let me know what is wrong in this code.

{if isset($pagecount) && $pagecount gt 1}
{$firstlink} {$prevlink}  {$pagetext} {$curpage} {$oftext}
{$pagecount}  {$nextlink} {$lastlink}
{/if}

{foreach $items as $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>&nbsp;({$entry->weight}{$weight_units})&nbsp;&nbsp;{$currency_symbol}{$entry->price}
     {if isset($entry->categories)}
       Categories:&nbsp;
       {foreach from=$entry->categories item='category'}
         {$category->name},&nbsp;
       {/foreach}
       <br/>
     {/if}
  </div>

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

{/foreach}

History

Comments
avatar
Date: 2017-08-23 10:41
Posted By: Robert Campbell (calguy1000)

We do not provide technical support in this channel.

Not enough information for this to be considered a feature request or a bug
report.
      
Updates

Updated: 2018-01-07 13:06
state: Open => Closed

Updated: 2017-08-23 10:41
resolution_id: => 9