Developer forum

Forum » Templates » set default freight method country in URL

set default freight method country in URL

Peter Bille Larsen
Reply

Hi DWs

Is it possible to set default freight method country in URL?
The problem is that we want to set a destination based on a currency. And some destinations have no VAT.

So when the user selects a currency, we want to change the destination (delivery), but we cannot set this, since there is no products in the basket.

We want USD > US  ; NOK > NO ; 

So mb we can set the default delivery destination with a URL ?
User can then change destination themselves later if they want. But it's guidelines for prices.

 

//Peter


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Peter

 

You can do like this:

&CountryCode=DK

 

BR Nicolai

Votes for this answer: 1
 
Peter Bille Larsen
Reply

perfect.

 

thanks.

 

 

 
Filip Lundby
Reply

Hi Nicolai. I tried but destination doesn't change.

 
Nicolai Høeg Pedersen
Reply

Hi Filip

 

Which destination does not change, and where?

 

The CountryCode changes the country used for calculating the default delivery and payment fees.

 

If you need to change the country in a step in the cart, set EcomOrderCustomerCountry or EcomOrderDeliveryCountry to the desired value.

 

BR Nicolai

 
Peter Bille Larsen
Reply

Hi Nicolai,

 

I have found out why the tags does not work for us. When Product Group Cache in Ecommerce > Advanced is enabled, none of the tags work.
Seems like a bug? or ..

 

//PB

 



 

 
Nicolai Høeg Pedersen
Reply

Maybe.

 

Will have QA look into it.

 

You must be logged in to post in the forum