Jump to content


Corporate Sponsors


Latest News: (loading..)

Custom Boxes Sort order not working


  • You cannot reply to this topic
8 replies to this topic

#1 JakobÆbeløeKjøller

  • Community Member
  • 3 posts

Posted 08 September 2011, 15:54

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

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

Posted 08 September 2011, 17:25

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.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#3 JakobÆbeløeKjøller

  • Community Member
  • 3 posts

Posted 09 September 2011, 09:47

Tnx. will look at it :)

#4 JakobÆbeløeKjøller

  • Community Member
  • 3 posts

Posted 09 September 2011, 10:10

Hey, it dons't look like it :(

#5 kymation

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

Posted 09 September 2011, 17:32

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

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#6 SermoJohn

  • Community Member
  • 4 posts
  • Real Name:Ioannis
  • Gender:Male
  • Location:Greece

Posted 25 October 2011, 11:57

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

  • Community Member
  • 4 posts
  • Real Name:Ioannis
  • Gender:Male
  • Location:Greece

Posted 25 October 2011, 13:32

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

  • Community Sponsor
  • 3,595 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 25 October 2011, 13:47

View PostSermoJohn, on 25 October 2011, 13:32, 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, 17:32, said:

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

Looking for a way to create your own osCommerce template ? click

#9 SermoJohn

  • Community Member
  • 4 posts
  • Real Name:Ioannis
  • Gender:Male
  • Location:Greece

Posted 25 October 2011, 14:57

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

Thanx anyway