magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

shipping module not updating zipcode in production mode #13810

Closed akshgods closed 6 years ago

akshgods commented 6 years ago

Hey guys! i need some help to solve a little problem with my shipping module.. all the module is working fine, but when i put a zip code, the rate doesn't update in production mode only .

everything is perfectly working on developer mode.

Preconditions Magento 2.0.4 install Cart page and checkout page Steps to reproduce 1.put any product inside your cart

  1. Open cart page or checkout page
  2. input zipCode to calculate tax for shipping

Expected result Module should update the rate for shipping each time i change the zip code. Actual result nothing happens, the value doesn't appear.

Note: this all causing in production mode .

in developer mode it does validation and send ajax request on this url , and everything goes fine. /rest/default/V1/guest-carts/xxxxxxxxxxxxxxxx/estimate-shipping-methods.

please any help will thankful.

i allready saw both issue on : https://github.com/magento/magento2/issues/8240 https://github.com/magento/magento2/issues/13430

but those are little different in case, i dint made any custom module , and my code is working on developer mode perfectly.

update: now its work on production mode if i turn off this things from admin->stores->configuration->advance->developer Enable Javascript Bundling  No Minify JavaScript Files NO

i can use here > Merge JavaScript Files yes any help , suggestion as i want work with bundling minify of java-script

more on it: is there problem my view.xml for exclude files?

Lib::jquery/jquery-ui-1.9.2.js Lib::jquery/jquery.ba-hashchange.min.js Lib::jquery/jquery.details.js Lib::jquery/jquery.details.min.js Lib::jquery/jquery.hoverIntent.js Lib::jquery/jquery.min.js Lib::mage/captcha.js Lib::mage/dropdown_old.js Lib::mage/list.js Lib::mage/loader_old.js Lib::mage/webapi.js Lib::moment.js Lib::requirejs/require.js Lib::date-format-normalizer.js Lib::legacy-build.min.js Lib::modernizr Lib::tiny_mce Lib::varien Lib::jquery/editableMultiselect Lib::jquery/jstree Lib::jquery/fileUploader Lib::css Lib::lib Lib::extjs Lib::prototype Lib::scriptaculous Lib::mage/requirejs Lib::mage/adminhtml Lib::mage/backend Magento_Swagger::swagger-ui
arnoudhgz commented 6 years ago

@akshgods do you have any custom widget in your theme folder (not specific for the cart/checkout)?

Do you see a javascript error in the your console when you enable the bundling and minifying and go to the cart or checkout page? If so, post it.

What does the following mean?

more on it: is there problem my view.xml for exclude files?

akshgods commented 6 years ago

@arnoudhgz , Custom Widget:

  1. boostmyshop/module-point-of-sales
  2. Banner slider

    > I cant see any javascript error on eneble the bundling and minify ,cart or checkout page.

more on it: is there problem my view.xml for exclude files: in exclude tag, magento exclude those js file at the time of bundling, so should i need to remove any js file from it, so mageno can include it in bundling.

magento-engcom-team commented 6 years ago

@akshgods, thank you for your report. We were not able to reproduce this issue by following the steps you provided. Please try to reproduce this issue on a clean installation or latest release.

akshgods commented 6 years ago

@magento-engcom-team , thanks for your reply . soon i will update latest release and check the issue .

magento-engcom-team commented 6 years ago

@akshgods, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.

OBog commented 5 years ago

I have exactly the same problem. @akshgods , did you manage to find the workaround for the issue?