Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Products Weight editor?


aspire321

Recommended Posts

I've added additional weight options via products_attributes.php, but this just shows the options on the product page without actually editing the products weight.

For example, I have a product weight of 30grams. I then add an attribute allowing the customer to select 100grams (with the necessary price increase),

but this does not add 0.07 to that product weight - it still just keeps the original weight of 0.03 in the shopping cart.

This doesn't work because my shipping is based on weight!

Is there a solution for this?

Link to comment
Share on other sites

7 hours ago, aspire321 said:

I've added additional weight options via products_attributes.php, but this just shows the options on the product page without actually editing the products weight.

For example, I have a product weight of 30grams. I then add an attribute allowing the customer to select 100grams (with the necessary price increase),

but this does not add 0.07 to that product weight - it still just keeps the original weight of 0.03 in the shopping cart.

This doesn't work because my shipping is based on weight!

Is there a solution for this?

It requires code changes in class file \includes\classes\shopping_cart.php because the osC in-built attribute system does not recognize weight options so that they won't get added into the total weight.  Perhaps some experienced coders in this forums would chime in and help you with the code changes required.

Cheers, Eddy

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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