Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Is it possible to sort shopping cart by product code Rate Topic   - - - - -

 
  • mrmem
  • Member
  • Members
  • Join Date: 13-Jul 09
  • 96 posts

Posted 05 July 2013 - 02:10 AM #1

Hi

Anyone know how if a customer clicks to see his cart that they are sorted by product code.
Right now they are listed in order of when they place product into cart. we sell baseball cards
and many of the carts can have 100s of items and it helps if they can see whats in there cart sorted by product code. if someone can point me in the right direction of which file to look under I would be grateful. I do have the invoices printing out by product code and wish to have the cart show to customer in the same manner.
PS Im still using cs-cart 2.0.8 version.
thanks

 
  • Ian
  • Junior Member
  • Members
  • Join Date: 22-Apr 06
  • 29 posts

Posted 13 November 2013 - 03:32 AM #2

That would be handy as many of our orders can have a large number of items on it. I am interested on how you got your invoices to print out in part number order as that would be a huge fix for us. I have posted the question before but didn't get any answers on the subject.
CS-Cart 2.2.1
PHP 5.2.11
MySQL 5.0.91
VPS

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12044 posts

Posted 13 November 2013 - 07:31 AM #3

Use the PHP hook 'post_add_to_cart' and modify the cart however you want. You can sort the 'products' (V3) or 'items' (V4) or add to the data if you need it in some other context.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Ian
  • Junior Member
  • Members
  • Join Date: 22-Apr 06
  • 29 posts

Posted 15 November 2013 - 01:18 AM #4

Thank you for that, I'll have a good look and work it out.
CS-Cart 2.2.1
PHP 5.2.11
MySQL 5.0.91
VPS