Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attributes Weights + Shipping Costs - How To?


Mort-lemur

Recommended Posts

Posted

Hi,

 

I have come across a bit of a problem and am Hoping someone can point me in the right direction.

 

I use MZMTS as my shipping method, and all shipping costs are calculated by weight.

 

However, some products have several size options eg. 250g, 1.5Kg and 3Kg

 

Now I have the base product shipping weight set to 300g packed weight, but if someone selects the 3kg size option, then the shipping cost will still be calculated on 300g not 3Kg

 

Is there a way to set shipping weights against options, or do I need to list the item several times (once per weight) as I am currently doing?

 

Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

I don't know if something like this exist, but by default attributes have no weight, so this needs to be added, somehow like this

 

1) Add 1 more field into DB table products_attributes and call it option_value_weight (like option_value_price that exist already)

2) Change the file admin/products_attributes.php, so you have one more input field to set the attributes weight and write it to the DB (again, you can do like it is done for the price)

3) Change the file includes/classes/shopping_cart.php and make one more function to calculate the attributes weight (simillar to attribute price calculation)

5) In The same file add the attributes weight to the products weight in the products array (the "get_products" function)

Posted

Hi George,

 

Thanks for that - I may try doing that myself on my xampp store - because I know you are busy with another modification at the moment :D

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

There is a very good attribute weight contribution, which is a very easy install (remembering from a few years back when I used it).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...