blucollarguy Posted August 2, 2004 Share Posted August 2, 2004 I am working on my shop and need to understand how the "products_weight" gets passed to the shipping modules. I have searched for hours and can't figure out how this is being done. In the modules themselves, the weight is defined thus "$shipping_weight", and that is defined in catalog/includes/classes/shipping.php with this code if (is_array($this->modules)) { $shipping_quoted = ''; $shipping_num_boxes = 1; $shipping_weight = $total_weight; But I cannot track it any further. Please help, Craig. :) Happy Coding! Craig Garrison Sr Anything worth having, is worth working for. Multi Vendor Shipping V1.1 Demo Catalog 3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout. Multi Vendor Shipping V1.1 Demo Admin login: [email protected] pass: mvs_demo MVS Thread: Multi-Vendor Shipping My contribs: Download Multi Vendor Shipping V1.1 Vendor Email Vendor Info in easypopulate EZ Price Updater And more to come! Link to comment Share on other sites More sharing options...
Chris Dunning Posted August 3, 2004 Share Posted August 3, 2004 I think that $total_weight is actually defined within the shopping_cart.php file in the classes directory. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly. Link to comment Share on other sites More sharing options...
blucollarguy Posted August 3, 2004 Author Share Posted August 3, 2004 Thanks Chris and yes that is where it is defined, I think. function show_total() { $this->calculate(); return $this->total; } function show_weight() { $this->calculate(); return $this->weight; } I think this creates that variable. But I am not sure how to carry a different variable that is collected in the same file and made available to the shipping module. Any ideas how I can do this? Craig :) Happy Coding! Craig Garrison Sr Anything worth having, is worth working for. Multi Vendor Shipping V1.1 Demo Catalog 3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout. Multi Vendor Shipping V1.1 Demo Admin login: [email protected] pass: mvs_demo MVS Thread: Multi-Vendor Shipping My contribs: Download Multi Vendor Shipping V1.1 Vendor Email Vendor Info in easypopulate EZ Price Updater And more to come! Link to comment Share on other sites More sharing options...
Chris Dunning Posted August 4, 2004 Share Posted August 4, 2004 I don't understand your question. Are you trying to use another variable that's already created within that file, or do you want to create a new variable? Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly. Link to comment Share on other sites More sharing options...
blucollarguy Posted August 4, 2004 Author Share Posted August 4, 2004 I am tracking the $shipping_weight in order to be able to pass a different variable to the module. It must somehow be defined somewhere. I just can't figure out where. Craig :) Happy Coding! Craig Garrison Sr Anything worth having, is worth working for. Multi Vendor Shipping V1.1 Demo Catalog 3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout. Multi Vendor Shipping V1.1 Demo Admin login: [email protected] pass: mvs_demo MVS Thread: Multi-Vendor Shipping My contribs: Download Multi Vendor Shipping V1.1 Vendor Email Vendor Info in easypopulate EZ Price Updater And more to come! Link to comment Share on other sites More sharing options...
Chris Dunning Posted August 4, 2004 Share Posted August 4, 2004 The variable $shipping_weight I think is calculated in the cart->calculate function. Chris Dunning osCommerce, Contributions Moderator Team Please do not send me PM! I do not read or answer these often. Use the email button instead! I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.