View Single Post
  #5  
Old 10-04-2004, 12:55 PM
 
ian_fs ian_fs is offline
 

Advanced Member
  
Join Date: Apr 2004
Location: Norwich, UK
Posts: 86
 

Default

Well I am going round in huge circles here, I believe I have worked out what position and the location things do. And they dont do what I want.

The moethod you suggested more or less means I will need about 100 or more of these:-

if $cat eq "2" or $cat "3" bla bla

I cannot get it to recognise the root category of a product or a subcategory, may be what you suggested would do this but I just cannot figure it out. Surely it must be possible with that location variable to say select the second category to use that for the style, but I cannot get it to do that.

I did manage (messed around with the categories thing) to do location[1].2 and so fourth so it selected the second or third or fourth location down and use that for the hyperlink of all the location variables. So obvioulsy you can select a location, but to apply that to change stylesheet seem terribly confusing to me. Plus you need to be able to distinguish between different root categories. Maybe that is what you meant by location[1].1 eq whatever but I am unsure what I am supposed to put instead of the whatever. I have tried many things, managing to break x-cart and confuse it completely.

A nice example explaining how location[1].1 etc works would be good.

I am now confused and feeling far more ill than when I started,

And if anyone reads this will probably think I am bonkers more or less talking in a thread to myself.
__________________
X-Cart 4.0.17
Reply With Quote