Jump to content

PrestaShop 1.7 - Checkout doesn't add Handling charges and individual product shipping fees


Recommended Posts

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 

 

02B007CD-DB80-403D-A53D-9731F2B56CBE.jpeg

11685371-9BFB-4FD2-BEDE-E4BDCCD23424.jpeg

42624BC6-7406-428A-8AF6-715B5A1241D1.jpeg

7EA1321F-855E-469B-8071-7D088DE782BF.jpeg

Link to comment
Share on other sites

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

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

E8213A5D-517E-4D01-A872-D824C7B23645.jpeg

5B18794C-C4A0-4A6E-A7DE-83D2B1195E4A.jpeg

F0BAB219-F6EA-4062-A7ED-3CAB7F7BA724.jpeg

Edited by tervion
Update (see edit history)
Link to comment
Share on other sites

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?

image.thumb.png.d4b3270e62021bcd6c3d5e2c076d1b9e.png 

image.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...