peteravu Posted December 19, 2011 Share Posted December 19, 2011 (edited) Today I uploaded Sort Order, in Shopping cart, Shopping cart box, checkout and order. In 2.3.1 v 1.0 By default the Sort Order is after how the customers add the product to the cart. This will Sort Order first after the product name than after attributes name. See example here http://www.oscommerc...showtopic=69260 Thanks to Laurent “foxp2” for make this working and also thanks to Monika “Monika in Germany” Find it here: http://addons.oscommerce.com/info/8274 Edited December 19, 2011 by peteravu Quote Thanks to all that contributed to separate_price_per_customers_4.2.2_for_2.3.1, Add Multiple Products with plus/minus buttons, One Page Checkout for 2.3.1, Multi Attribute V2, Login Box Club osCommerce Shipping Date Chooser for 2.3.1, Quickly Update Product Stock 3.8.5 Español and order number in email subject Forum, Thanks Designing New Themes the Easy Way, how-to-set-backgrounds. my contributions Add Multiple Product In Product Listing 2.3.1 v.1.0 and Multiple Attribute entry boxes in product info page v1.0 for 2.3.1 Link to comment Share on other sites More sharing options...
dailce Posted June 9, 2012 Share Posted June 9, 2012 I have a slightly modifed shopping cart, and wonder if this is ok to sort 4 fileds, first by Parent Category name, then Subcategory name, then Product name, and product attributes. A little hard to get my head around array_multisort. What should array_map be applied to? Why isn't it applied to attributes in your original code? foreach ($products as $key => $row) { $parcater[$key] = $row['parentcatname']; $subcater[$key] = $row['subcatname']; $attributes[$key] = $row['attributes']; $name[$key] = $row['name']; } array_multisort(array_map('strtolower',$parcater), $subcater, array_map('strtolower',$name), $attributes, SORT_ASC, $products, SORT_ASC); Quote Link to comment Share on other sites More sharing options...
PiLLaO Posted August 7, 2013 Share Posted August 7, 2013 How can I use this addon in advanced_search_result.php? Thanks in advance :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.