14 replies [Last post]
phoenix0783's picture
Offline
Joined: 08/07/2007
Juice: 185
Was this information Helpful?

The default sort is alphabetical. Is there way to stop it from doing this and to sort by weight (not the weight of the product: -10 to 10 style used to order stuff?) The only weight i saw in the product edit page is for shipping weight.

goofpal's picture
Offline
Joined: 08/07/2007
Juice: 90
Depending on how your catalog is...

You might want to use either "nodeorder" or "Node Queue" depending on how you set up your shop/catalog.

I'm using node queue to build my catalog.

Both modules are available on drupal.org

phoenix0783's picture
Offline
Joined: 08/07/2007
Juice: 185
Re: Depending on how your catalog is...

I'll have a look at those modules. Thanks!

phoenix0783's picture
Offline
Joined: 08/07/2007
Juice: 185
Re: Re: Depending on how your catalog is...

i couldn't get node order to work correctly. i am working with the "weight" module, but it doesn't seem to have an effect. in the uc_product table is there a way to add an invisible field so i can put the weight there. is there something in the code that tells tapir the default sort? i'm going to check it a bit, but if someone knows off the top of their head...

Timothy (not verified)
Timothy's picture
Sorting by Best Sellers

Thanks to the developers for a great product. Wondering if there are plans to have Ubercart keep track of best sellers, and also to have Ubercart sort products according to their popularity?

Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1076
Product Sorting In Catalog

Ubercart does not support this yet. We are definitely working on this. Perhaps Ryan or Lyle can add this to there battle plan and give you a better idea of when it will be available. It should happen in the next month for sure.
Peace,
Andy

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Product Sorting In Catalog

Can do, Andy.

urwen's picture
Offline
Joined: 01/09/2008
Juice: 20
sorting

go to admin/store/settings/tables/uc_product_table (tapir settings) and change the display order changing which field is showing first (example, set weight of price to -4, or any other value under the rest to order by price).

Publicidad en internet

murz@drupal.org's picture
Offline
Joined: 02/07/2008
Juice: 37
Add option in Ubercart settings to select field for sorting

Maybe add an option in Ubercart settings for selecting sorting field and store it as variable_set('uc_catalog_sort_field',$value)?

And after that modify uc_catalog.module from

<?php
 
if (empty($_REQUEST['order'])){
   
$order = 'p.ordering, n.title';
  }
?>

to

<?php
 
if (empty($_REQUEST['order'])){
   
$order = variable_get('uc_catalog_sort_field','p.ordering').', n.title';
  }
?>

For example, for using nodeorder sorting method you can set variable as variable_set('uc_catalog_sort_field','tn.weight_in_tid').

cdiggity's picture
Offline
Bug Finder
Joined: 09/14/2007
Juice: 40
Re: Add option in Ubercart settings to select field for sorting

That is something I'd be interested in as well, having certain catalog pages automatically sorted by a specified field in the table

ferrangil's picture
Offline
Joined: 02/27/2009
Juice: 62
Re: Re: Add option in Ubercart settings to select field for sort

Any update on how to sort products in the default catalog list??
Which module might be suitable for Ubercart 2...

Thanks

nickbits's picture
Offline
Joined: 04/15/2009
Juice: 205
Hi, I would love to know how

Hi,

I would love to know how to do this. Has it been implemented yet? If so, where can I find out more?

Cheers,
Nick

apfriedman's picture
Offline
Joined: 07/01/2009
Juice: 9
Re: Hi, I would love to know how

Any word on how to do this?

Danny_Joris's picture
Offline
Joined: 05/09/2009
Juice: 199
_

I would like to know as well. Is there a sollution for this yet? It's exactly two years ago since the initial question was raised.

newburyport's picture
Offline
Joined: 07/10/2009
Juice: 60
Solution

I found this posted in another thread:

http://www.ubercart.org/forum/support/814/product_sort_order_weight

It's not perfect, but at least it allows for Product name sorting.

You need to set this sort order when creating your Product. Like I said, it's not perfect but it met my immediate need.

-t