Jump to content



Custom Boxes Sort order not working


  • Please log in to reply
9 replies to this topic

#1   JakobÆbeløeKjøller

JakobÆbeløeKjøller
  • Members
  • 3 posts

Posted 08 September 2011 - 03:54 PM

Hi

I have create a couple of custom boxes, but my problem is, that the sort order, does not work.

Not even in the old ones, like category or search.

The installed version is:  osCommerce Online Merchant v2.3.1

What can be the problem?

#2   kymation

kymation

    Believers

  • Community Sponsor
  • 7,797 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 08 September 2011 - 05:25 PM

This can happen if you named the constants with the same name in two different modules. Check your new modules for duplicate constants.

Regards
Jim
My Addons

Banners Box 2.3.x  Support Updated!
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Price in Cart Only/MAPP 2.3.x Support New!
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Superfish Categories Box 2.3x Support New!
Theme Switcher 2.3.x  Support

#3   JakobÆbeløeKjøller

JakobÆbeløeKjøller
  • Members
  • 3 posts

Posted 09 September 2011 - 09:47 AM

Tnx. will look at it :)

#4   JakobÆbeløeKjøller

JakobÆbeløeKjøller
  • Members
  • 3 posts

Posted 09 September 2011 - 10:10 AM

Hey, it dons't look like it :(

#5   kymation

kymation

    Believers

  • Community Sponsor
  • 7,797 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 09 September 2011 - 05:32 PM

Are your Sort Order values distinct? Are any of them set to zero?

Regards
Jim
My Addons

Banners Box 2.3.x  Support Updated!
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Price in Cart Only/MAPP 2.3.x Support New!
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Superfish Categories Box 2.3x Support New!
Theme Switcher 2.3.x  Support

#6   SermoJohn

SermoJohn
  • Members
  • 4 posts
  • Real Name:Ioannis
  • Gender:Male
  • Location:Greece

Posted 25 October 2011 - 11:57 AM

hello,

I have a problem to locate the shopping card box on the top of the right column, so I have started looking at the code, but still haven't found where the sort order of the box is applied.

If this problem is not know or does not exist to other 2.3.1 installations, could someone help me locate the line in code where the box sort order is taken into account for placing the boxex.

Thanx in advance

#7   SermoJohn

SermoJohn
  • Members
  • 4 posts
  • Real Name:Ioannis
  • Gender:Male
  • Location:Greece

Posted 25 October 2011 - 01:32 PM

hello again,

it seems that there is no bug at all, its just a bit complicated in the code.

my error was that I was using the same sort order values for left column boxes and right column boxes, which weirdly results in placing the conflicting box to the last place in its column.

Conclusion:
You should use unique values for each box, for the sorting to work properly!

hope this info will save time from other osCommerce users/developers!

#8   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,512 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 25 October 2011 - 01:47 PM

View PostSermoJohn, on 25 October 2011 - 01:32 PM, said:

it seems that there is no bug at all, its just a bit complicated in the code.

my error was that I was using the same sort order values for left column boxes and right column boxes, which weirdly results in placing the conflicting box to the last place in its column.

Conclusion:
You should use unique values for each box, for the sorting to work properly!

This has nothing to do with any code, complicated or not, it's a question of making the correct settings and has been pointed out a couple of posts above


View Postkymation, on 09 September 2011 - 05:32 PM, said:

Are your Sort Order values distinct? Are any of them set to zero?


#9   SermoJohn

SermoJohn
  • Members
  • 4 posts
  • Real Name:Ioannis
  • Gender:Male
  • Location:Greece

Posted 25 October 2011 - 02:57 PM

Indeed, thanx a lot! It was just not clear to me that I should use distinct values of boxes on different columns.

Thanx anyway

#10   yahalimu

yahalimu
  • Members
  • 34 posts
  • Real Name:mo

Posted 10 April 2013 - 06:35 PM

Hi, A sililar but different problem.
Whatever I set the 'Banner set in context' order to, It always appears just under the Nivo slider on the index page.
Doesnt even appear on other pages whatever I set it to.
Welcom and customer greeting in content work fine as do all other modules.
Any idea?