objecta wrote:Hi
I have developed a new Shipment plugin that is using information from the Shipment adresse provide in the checkout. When the GetShippingOptions is called from Your One Page Checkout the shipping adresse is missing data in several of the fields provided during checkout.
I have also tested using the FixedRateShipping plugin and here the Shipping Addresse is missing information too. Also I have disabled the One Page Checkout feature and tested again, this time Shipping Adresse is correct.
I'm using NopRealOnePageCheckout_3.6.572.16989.zip and I have tested with several different configuration with the same result, the Shipping Address is missing information.
To reproduce just use the FixedRateShipping and set a breakpoint in the GetShippingOptions method and check the ShippingAddress.
We cannot use the Your One Page Check in our setup, because we need the Adresse1 and Zip
information to lookup Pickup Addresses for the shipment carrier.
Best regards
Objecta Data
Klaus E. Frederiksen
Hi Klaus,
Currently, the OnePageCheckout plugin updates only a few fields in the Shipping Address - country, state/province, city and zipcode. Most of the shipping methods depends only on these fields and that's why we update only them when they are changed. This is the reason why you receive a missing fields in GetShippingOptions method.
The standard checkout process works for you, because the shipping address and the shipping methods panels are on different pages. First, you need to enter your shipping address and then you see the shipping methods based on that address. However, the things with OnePageCheckout plugin are a little bit different. Everything is visible at the same time on the page and some actions on the page should trigger an update to some other panels ( i.e. clicking on BillingCountry should update PaymentMethods ). This is why we should be careful which fields need to be updated, otherwise this may have a negative impact on the loading time.
Could you please explain in more details how you use the Address1. Are the "Address1" and "ZipCode" the only fields that you need ?
I'm asking this because based on your information, we might decide to add a few settings which will trigger an update to ShippingMethods when you change the Address1 or Address2 or even the Phone Number.
Looking forward to your reply!