Developer forum

Forum » Ecommerce - Standard features » Shipping methods not returned when there are no regions in DW

Shipping methods not returned when there are no regions in DW

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi there,

We have a customer that ships worldwide, and as you would guess we don't know all country regions in the world.
Currently in the checkout process, shipping methods are returned when they match order's country and region.
Would make sense to when there are no regions in DW for the order country, only match by the country field?

DW version - 9.7.4

Thanks,
BR, Mario


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I've tried to test the issue using environment with simple base cart template on DW9.7.4 and did not see any bug. Rendering default shipping/specific rule is related to country and/or its region checked in the shipping definition and performed properly - proof

BR, Oleg QA 

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Oleg,

In your scenario you are using a dropdown for Regions and I assume it's driven by the Regions loop.

We use it as well, but since the definition of region vary from country to country and 3rd party shipping providers require a region code, we use a text field so users can enter their region - https://www.screencast.com/t/wGLk9HRTOb

My question in this thread is if it makes sense to when there are no regions in DW for the order country, only match by the country field? It would be like a fallback that would only apply when the country doesn't have regions set in DW.

 

BR, Mario

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Mario,

I think the problem might be caused by the template.

If both country and region is filled during checkout then we return shipping methods which matches both country and region.
If only country is filled (region is empty) then we return shipping methods which matches the country.

Make sure that your checkout template does not set a value in the region field. It must be left completely empty (no spaces).
Try to find the current cart in the administration and see if region has a value when you get to the step without any shipping methods.

I'm not sure if your template disables the region field when specific countries are selected.
If that is the case then you might need to mark the field as readonly instead and set an empty value (or use a hidden region field with an empty value).
This is to ensure that an empty value for region is posted back and registered on the cart - otherwise it could contain the previously selected value (a state in the US?).

Best regards,
Morten

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Oh... I watched the video again and apparently I misunderstood your question :)

You want us to disregard the region when no regions exists for that country in DW and allow the users to enter "invalid" regions?

Why don't you just hide the region field? If you need them to enter some "invalid" region then you could store that in a custom field.

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Morten,

That's exactly what I was trying to see if would be possible to do - disregard the region when no regions exists for that country in DW.

Having a custom field for these scenarios would require a customizations in integration because orders are synced with ERP, from there customers create labels for tracking and order is synced back to DW. This would have to happen on all of our projects for both orders PUT and GET.

BR, Mario

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

I see. Anyway, it doesn't seem to be possible at the moment, but I will discuss this feature with the product owner.

/Morten

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Mario,

I have registered this as Bug 73440: Shipping methods not returned when there are no regions.

Best regards,
Morten

 

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi Morten,

Thanks for the update.

BR, Mario

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Mario

The problem regarding #73440 "Shipping methods not returned when there are no regions" has now been resolved in Dynamicweb version 9.7.6

To upgrade please choose this version from download:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum