how to sum the price of multiple produts with its different shipping charge
hi all.. pls help me..
i want to sum the price of multiple products with its quantity and shipping charges.
in my products table all the products have different shipping charges.
for ex: product1 shipping charges. product2 shipping charges.
shipping to US = $10.99 shipping to US = $14.99
shipping outside US = $20.99 shipping outside US = $34.99
if there is two product1 in the cart and shipping value is US, then it should be
like this total price= (quantity * shipping to US) + (quantity * product price).
how could i do this???
hi pritaeas..& diafol
this is my table product structure..
here is some code that i have been done in calculation part and this is working only after getting sum of total price for all the products with the given shipping costs. But actually what i needed is to fetch the shipping costs from the database for the corresponding prod_id's then calculate the total for each product and get total of all.