Tata552014-01-17 12:05 | I am testing the QuickCart (6). Adding new field was not that difficult. But I need also sorting of products with their new added value (color). How to do this? The products are sorted after chosing the sorting after the color, but they are not shown correctly. » Quick.Cart v6.xTata |
Tata552014-01-17 12:22 | One more try - colors after alphabet. Tata |
Tata552014-01-17 12:33 | Pardon, but one more question: How to make it to have a dropdown list in added fields instead of a text field. It would be much more comfortable to choose from pre-defined values than write each one into the text field. It would be also nice to have the "sort" links styled, so that the chosen sorting parameter would be e.g. highlighted. Tata |
boboo2014-01-17 15:52 | to highlight the sorting option in products list:
.selsort{color:blue;}
<a href="'.$sSortingLink.'sSort=">'.$lang['Default'].'</a>
a href
a class="'.(((isset($GLOBALS['sSort'])&&$GLOBALS['sSort']=='')||!isset($GLOBALS['sSort']))?'selsort':null).'" href
a class="'.(((isset($GLOBALS['sSort'])&&$GLOBALS['sSort']=='name'))?'selsort':null).'" href
a class="'.(((isset($GLOBALS['sSort'])&&$GLOBALS['sSort']=='price'))?'selsort':null).'" href
boboo :-) |
Tata552014-01-17 21:40 | Someething is wrong. Tata |
Tata552014-01-17 23:44 | I made a mistake. Thanks a lot, boboo, it works (I mean the highlighting). But with the sorting goes it still wrong. Aorting by name and price is OK, but the colors are missorted. Tata |
boboo2014-01-18 07:21 | Did you add the 'color' in the sortProducts function in core/products/php, as a next elseIf statement? boboo :-) |
boboo2014-01-18 07:24 | OK, the second question is needless :-) boboo :-) |