Print Page | Close Window

Default Country

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=5162
Printed Date: 06-July-2025 at 11:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Default Country
Posted By: joshs
Subject: Default Country
Date Posted: 06-June-2012 at 4:15pm
Using Product Cart 4.5a

Regarding country codes.

In the list of country codes - both on store front and back end I would like to establish the "US" as the default country in the country list.

So that a new customer would see "United States" as the pre-selected country, not Canada.

How do I go about this?

Thanks
Josh


-------------
Josh Shirley
josh@windsurfutah.com



Replies:
Posted By: Guests
Date Posted: 06-June-2012 at 9:40pm
Hi Josh,

The default select is the store ship from country. Assuming you want to retain that for other purposes, you can override the default for these drop down selects in the register account, add customer, and one page checked by doing the following on these two files:
  • /includes/javascripts/opc_pcStateandProvince.asp
  • /includes/javascripts/pcStateandProvince.asp
Find:
if Session(pcv_strSessionPrefix&pcv_strCountryBox)="" then
Session(pcv_strSessionPrefix&pcv_strCountryBox)=scShipFromPostalCountry
end if
Just below that, add:
Session(pcv_strSessionPrefix&pcv_strCountryBox)="US"


Posted By: joshs
Date Posted: 07-June-2012 at 1:03pm
Thanks Sean:

I had looked at those files. But thought there might be another way.

I guess your way is the simplest.  Occam's Razor.

Josh



-------------
Josh Shirley
josh@windsurfutah.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net