Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attribute 'Option Name' Sort Order?


stubbsy

Recommended Posts

Hi there,

 

I've been trying to find a solution to sort the 'Option Names' as they appear on product_info.php

 

At the moment they appear to be random, so if for example my options on a product are

Bike:
Number:   
Year:

 

I would like to be able to change the order so that it reads

 

Bike:
Year:
Number:

 

Does anyone know how this can be achieved?

 

All the best and Happy New Year

 

dave

Link to comment
Share on other sites

Yes one does, it was on the first results page for me when I searched the contributions.

 

Happy Hunting

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Well I'm pleased you found it. Do you think I didn't look before asking?

 

I can't find anything that allows me to specify the order that the attribute option names appear in.

Edited by stubbsy
Link to comment
Share on other sites

It is often the case people post without looking at all and as often happens I leapt to a conclusion before reading the question thoroughly.

 

The sort order is alphabetical on attribute name rather than random.

 

The sql is

 

"order by popt.products_options_name"

 

The fast and nasty way is to add a new "sort order" field to the products_attributes table and manually set the sort order. Then you have to change the sql in product_info.php to retrieve it and also order the results on the value held in this field.

 

or you could hack the contributions I was thinking of, e.g. Product Attributes Sort Order v1.0, to allow you to set the order in site admin.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

I added this contribution and it works absolutely fine for organizing them alphabetically. I am running into a quirk when it tries to list options that are numbers.

 

For instance, one of the attribute I have set up is length. The choices are listed like this:

 

10

100

15

20

25

30

45

5

50

 

Is there a way to correct this aside from place a "0" to act as a placeholder?

 

THanks!

 

Jeff

Link to comment
Share on other sites

What contribution, we just got to say none of then do what is required and hack one to do this?

 

If you are just sorting attributes, did you set he sort order in the shop admin?

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Suspect a search using "sort attributes" will answer that question.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

I installed Product Attribute Sort Order v1.6 and had Quick Attributes v1.1 previously installed.

 

THe sort order that I set don't seem to propoate to the Quick Attributes contribution and there isnt' a column for sort order in the Quick Attributes Contribution. Is there a known work around that will still allow me to use Quick Attributes?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...