Nevermind my previous question, I got it working. I have a question for those of you who are more advanced with PHP scripting. I noticed that there were a few questions about being able to only charge the highest priced first shipping, and have all other items only charge the secondary shipping price for all of the items... Well, here is my idea for that. Since I do not know deeper level php (arrays and such) this is in pseudo code. Please let me know if anyone can turn this into working code:
create an array:
-------------------------------Fields to store in the array:
array[sizeof($products)](products_ship_price, products_ship_price_two)
As the calculate shipping occurs (at about 114 in classes/shipping.php), fill the array with each product's two prices.
sort the array from highest to lowest products_ship_price
create $shipping_price_correction
for ($i=1, $n=sizeof($products); $i<$n; $i++) { //Skip the highest priced shipping (we wanted it charged full price)
$shipping_price_correction += (array[$i](products_ship_price) - array[$i](products_ship_price_two))
}
$this->shiptotal += -$shipping_price_correction
That would charge the highest first shipping price, and still subtract the correct amount to make the cheaper shipping charged as the secondary shipping price for each item.
If any of you (especially phpmom with her obvious mad skills in php) would be willing to turn this into actual code, that would be wonderful. I will be working on it myself, but I still have to learn all of the PHP before I can start coding. For some, this would take less than a half hour to code. If you would be so kind, I would be very greatful for the addition to this wonderful contribution.
Thanks,
Jon
"I love deadlines. I like the whooshing sound they make as they fly by." - Douglas Adams