aspire321 Posted November 13, 2017 Share Posted November 13, 2017 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? Quote Link to comment Share on other sites More sharing options...
♥Moxamint Posted November 14, 2017 Share Posted November 14, 2017 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 Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted November 14, 2017 Share Posted November 14, 2017 Add Weight To Product Attributes v0.1 Moxamint 1 Quote About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
aspire321 Posted November 15, 2017 Author Share Posted November 15, 2017 Thanks I'll check it. Quote Link to comment Share on other sites More sharing options...
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.