How to Edit Checkout Page

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

How to Edit Checkout Page

Post by VIPER7 » Fri May 09, 2014 11:08 am

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!

User avatar
mikek
Commander (CMDR)
Commander (CMDR)
Posts: 112
Joined: Wed Oct 15, 2008 9:30 pm
Location: Boston, MA
Contact:

Re: How to Edit Checkout Page

Post by mikek » Fri May 09, 2014 12:21 pm

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.
Mike Kolev

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: How to Edit Checkout Page

Post by VIPER7 » Fri May 09, 2014 12:23 pm

Thanks for the reply! Is there any way to post a simple message on the checkout page as well?

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: How to Edit Checkout Page

Post by VIPER7 » Fri May 09, 2014 12:38 pm

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?

User avatar
mikek
Commander (CMDR)
Commander (CMDR)
Posts: 112
Joined: Wed Oct 15, 2008 9:30 pm
Location: Boston, MA
Contact:

Re: How to Edit Checkout Page

Post by mikek » Fri May 09, 2014 12:58 pm

In EditBillAddress.aspx.cs Page_Init() method replace:

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

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: How to Edit Checkout Page

Post by VIPER7 » Fri May 09, 2014 1:14 pm

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!

Post Reply