Page 1 of 1

How to Edit Checkout Page

Posted: Fri May 09, 2014 11:08 am
by VIPER7
How can I edit my checkout page to display a message (see below) on the top of it that says we do not ship international orders. Furthermore, how do I remove all countries except the United States from the list of countries in the Country dropdown list?

THIS SHOPPING CART IS FOR USA ORDERS ONLY
WE SHIP TO THE BILLING ADDRESS OF THE USA CREDIT CARD ONLY

We have had too many problems with fraudulent orders and we have decided to only ship to U.S. addresses.

TIA for any help!

Re: How to Edit Checkout Page

Posted: Fri May 09, 2014 12:21 pm
by mikek
In AbleCommerce Gold all checkout pages are located under site /Checkout folder. You have to edit EditBillAddress.aspx.cs Page_Init() method and change Country.DataSource to only load U.S.

Re: How to Edit Checkout Page

Posted: Fri May 09, 2014 12:23 pm
by VIPER7
Thanks for the reply! Is there any way to post a simple message on the checkout page as well?

Re: How to Edit Checkout Page

Posted: Fri May 09, 2014 12:38 pm
by VIPER7
Ok, I got the text added on the page, no problem. Now I'm trying to locate the country data source. I don't see any countries listed in any of the cs files. Is there a country table in the db I need to edit?

Re: How to Edit Checkout Page

Posted: Fri May 09, 2014 12:58 pm
by mikek
In EditBillAddress.aspx.cs Page_Init() method replace:

//Country.DataSource = CountryDataSource.LoadAll();
Country.DataSource = CountryDataSource.SearchByName("United States");

Re: How to Edit Checkout Page

Posted: Fri May 09, 2014 1:14 pm
by VIPER7
Thanks Mike! Deleting all the other country rows in the DB worked too! We'll never ship to any other countries from our shopping cart so no need for any existence of any other country information at all. Thanks again for your help!