Page 1 of 1

ecommerce Product sort order

Posted: Sun Jul 17, 2011 4:52 pm
by dakels
Hi we need help trying to make the sort order work on our products. You'll have to forgive me I am not a programmer.

CMSMS 1.9.2
Products 2.10.2

Calguy himself made our summary template and while the products show up, the positioning and sort order are all over the place.

http://www.imagesdefined.com/products/byhierarchy/1/17

http://www.imagesdefined.com/collections
This is lined up the way we want it but the left side hierarchy links (which have a different url) don't line up or change order. Editing the Layout/Stylesheet fixed this part but not the hierarchy links which seems to be pulling from a different template or style?

We're trying to understand where the Sort Order is defined for the product summary view. All the products have the sort order defined. We just don't know where the code is defined to lay it out the on the page.

This is our summary page programmed by Calguy a few weeks ago (He was fixing the mess left by the original programmers):

Code: Select all

  {assign var='cghierarchyid' value=$actionparams.hierarchyid}


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

<__script__ type="text/javascript">
//<![CDATA[
{literal}
jQuery(document).ready(function(){
  jQuery('a.fancybox').fancybox();
});
{/literal}
//]]>
</__script>

{foreach from=$items item=entry}
{if $plw != $entry->fields.listing_width->value}
 <div class="clearfix"></div>
{/if}
{assign var=plw value=$entry->fields.listing_width->value}

  <div class="productlist-item {$entry->fields.listing_width->value}">
     <div class="productlist-image"><a class="fancybox" href="{$entry->file_location}/{$entry->fields.productimg1->value}" title="{$entry->product_name}">
       <img src="{$entry->file_location}/{$entry->fields.productimg1->thumbnail}" alt="{$entry->product_name}"/></a>
     </div>
     <div class="productlist-link">
        <a href="{$entry->detail_url}"/>{$entry->product_name}</a>
      </div>
      {if $ccuser->loggedin()}
        {$currency_symbol}{$entry->price}<br/>
      {/if}
      {if $entry->fields.countperpackage->value != ""}
        <div class="productlist-count">
          {$entry->fields.countperpackage->value} Per Package
        </div>
      {/if}
      <div class="productlist-sku">
         Product: {$entry->sku}
      </div>
   </div>
{/foreach}
Thanks!

Re: ecommerce Product sort order

Posted: Tue Jul 19, 2011 2:23 am
by dakels
I wonder if {sortby='f:sortorder'} or some variation has to be added to the summary template? Or Page template?