marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Sortorder.txt bug

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Sortorder.txt bug »
Welcome, Guest. Please Login or Register.
12/16/17 at 22:40:24
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Sortorder.txt bug
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Sortorder.txt bug  (Read 1367 times)
Jason
Gold Dragon
****

Posts: 54




   

Sortorder.txt bug
« on: 10/16/07 at 06:14:57 »
Reply with quote Modify message

I think there is a bug in the sortofer.txt functionality. Here's a working example and this is the code in my sortorder.txt file:

<if 2,7> T-Shirts

Based on my understanding this should display the "T-Shirts" if products 2 and 7 are on this page.

This works fine if there are products on the page but if there are no products, and only additional sub-sections the conditional statement results in true.

Examples:

Works fine here...
http://www.cultclassicts.com/cgi-bin/shirt.cgi/curb_your_enthusiasm_shirt.cultclassicts.3386518+thought-he-was-a-monkey.html

Shows up here even though products 2 and 7 are not on the page...
http://www.cultclassicts.com/cgi-bin/shirt.cgi/curb_your_enthusiasm_shirt
Logged

www.viadesigns.com
Jason
Gold Dragon
****

Posts: 54




   

Re: Sortorder.txt bug
« Reply #1 on: 10/17/07 at 06:41:56 »
Reply with quote Modify message

Sorry for the multiple posts before...my browser was hanging up.  
Logged

www.viadesigns.com
Jason
Gold Dragon
****

Posts: 54




   

Re: Sortorder.txt bug
« Reply #2 on: 10/17/07 at 06:59:14 »
Reply with quote Modify message

Can anyone else confirm if this occurs on their set up as well?
Logged

www.viadesigns.com
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Sortorder.txt bug
« Reply #3 on: 10/17/07 at 10:10:21 »
Reply with quote Modify message

Hey Jason!
I'm not sure but I think it acts funny with a minimal amount of products.  I had similar issues but instead needed to just take certain types out of the line.  For instance.. my "mens" conditional line looks like this
<if 152,155,112,7,106,45,108,126,115,111,2,107,4,38,23,5,101,15,65>

It is weird to be showing on pages with only sections though.
Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
Jason
Gold Dragon
****

Posts: 54




   

Re: Sortorder.txt bug
« Reply #4 on: 10/19/07 at 07:40:30 »
Reply with quote Modify message

Thanks...maybe I will just try some different product id's in my conditional. Do you have this problem with pages that have only sections?
Logged

www.viadesigns.com
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Sortorder.txt bug
« Reply #5 on: 10/20/07 at 01:23:39 »
Reply with quote Modify message

Might've figured this one out.

If your conditionals have spaces between product types, it causes cpshop to act as if the conditional is always true.  EG:

<if 1,2,3> Hello World -- this works as expected, displaying only if product type 1,2 or 3 is present.

<if 1, 2, 3> Hello World -- this displays regardless of whether 1, 2 and 3 are present.

HTH,

p.
« Last Edit: 10/20/07 at 01:29:19 by Hex Angel - Patrick » Logged

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
Jason
Gold Dragon
****

Posts: 54




   

Re: Sortorder.txt bug
« Reply #6 on: 10/28/07 at 15:20:46 »
Reply with quote Modify message

Actually had to do with an href I had on the same line before the conditional. I just moved it after the if and everything worked out...Thanks all!
Logged

www.viadesigns.com
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.