Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Display Problem


napogee

Recommended Posts

Posted

My Question Is:

 

How can I display the items NON-ALPHABETICALLY.

 

THe only way I figured to this is by inserting a Sort Number. But I have 400 items + so I have to edit them all ?

 

Thanks,

Jess

Posted

Hi,

 

My Question Is:

 

How can I display the items NON-ALPHABETICALLY.

 

THe only way I figured to this is by inserting a Sort Number. But I have 400 items + so I have to edit  them all ?

 

Thanks,

Jess

 

Where do you want to sort the products 'non-alphabetically' ? Are you using the 'all products' contribution, or you simply want the products ordered by (for example) product ID, when a category is selected ?

 

Peter

Posted
Hi,

Where do you want to sort the products 'non-alphabetically' ? Are you using the 'all products' contribution, or you simply want the products ordered by (for example) product ID, when a category is selected ?

 

Peter

 

I guess I would like them sorted in a way I can Graphically select ITEM #xxx to #1 where it shows.

 

Or if there is no graphical way, a fast way to insert the sort numbers ?

 

~ Jess

Posted

Hi,

 

I guess I would like them sorted in a way I can Graphically select ITEM #xxx to #1 where it shows.

 

Or if there is no graphical way, a fast way to insert the sort numbers ?

 

1. Where do you want to display the products in 'non-alpha' order ?

 

(i) When the main page is displayed (index.php), to show in 'new products', specials or .. ??

 

(ii) When the category is slected, and the products belonging to the cateogry are displayed ?

 

(iii) Are you using the 'all products' contribution, and you want to make the change there ?

 

 

2. What exact order do you want the products to display in, product ID, model number, description ??

 

3. Adding the sort order field will mean you will have to continually update the sort order for new products,etc,etc.

 

Peter

  • 2 weeks later...
Posted
Hi,

1. Where do you want to display the products in 'non-alpha' order ?

 

(i) When the main page is displayed (index.php), to show in 'new products', specials or ..  ??

 

(ii) When the category is slected, and the products belonging to the cateogry are displayed ?

 

(iii) Are you using the 'all products' contribution, and you want to make the change there ?

2. What exact order do you want the products to display in, product ID, model number, description ??

 

3. Adding the sort order field will mean you will have to continually update the sort order for new products,etc,etc.

 

Peter

 

 

When the category is slected, and the products belonging to the cateogry are displayed. I have the contribution 3 products in a row selected. I want select what items will show up first.

Posted

Hi,

 

I guess I would like them sorted in a way I can Graphically select ITEM #xxx to #1 where it shows.

 

Please advise if you want it sorted by "product model" or by "product ID#" ?

 

Peter

  • 2 weeks later...
Posted

Hi,

 

I Guess by Private ID#

 

I assume you mean product ID#.

 

As you stated earlier ........

 

When the category is slected, and the products belonging to the cateogry are displayed. I have the contribution 3 products in a row selected. I want select what items will show up first.

 

then the file that is used for those product displays is index.php

 

Around line 195 of /index.php is this .......

 

$listing_sql .= " order by pd.products_name";

 

modify that line to ......

 

$listing_sql .= " order by pd.products_id";

 

You may also have to modify some of the lines following 195, for example line 205 is:

 

$listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

 

Obviously replace 'pd.products.name' with 'pd.products_id', BUT only do it where you see lines with the $sort_order variable, there are some without it.

 

Modify 195 first, and if that only gives the products in product ID order under some situations, then also modify the other lines I mentioned.

 

Peter

Archived

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

×
×
  • Create New...