tervion Posted July 28, 2022 Share Posted July 28, 2022 Hello, After weeks of reading in the forum I couldn't find a topic with the same issue as mine so I decided to ask the community for help my self. - The PrestaShop I'm running is v1.7.8.6 - In my shipping module (econt) have selected the option to add handling costs - The option for Out-of-range behavior is selected as disable carrier - I have created shipping ranges for the region my web store is going to operate - I have only one carrier - I have disabled free shipping by setting the value of "free shipping starts at" 0 as well turned of the option for free shipping in my carrier module - The default carrier option is manually selected to be my only carrier (econt) No matter what I do at the checkout for some reason the handling charges and the individual shipping fees of each product are not being added to the final shipping price. Big thank you all that took the time to read my posts in advance Link to comment Share on other sites More sharing options...
Nickz Posted July 28, 2022 Share Posted July 28, 2022 2 hours ago, tervion said: - The PrestaShop I'm running is v1.7.8.6 You are running locally? Localhost? Or server, Shared, VPS, Dedicated? All Dependencies satisfied? Php Version checks out for all modules plus theme? Link to comment Share on other sites More sharing options...
tervion Posted July 28, 2022 Author Share Posted July 28, 2022 (edited) - Using default theme provided by PrestaShop - Hosting provider (DreamHost) Server Shared - PHP Version 7.4.15 (https://gita.bg/phpinfo.php) - As far to my knowledge All Dependencies satisfied - I see two errors in advanced parameters/ Information as follows: Required parameters: Please fix the following error(s) memory_limit (missing description) Optional parameters: Please fix the following error(s) memory_limit (missing description) Update: - Memory limit issue resolved - The issue with the handling charges and product shipping fees still present Update: I checked out DHL Shipping module and compared with mine (Econt) and notice mine was missing few things that DHL module got: $handlingFees = Configuration::get('PS_SHIPPING_HANDLING'); // Adding handling charges if ($carrier->shipping_handling) { $priceWithoutTaxes += (float) $handlingFees; } // Additional Shipping Cost per product foreach ($products as $p) { if (!$p['is_virtual']) { $priceWithoutTaxes += $p['additional_shipping_cost'] * (int) $p['cart_quantity']; } } I try to add them in my carrier moduel in file econtdelivery.php but this also didn't solve the problem. If any one got an idea how I can modify the carier moduel by changing its coding It would be greatly appriciated. Edited July 29, 2022 by tervion Update (see edit history) Link to comment Share on other sites More sharing options...
tervion Posted July 29, 2022 Author Share Posted July 29, 2022 Hope at least some one had simmiliar issue and is willing to share Link to comment Share on other sites More sharing options...
Ali Samie Posted July 29, 2022 Share Posted July 29, 2022 yo u can send the module to me in DM so I give it a try on local server Link to comment Share on other sites More sharing options...
tervion Posted August 1, 2022 Author Share Posted August 1, 2022 Thank you in advance stifler97 ! Link to comment Share on other sites More sharing options...
Ali Samie Posted August 1, 2022 Share Posted August 1, 2022 First investigations for me showed that for delivery modules we should check this file at first "classes/module/CarrierModule.php" And verify that our module is doing the same I just put a return 10 in this method of your delivery module and guess what? Link to comment Share on other sites More sharing options...
Ali Samie Posted August 1, 2022 Share Posted August 1, 2022 You can follow this link too: https://devdocs.prestashop.com/1.7/modules/carrier/ Link to comment Share on other sites More sharing options...
tervion Posted August 1, 2022 Author Share Posted August 1, 2022 You are a life saver! Link to comment Share on other sites More sharing options...
Ali Samie Posted August 1, 2022 Share Posted August 1, 2022 You are welcome. I just searched for a bit Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now