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

No ability to set shipping $ value in admin until page refreshed #6

Closed ctadlock closed 6 years ago

ctadlock commented 6 years ago

I can reliably reproduce an error when placing an admin order where the admin is unable to set the $ amount of the shipping as they are all already set at $0. The solution is to refresh the page (press return in address bar), then it works. Ive been unable to determine the cause; there are no network or console errors. Its for an existing customer, the choice of address, payment method.. don't seem to have an effect.

It "feels" like a state timing issue, where when the page is first loaded some flag isn't set properly and the display logic acts as if the amount as been set to $0. Refreshing the page keeps all the other data about the order, but when the "get shipping rates" link is clicked, the appropriate UI is shown allowing the admin to set the $ amount.

Magneto 2.2.3 PHP 7.1 Latest Chrome on latest Mac

image

srenon commented 6 years ago
  1. You seem to have 3 shipping rates enabled, so could you provide a screenshot of the config for this module?

  2. You mention that this issue only affects existing customers, what does "Customer Shipping Account" does?

  3. Did you try disabling this module, to see if it is the cause of your issue?

ctadlock commented 6 years ago

Yes, I have three shipping methods enabled:

We use the Flat rate for customer to provide their own shipping account info at checkout; this is done with the Amasty Order Attributes extension

The problem only manifests when using this extension, so disabling this extension wont help anything. Im still playing around to try to get a repro case that cause it to not happen, given that it happens every time.

image

image

image

srenon commented 6 years ago

When placing an order from admin by default it should only show the drop down

image

You should check these files

MagePal/CustomShippingRate/view/adminhtml/layout/* MagePal/CustomShippingRate/view/adminhtml/templates/order/create/shipping/method/form.phtml

If you can repoduce this issue on a blank magento install without any thirdparty then I will take a look.

ctadlock commented 6 years ago

Those files are fine, presuming the version that is in packagist is accurate. I have to reload the page to get it to show that UI.

srenon commented 6 years ago

can I see a screenshot of the entire shipping method area, for when it works and when it does not

ctadlock commented 6 years ago
  1. When page is first loaded... image

  2. After adding product to cart and clicking get shipping methods and rates image

  3. After pressing return in the browser url bar (Chrome/Mac)... image

  4. After selecting one of the shipping rates and setting a $ value... image

srenon commented 6 years ago

Enabled template hints and see what template this is using... When working correctly it should be MagePal/CustomShippingRate/view/adminhtml/templates/order/create/shipping/method/form.phtml

image

ctadlock commented 6 years ago

Good idea. Itsapp/code/Wyomind/PickupAtStore/view/adminhtml/templates/shipping/order/create/shipping/method/form.phtml when the page firsts loads, then when I press return in the browser url it is vendor/magepal/magento2-customshippingrate/view/adminhtml/templates/order/create/shipping/method/form.phtml.

Im also using the Wyomind Advanced Inventory extension

image

image

srenon commented 6 years ago

I going to go ahead an closed this ticket since it is a module conflict and not a bug.

If you need further help, you are more than welcome to open a paid support ticket at support@magepal.com