Post by oplini » Mon May 25, 2020 7:06 pm

Hello my store is locate in Netherlands so if a guest buy something hi Will find Netherlands as preselected country in billing and shipping informazioni.
I would like preselected also a region for take off --plese select-- Like preselected choise.
How can I do it?

www.walmartone.com


Newbie

Posts

Joined
Mon May 25, 2020 7:02 pm

Post by rjcalifornia » Mon May 25, 2020 11:44 pm

oplini wrote:
Mon May 25, 2020 7:06 pm
Hello my store is locate in Netherlands so if a guest buy something hi Will find Netherlands as preselected country in billing and shipping informazioni.
I would like preselected also a region for take off --plese select-- Like preselected choise.
How can I do it?
There are two ways to accomplish that:

1. Delete all countries except the one you need, that way the user will only see one country

2. Edit the checkout file, and use JavaScript to preselect the country. You should take into account that the values of the dropdown are IDs, not the ISO name. The JavaScript code will look like this:

Code: Select all

document.getElementById("input-payment-country").value= "21";

Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by cedcommerceteam » Wed May 27, 2020 12:19 pm

oplini wrote:
Mon May 25, 2020 7:06 pm
Hello my store is locate in Netherlands so if a guest buy something hi Will find Netherlands as preselected country in billing and shipping informazioni.
I would like preselected also a region for take off --plese select-- Like preselected choise.
How can I do it?
Hi there,

Can you please share screenshot as while guest checkout preselected country shows in list as selected one but there are other countries in a list as well so guests can also change that, so what exactly you mean? Please clear your point.

Thanks !!!

Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: support@cedcommerce.com
CedCommerece : Officail Opencart Partners
CedCommerce Official : www.cedcommerce.com
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Magenative Mobile App/IOS Development : magenative.com


User avatar
Active Member

Posts

Joined
Wed Aug 09, 2017 9:02 pm
Who is online

Users browsing this forum: No registered users and 19 guests