Jump to content



Photo

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 - 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

kymation

    Code Monkey

  • Community Sponsor
  • 8,208 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 Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#3   JakobÆbeløeKjøller

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

Posted 09 September 2011 - 09:47

Tnx. will look at it /smile.png' class='bbc_emoticon' alt=':)' />

#4   JakobÆbeløeKjøller

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

Posted 09 September 2011 - 10:10

Hey, it dons't look like it /sad.png' class='bbc_emoticon' alt=':(' />

#5   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,208 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 Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#6   SermoJohn

SermoJohn
  • Members
  • 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

SermoJohn
  • Members
  • 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 ONLINE   multimixer

multimixer

    Lemons or Melons ?

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

Posted 25 October 2011 - 13:47

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


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 - 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

#10   yahalimu

yahalimu
  • Members
  • 34 posts
  • Real Name:mo

Posted 10 April 2013 - 18:35

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?