Hey All,
I was wondering if someone could help me with a couple of statements im trying to write.
I have a shopping cart, and im trying to implement a individual shipping cost per product and a secondary shipping price for additional products and quantitys.
I just cant seem to get my head around the statement ... basically this is how it should go:
if theres more than one product in the cart then
get primary shipping cost of 1st product
how much qty? any additional product?
for each additional products and qty's use secondary shipping price ( which is defined for each product)
else if there is only one product and one qty then
use primary shipping cost.
Hows that sound ... I cant get my head around it at all.
to give a real world example:
Listed below are 2 products with their details
Product: Canon Digi Camera
Primary Shipping Cost: $20
Additional Shipping Cost: $1
Product: DVD Player
Primary Shipping Cost: $40
Additional Shipping Cost: $2
If i buy 2 digi cameras, the total shipping price will be $21
$20 + $1
If i buy 1 digi camera and 1 DVD player, the total shipping price will be $22
$20 + $2
If i buy 1 digi camera and 4 DVD players, the shipping will be $28
$20 + $2 + $2 + $2 + $2
I hope thats a better explaination of it.
If any could help me get my head around this it would be greatly appreciated, i have been pulling my hair out about this for months now.
Cheers