caitanya Posted August 10, 2005 Posted August 10, 2005 Hi There is a + under the product listing that I do not want. It is written "Products+" and not "Products" like I would like. How do I remove this + ? I just want to have there "Products" without the +. I tried all kinds of things but could not find it anywhere. Can someone please help Thanks in advance caitanya
♥Monika in Germany Posted August 11, 2005 Posted August 11, 2005 anyone, please help... i am lost? :'( <{POST_SNAPBACK}> includes/functions/general.php find this: //// // Return table heading with sorting capabilities ?function tep_create_sort_heading($sortby, $colnum, $heading) { ? ?global $PHP_SELF; ? ?$sort_prefix = ''; ? ?$sort_suffix = ''; ? ?if ($sortby) { ? ? ?$sort_prefix = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . tep_output_string(TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading) . '" class="productListing-heading">'; ? ? ?$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>'; ? ?} ? ?return $sort_prefix . $heading . $sort_suffix; ?} this creates the sorting headers, and adds a + or - sign for sorting replace by this to remove those signs: //// // Return table heading with sorting capabilities ?function tep_create_sort_heading($sortby, $colnum, $heading) { ? ?global $PHP_SELF; ? ?$sort_prefix = ''; ? ?$sort_suffix = ''; ? ?if ($sortby) { ? ? ?$sort_prefix = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . tep_output_string(TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading) . '" class="productListing-heading">'; ? ? ?$sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '' : '') : '') . '</a>'; ? ?} ? ?return $sort_prefix . $heading . $sort_suffix; ?} :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
COOLumbia Posted August 11, 2005 Posted August 11, 2005 How do I remove this + ? Perhaps you didn't realize that the "+" sign indicates which column is sorted and how it is sorted (ascending or descending). If you click on the "Products+" heading, you'll see that it changes to "Products-", indicating that the column is now sorted descendingly, not ascendingly. And if you click on another column, such as "Price", you'll see that the + or - in the Products column disappears and the "Price" column now says "Price+", because the listing is now sorted by Price instead. Just wanted to make sure you understood what these + and- signs meant.
♥Monika in Germany Posted August 11, 2005 Posted August 11, 2005 Perhaps you didn't realize that the "+" sign indicates which column is sorted and how it is sorted (ascending or descending). If you click on the "Products+" heading, you'll see that it changes to "Products-", indicating that the column is now sorted descendingly, not ascendingly. And if you click on another column, such as "Price", you'll see that the + or - in the Products column disappears and the "Price" column now says "Price+", because the listing is now sorted by Price instead. Just wanted to make sure you understood what these + and- signs meant. <{POST_SNAPBACK}> well honestly when I first saw this, I did not understand it. I exchanged the signs for arrows pointing up and down like in database tools and added text to explain it to customers too ... wanted to be sure they understood. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
dcmo Posted August 11, 2005 Posted August 11, 2005 Hello I have a question .. I'm SURE I searched and saw a thread relating exactly to my question a few days ago but now I can't find it :blush: Why oh why didn't I bookmark it then! This thread is related so can someone here help ? I'd like to change the default sort order for the product info list page - the default seems to be to sort by the product name but it would make more sense for my shop if it was sorted by model number in descending order. I know the customer can change this, but it would be great if the first view could be the one most people want. Can anyone point me in the right direction? many thanks dcmo :blink:
dcmo Posted August 11, 2005 Posted August 11, 2005 Oops, found the original thread again, please ignore the above. :blush:
♥Monika in Germany Posted August 11, 2005 Posted August 11, 2005 Hello I have a question .. I'm SURE I searched and saw a thread relating exactly to my question a few days ago but now I can't find it :blush: Why oh why didn't I bookmark it then! This thread is related so can someone here help ? I'd like to change the default sort order for the product info list page - the default seems to be to sort by the product name but it would make more sense for my shop if it was sorted by model number in descending order. I know the customer can change this, but it would be great if the first view could be the one most people want. Can anyone point me in the right direction? many thanks dcmo :blink: <{POST_SNAPBACK}> index.php, line 195 if vanilla find $listing_sql .= " order by pd.products_name"; replace by $listing_sql .= " order by p.products_model desc, pd.products_name"; :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
♥Monika in Germany Posted August 11, 2005 Posted August 11, 2005 Oops, found the original thread again, please ignore the above. :blush: <{POST_SNAPBACK}> well you beat me to it, lol :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
dcmo Posted August 11, 2005 Posted August 11, 2005 well you beat me to it, lol <{POST_SNAPBACK}> Hi, Thanks for replying so fast :thumbsup: I followed the instructions in the other thread, which are almost same as your except I did $listing_sql .= " order by p.products_model desc"; not as you say $listing_sql .= " order by p.products_model desc, pd.products_name"; (what's the difference on the page?) I've tried both and both seem to work except the little '+' stays on the product name column rather than a '-' on the model ;) :'(
♥Monika in Germany Posted August 11, 2005 Posted August 11, 2005 Hi, Thanks for replying so fast :thumbsup: I followed the instructions in the other thread, which are almost same as your except I did $listing_sql .= " order by p.products_model desc"; not as you say $listing_sql .= " order by p.products_model desc, pd.products_name"; (what's the difference on the page?) I've tried both and both seem to work except the little '+' stays on the product name column rather than a '-' on the model ;) :'( <{POST_SNAPBACK}> you're right, with the model no need for the product name! I normally use manufacturer and like to have the products then listed alphabetically. I do not use the little + and - :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
dcmo Posted August 11, 2005 Posted August 11, 2005 Ok, I see what you mean. I also think you are right that the + and - thing confuses a lot of people so I think I will hide the problem by simply removing them as your instructions detail higher in this thread :lol: Many thanks - I think I'm going to call it a night now! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.