Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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?

Posted
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?

Posted
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.

Posted

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

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.

Posted
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

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...