Announcement

Collapse
No announcement yet.

total number of products in a readytheme category

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    total number of products in a readytheme category

    Is there a way to show the total number of products in a readytheme category?

    This only works on the actual category page:

    l.settings:category_listing:total_prod_count &mvt:category_listing:total_prod_count;

    I've tried revamping this but no luck.

    #2
    Code:
    <mvt:assign name="g.productCount" value="miva_array_max(l.settings:name:of:array:being:used)"/>
    <p>Product Count: &mvt:global:productCount;</p>
    So, for: <mvt:foreach iterator="product" array="readytheme:products">

    You'd use
    Code:
    <mvt:assign name="g.productCount" value="miva_array_max(l.settings:readytheme:products)"/>
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Awesome! Thanks Bruce. That did it.

      One more question. I am using this code:
      <mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code(l.settings:readytheme:pr oductlisting:prod_cat, l.settings:current_category )" />
      <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_ProductList_Load_Offset_Category( l.settings:current_category:id, g.Offset,100 , g.NextOffset, l.settings:products )" />
      <mvt:assign name="g.productCount" value="miva_array_max(l.settings:products)"/>
      So, if the category has more than 100 products, it shows only 100 products because of the number (100) in between the offsets. I know I can make this a higher number, but is there a way to not use the offsets?

      Comment

      Working...
      X