• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Group items in cart

#1
[eluser]gdweb[/eluser]
In "options"(the item from cart array) I have "id_category".
Something like this:
Code:
Array (
   [afdec7005cc9f14302cd0474fd0f3c96] =>
        Array (
            [rowid] => afdec7005cc9f14302cd0474fd0f3c96
            [id] => 103
            [qty] => 3
            [price] => 34
            [name] => Item22
            [options] => Array (
                             [instructions] => 'asdasdas'
                             [id_category] => 1
                         )
            [subtotal] => 102
        )
)

Now, by default, the cart view looks like this:
Code:
qty  name    category       price   subtotal
3   Item22 Category_Name22    23       69
2   Item23 Category_Name33    12       24
1   Item24 Category_Name22    14       14
   Total: 107

And I want it to be displayed like this:

Code:
Category_Name22
qty  name     price   subtotal
3   Item22     23       69
1   Item24     14       14
             total :    83

Category_Name33
qty  name     price   subtotal
2   Item23     12       24
             total :    24
  Total: 107


Messages In This Thread
Group items in cart - by El Forum - 10-09-2011, 12:16 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.