Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free shipping not being properly applied in CE 2.1.8 #10507

Closed
jkf276 opened this issue Aug 11, 2017 · 16 comments
Closed

Free shipping not being properly applied in CE 2.1.8 #10507

jkf276 opened this issue Aug 11, 2017 · 16 comments
Assignees
Labels
bug report Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@jkf276
Copy link

jkf276 commented Aug 11, 2017

Preconditions

  1. Magento CE 2.1.8 PHP 7.0.22 and 5.6.31
  2. setup a cart price rule giving free shipping to any order over $50. No coupon, unlimited use, all website, all users. Under the "actions" submenu "free shipping" should be set to "For shipment with matching item"

Steps to reproduce

  1. as either guest or registered user add an item costing $50 or greater to cart
  2. proceed to checkout

Expected result

  1. Shipping cost should be zero.

Actual result

  1. shipping rate still apply

###Other comments
The free shipping rule will apply if "free shipping" is set to "for matching items only".

The test was performed using the sample data with the sample luma store. Sample data provide a sample cart price giving free shipping for order over $50. "free shipping" is set to "for shipment with matching item" by default for the luma store sample data.

Free shipping using this option, which is the default with the sample data, still works with 2.0.15 and has previously worked for 2.1.7, so it seems like functionality was lost.

@happydownload33
Copy link

Same here, Installing 2.1.8 Option to free sending wont work anymore.

@PieterCappelle
Copy link
Contributor

PieterCappelle commented Aug 14, 2017

Can confirm! 2.1.8.

Found a solution, do not use 'For shipment with matching items' but use 'For matching items only'.

@TenGauge
Copy link

Can also confirm, 2.1.8.

@keinereiner
Copy link

maybe because of an execption:
[2017-08-14 10:41:42] main.CRITICAL: Exception: Warning: iconv_substr() expects parameter 1 to be string, array given in xxxxx/vendor/magento/framework/Stdlib/StringUtils.php on line 183 in xxxxx/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:

#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'iconv_substr() ...', '/html/domains/w...', 183, Array)
#1 xxxxx/vendor/magento/framework/Stdlib/StringUtils.php(183): iconv_substr(Array, 0, 35, 'UTF-8')
#2 xxxxx/vendor/magento/module-dhl/Model/Carrier.php(430): Magento\Framework\Stdlib\StringUtils->substr(Array, 0, 35)

@oleg-onufer
Copy link
Contributor

Hi @jkf276
This issue as duplicate of #6584

@amenk
Copy link
Contributor

amenk commented Aug 30, 2017

@oleg-onufer The other issue is about the weight

@amenk
Copy link
Contributor

amenk commented Aug 30, 2017

@PieterCappelle

Found a solution, do not use 'For shipment with matching items' but use 'For matching items only'.

Does this reliably work for you? For us it did not work when on the cart page, and sometimes still not in checkout.

@amenk
Copy link
Contributor

amenk commented Aug 30, 2017

Sorry, my mistake - I had a coupon code assigned, works now with your change. Does the workaround have any side effects?

@tkotosz
Copy link
Contributor

tkotosz commented Aug 31, 2017

I can reproduce the issue in 2.1.8. But it seems it is fixed in the develop branch.
So I have applied these two commits as patches and that solved the issue:
a592766
1db9cef

@PieterCappelle
Copy link
Contributor

@tkotosz Is it difficult to patch 2 commits to a composer installation of Magento? Never did that before.

@tkotosz
Copy link
Contributor

tkotosz commented Aug 31, 2017

@PieterCappelle Not really, we use the cweagans/composer-patches to patch any vendor package. (see: https://github.com/cweagans/composer-patches). If you install it then you can add this to your project's composer json:

"extra": {
    "patches-file": "composer.patches.json"
  }

and in the composer.patches.json you can define which patch should apply to which vendor package easily. e.g.:

"magento/module-offline-shipping": {
      "[PATCH] Fix free shipping is not applied with 'For shipment with matching items' option": "patches/fix-free-shipping-is-not-applied-issue.patch"
    }

And this is how we usually create the patch:
howtopatch

At least this is how we do it. I am sure there are other ways to handle patches but so far we found this as the most usable method.

@magento-engcom-team magento-engcom-team added bug report G1 Passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Sep 13, 2017
@okorshenko okorshenko added the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Sep 14, 2017
@magento-engcom-team
Copy link
Contributor

@jkf276 thank you for your bug report.
We've created internal ticket MAGETWO-75302 to track progress on the issue.

@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Sep 19, 2017
@lewisvoncken
Copy link
Contributor

@jkf276 @magento-engcom-team in my opinion this is the same issue as #8172 which I have solved in the partner github https://github.com/magento-partners/magento2ce/pull/59

@lewisvoncken
Copy link
Contributor

I'm working on it #SQUASHTOBERFEST

@angelo983
Copy link
Member

@PieterCappelle thank you so much, your temporary solution works also for me in magento 2.1.9

@okorshenko
Copy link
Contributor

The issue has been fixed in 2.1-develop branch. Will be available with next patch release
Fix to 2.2-develop is on the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Fixed in 2.1.x The issue has been fixed in 2.1 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests