I've been trying to figure out how to get different shipping rates for different product types.
product type A is a flat rate of $5, no matter how many items are purchased, shipping total = $5.
product type B is a table rate based on price (up to $19.99, shipping costs = $8. $20 to $24.99, shipping costs = $9 ...).
The problem occurs when a customer wants to purchase some of product type A and some of product type B. I need to calculate shipping from products of mixed rates.
I'm trying to create my own shipping module with an algorithm to handle the math. I've got the module set up, but I don't know what variables I can use in my algorithm. Can I use the product_id field? And how do I know how many of each product are in the customers basket? I rather not access the MySQL database. I heard someone used session variables to get a count of what was in the shopping cart.
Can anyone help with this or have a better suggestion?
Thanks,
Tom



