Announcement

Collapse
No announcement yet.

Conditional for Checking Number of Products Set to Diplay per Page

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

    Conditional for Checking Number of Products Set to Diplay per Page

    I set up a "Load More' script on a Category page. So I have the number of products per page set to 100 in the Category Product List Layout. We still want to be able to use the show (XX per Page) feature that changes the intitial number of products on the screen. So I want to write a conditional that is based on the number of products displayed. I tried this: <mvt:if expr="l.settings:category_listing:products_on_page _count GT 16"> but this is basing its count off of the 100 I have set - how can it check for what the user sets: ?Per_Page=32&Sort_By=disp_order.

    #2
    g.per_page

    any time you see Name=some_value in a url (after the ?) the name of the variable is g. + Name and the value is "some_value"

    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

    Working...
    X