manbowead Posted March 10, 2007 Posted March 10, 2007 Does anyone know any code i can add so there is a flat rate to one address so you can order as many items as you like to one address for a single shipping charge of the heaviest product. basically if there are 3 items in the cart the shipping cost is for the heaviest item? Quote
Guest Posted March 10, 2007 Posted March 10, 2007 Does anyone know any code i can add so there is a flat rate to one address so you can order as many items as you like to one address for a single shipping charge of the heaviest product. basically if there are 3 items in the cart the shipping cost is for the heaviest item? Why not use the actual shipping costs or offer free shipping over a certain amount? Quote
manbowead Posted March 11, 2007 Author Posted March 11, 2007 Why not use the actual shipping costs or offer free shipping over a certain amount? because im using a dropshipper and this is how they have there postage set up. Quote
satish Posted March 11, 2007 Posted March 11, 2007 in class shopping_cart.php $this->weight += ($qty * $products_weight); needs to be changed to if $this->weight<$products_weight { $this->weight=$products_weight ; } This will place the final weight as the heaviest weight and solve your problem. Satish Quote Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Guest Posted March 12, 2007 Posted March 12, 2007 in class shopping_cart.php $this->weight += ($qty * $products_weight); needs to be changed to if $this->weight<$products_weight { $this->weight=$products_weight ; } This will place the final weight as the heaviest weight and solve your problem. Satish I am not a programmer, but are you sure about if $this->weight<$products_weight maybe if $this->weight>$products_weight Quote
manbowead Posted March 12, 2007 Author Posted March 12, 2007 in class shopping_cart.php $this->weight += ($qty * $products_weight); needs to be changed to if $this->weight<$products_weight { $this->weight=$products_weight ; } This will place the final weight as the heaviest weight and solve your problem. Satish cheers for the help but this wouldnt work for me. if the customer has 3 items in the cart and the postage cost of each item are: 3.99, 4.99 adn 6.99, i dont want the customer to pay 15. 97 for postage when they could get it for flat rate of the heaviest ot 6.99. i cant program but surely each item is assigned a value which is thier weight, i need something at checkout which works with the shipping table module and would check the basket to see which has the heaviest item and use that for the postage cost. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.