magepal / magento2-custom-shipping-rate

Create your own Custom Shipping rates for admin order or a predefined sets of shipping methods for frontend customers.
http://www.magepal.com
93 stars 32 forks source link

Different shipping amount charged than custom amount set #10

Closed charlesglenn closed 5 years ago

charlesglenn commented 5 years ago

Magento version #: 2.2.6

Edition (EE, CE, OS, etc): CE

Expected behavior: Create an order in admin, select custom shipping, enter amount, click set. When the order is submitted the product total + the shipping is charged to the customer.

Actual behavior: Create an order in admin, select custom shipping, enter amount, click set. When the order is submitted the product total + the shipping is charged to the customer, except the shipping amount is lower than set (multiples of 20% lower)

Steps to reproduce: I have not attempted to reproduce on a vanilla magento instance.

Preconditions

Payment processor - Braintree

srenon commented 5 years ago

@charlesglenn .... This is the second time I'm seeing an issue like this, but I can not replicate it a vanilla Magento install.

Are you running mulit-store or doing any currency conversion?

charlesglenn commented 5 years ago

Single store, no currency conversion, but I suspect the issue is vat settings related due to the reduction of 20%. For example - I set the custom amount to 6.20, in the 'Order Totals' section of the UI it shows 5.17 [6.20/120100] as it is set to show without VAT. This is the same for my other configured shipping methods. All correct so far. Once I submit the order, and get the order confirmed screen, the postage shows as 4.31 [(6.20/120100)/120100] which shown as 3.59 in the Order Totals [((6.20/120100)/120100)/120100].

I've attached my tax settings so you can see how they deviate from a vanilla instance. I haven't tested yet, but suspect the issue is around the 'Shipping Prices - Including Tax' Setting.

I will try to investigate further if I have time, but I don't have even close to enough coding skill to attempt to fix.

1 2 3
charlesglenn commented 5 years ago

Ok, can confirm that the correct amount is charged if 'Shipping Prices - Including Tax' is changed to 'Shipping Prices - Excluding Tax'. Don't know who tho...

srenon commented 5 years ago

@charlesglenn... I did a quick test with "Shipping Prices - Including Tax" and did not configure any VAT setting and was not able to replicate the issue. Could you create a test store and send me the database so I can replicate and fix it?