View Single Post
  #6  
Old 02-04-2021, 12:05 PM
 
bionuts bionuts is online now
 

Advanced Member
  
Join Date: Oct 2008
Location: At my desk, probably scratching my head over an X Cart problem....
Posts: 82
 

Default Re: Showing only certain categories in the sidebar / adding a second categories box

Hi,

Yes, all the categories are at root level.

If I use a statement such as:

Code:
{% if this._category.id < '40' %} [where category ids below 40 are the ones I want to show] <p>a test to see if this works</p> {% endif %}

then I can get the result I'm looking for. If I use

Code:
{% if this._pos < '200' %} [where categories with a position of less than 200 are the ones I want to show] <p>a test to see if this works</p> {% endif %}

then it doesn't work.

As most of my programming experience stems from Sinclair Basic waaaay back in the day, I think it's probably a lack of understanding of the correct syntax to use, so any tips are gratefully received.
__________________
Currently transitioning to X-Cart 5.4.x.x. Oh the joy
Reply With Quote