I want to group and display products on shopping cart page by category wise. I mean to say that, if we have four products, then it should be shown like below:
Category 1
- product i
- product ii
Category 2
- product i
- product ii
I also would like to store the total amount of each category value, in an array. I'm trying to implement category wise discount. Thanks.
EDITED:- This is my shopping cart page, where I'm trying to display discount based on the category of products
Suppose, if there are two products in the cart and they belong to two different category. Now I want to calculate discount based on the number of quantity of each category. I have created a module in admin section where I'm setting all the required values, and storing it to the table in database.
Now, based on the values set in the admin I'm trying to implement discount on shopping cart page. But I'm not getting any idea, how could i do that ?
That's why I have no code to place here.
please give some idea, so that i can try creating something. thanks!!
Following is my requirement --
Sale and Delivery Terms:
- for orders exceeding 600 Francs, delivery is free of charge;
- for orders less than the above, a delivery charge of 20 Francs, will apply;
Discounts and Quantities
Red Wines, White Wines:
- from 36 bottles, each of 750ml, 6% discount;
- from 60 bottles, each of 750ml, 10% discount;
- from 84 bottles, each of 750ml, 13% discount.
Fortified Wines (sweet):
- from 12 bottles, each of 750ml, 5% discount.
Discount on Pick up:
- from 24 bottles, each of 750ml, 3% discount.
Cash Payment:
- from 24 bottles, each of 750ml, 3% discount.
Cash Payment on Delivery:
- 3% discount.