Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to group/organize product options


DamanC

Recommended Posts

Posted

Is there a way/Contribution?

 

I did have a search but not found anything. I am after a way to group/organise product options. At the moment, available options are listed alphabetically, I would like to change the order they are listed. Just to make it clear, I am taking about the options and not the attributes :)

 

Perhaps in-between each set of options there could be a heading?

 

Cheers

Posted

Update with Option Name order

 

I have been playing with this over the weekend. I have managed to get my Product options name to order by ID. The only other way I could see was to title each option name with a number prefix such as 1.1, 1.2, 1.3, 2.1, 2.1 etc etc but It makes everything look a bit untidy.

 

There is very little documentation about this on the forum, surprising really as it has been asked rather a few times but without answer. My code it probably different from everyone else's but to order by ID you have to edit product_info.php

 

Look for $products_options_name_query

 

At the end of this line is: "' order by popt.products_options_name "

 

Change to:

 

"' order by popt.products_options_id"

 

my inspiration came from a thread way back in 2002: http://www.oscommerce.com/forums/index.php?sho...l=option++order

The heading issue

 

Im still looking for a way to break up the options. 50 options in one big clump maybe heavy on a customers eyes.

 

Product options name accepts HTML which is nice as it allows me to add <p> and <br> which in turn shows a break in the product options. However if you had a break at the end of a product name you end up with a colon (:) in the break line, which looks naff. Ideally It would be nice to remove the colon display all together?

 

If you add a break before the product name, it throws the cart, and everything that occurs after (invoice etc), out slightly in the fact that it puts the hyphen (-) on the break line.

 

Anythoughts guys?

  • 2 weeks later...
  • 3 weeks later...
Posted

I still cant work out a 'decent' way of doing this. Another pair of eyes needed to take a loiok at it from outside the box :)

  • 2 weeks later...

Archived

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

×
×
  • Create New...