Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Attributes


timlitw

Recommended Posts

I have a question about product attributes ordering. I have already install the several addins that let me put attributes in the correct order. But I have multiple selections of attributes on some of my products and would like to be able to order those.

 

 

for example.

A mouse pad that comes in several sizes, shapes, and background colors

 

I want the size selection to come first but it is always the last.

 

Shape [___________]

Background Color [_____________]

Size [___________]

 

 

and I would like it

 

Size [___________]

Shape [___________]

Background Color [_____________]

Link to comment
Share on other sites

Play with this piece of code (in product_info.php):

 

order by popt.products_options_name

 

Until you get it in the order you wish. Examples:

 

order by popt.products_options_name DESC

 

order by popt.products_options_id

 

order by popt.products_options_id DESC

 

and so on.

Link to comment
Share on other sites

Thanks for the pointers - I'll see what I can come up with.

 

 

 

 

 

Play with this piece of code (in product_info.php):

 

order by popt.products_options_name

 

Until you get it in the order you wish.  Examples:

 

order by popt.products_options_name DESC

 

order by popt.products_options_id

 

order by popt.products_options_id DESC

 

and so on.

Link to comment
Share on other sites

hmm.. I guess I just hadn't looked far enough - the attribute order allows you to see that order back on the original attribut page and I had missed that.

 

 

Your reply did help this since once I searched the file you mentioned above - I found that there was alread sort order code in place so that is what prompted me to go looking for something in the web interface that would make sue of that code.

 

 

 

Thanks again for the promt reply!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...