The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 01-27-2010, 06:07 AM
Tom's Avatar
Tom is offline
 
Join Date: Nov 2009
Posts: 61
Default

Sort Order?


Hello,

Is there a way to create a "sort order" that would sort the products by the title? (Numeric first and the alphabetically)

Basically I have a list of courses being offered to my clients. I would like to order them by the date of the course. The dates are displayed in my title.

Here is my page:

http://www.negotiationexpertise.com/...=0&sort=normal

Thanks in advance
  #2  
Old 01-27-2010, 10:34 AM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Quote:
Originally Posted by Tom View Post
Hello,

Is there a way to create a "sort order" that would sort the products by the title? (Numeric first and the alphabetically)

Basically I have a list of courses being offered to my clients. I would like to order them by the date of the course. The dates are displayed in my title.

Here is my page:

http://www.negotiationexpertise.com/...=0&sort=normal

Thanks in advance

1. You can sort these products in any order you want in your Ecwid control panel. Just drag-n-drop your products to sort.

2. If you want to have a built-in "sort by name" option, please vote for this idea:
http://ideas.ecwid.com/forums/22031-...ical?ref=title
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
  #3  
Old 01-28-2010, 01:47 PM
craig.cooper's Avatar
craig.cooper craig.cooper is offline
Member
 
Join Date: Nov 2009
Posts: 32
Default

Code:
//Will Sort alpahbetically by title, and hide the headings.
tableSort = function (page) {
      if ( $j(".ecwid-productBrowser-productsTable-table").length ) {        //Is table there?
        $j(".ecwid-productBrowser-productsTable-table colgroup").remove();

	if ( $j(".ecwid-productBrowser-productsTable-table thead").length ) {
                     $j('.ecwid-productBrowser-productsTable-table').trigger("update");
                     var sorting = [[1,0]];
		     $j("table").trigger("sorton",[sorting]);
		return true;
		} else {
      $j('.ecwid-productBrowser-productsTable-table').prepend("<thead style='display: none;'><tr><th>SKU</th><th>NAME</th><th>PRICE</th><th>BUY</th></tr></thead>")
      $j.tablesorter.addParser({
        id: 'productID',
        is: function(s) { 
            return false;
        }, 
        format: function(s) {
	    k = s.replace(/(<([^>]+)>)/ig,"");
	    return k;
        }, 
        type: 'text'
      });

      $j('.ecwid-productBrowser-productsTable-table').tablesorter({
            headers: {
                1: {
                    sorter:'productID',

                }
            },   sortList: [[1,0]]
        });
      return true;
      }
   } else return false;
}

addMod(tableSort, "category");

add this to your <head>
Code:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script> 
<script src="http://www.ciedesign.co.uk/temp/ecwidMods.js" type="text/javascript"></script> 

<script src="http://www.ciedesign.co.uk/temp/tablesorter/jquery.tablesorter.js" type="text/javascript"></script> 
<script src="http://www.ciedesign.co.uk/temp/tableSort.js" type="text/javascript"></script>
The bottom one can be modified and uploaded to your server if you want to modify it.

DEMO

Last edited by craig.cooper; 01-28-2010 at 02:10 PM. Reason: Actually works now
  #4  
Old 07-14-2010, 09:59 PM
Jackman Music Corporation's Avatar
Jackman Music Corporation Jackman Music Corporation is offline
 
Join Date: May 2010
Posts: 5
Default Alphabetically sorting

Craig,

Loved your sorting alphabetically demo. I've tried to implement it on my site, but am trying to figure out where each piece of code goes... Script code goes simply in the head. right?

But where/how do I use your other code?
  #5  
Old 08-10-2010, 03:52 PM
Gary Williamson's Avatar
Gary Williamson Gary Williamson is offline
Junior Member
 
Join Date: Aug 2010
Posts: 2
Default

Where do you go in the control panel for drag-n-drop sorting of the product order?
  #6  
Old 08-10-2010, 04:30 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Quote:
Originally Posted by Gary Williamson View Post
Where do you go in the control panel for drag-n-drop sorting of the product order?
You can sort them on the "Catalog → Categories" page. Click the necessary category and select the "Category Products" tab.
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
  #7  
Old 08-10-2010, 04:34 PM
Gary Williamson's Avatar
Gary Williamson Gary Williamson is offline
Junior Member
 
Join Date: Aug 2010
Posts: 2
Default

Okay, thanks. I guess I have to come up with some categories now.
  #8  
Old 08-10-2010, 05:21 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Quote:
Originally Posted by Gary Williamson View Post
Okay, thanks. I guess I have to come up with some categories now.
http://kb.ecwid.com/How-to-order-you...nIsortthemnbsp
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
  #9  
Old 08-21-2010, 10:17 PM
Kellijean Press's Avatar
Kellijean Press Kellijean Press is offline
Junior Member
 
Join Date: Jul 2010
Posts: 2
Question Drag n drop? Can't do that here

Quote:
Originally Posted by qetzal View Post
1. You can sort these products in any order you want in your Ecwid control panel. Just drag-n-drop your products to sort.
]
I appreciated seeing this suggestion - but I can't seem to find where to do this.

In my control panel, in the products tab, I see a table list of all of my products, but if I try to select an item - it only selects the text.

Where is this awesome sorting option? I would love to be able to sort my items.

thanks!
  #10  
Old 08-23-2010, 12:05 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Quote:
Originally Posted by Kellijean Press View Post
I appreciated seeing this suggestion - but I can't seem to find where to do this.

In my control panel, in the products tab, I see a table list of all of my products, but if I try to select an item - it only selects the text.

Where is this awesome sorting option? I would love to be able to sort my items.

thanks!
- Go to the Catalog → Categories.
- Click the necessary category.
- Go to the "Category products" tab.
- Drag and drop products to sort them.
- Save the changes.
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:30 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.