| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Shipping country/state behavior is perfect, make billing the same? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Shipping country/state behavior is perfect, make billing the same?
Right now in the shipping address section, when a customer chooses a country, the state list automatically populates with the states that are listed as part of that country in the database, and if there are no such states a "no states available for this country" message fires and the field becomes not-required.
Then why does the billing address section work differently? Why does every state for every country get listed in the dropdown box, when the most obvious and organized way to handle this has already been programmed and implemented in the other section? My main question is: How can I get the billing address country/state selection to work in the same was as the shipping address? I've tried looking at change_states.js but it's far too complex for me to figure out what's going on to simply change a few variables. Thanks!
__________________
----------------- X-cart version 4.2.1 |
|||||||
#2
|
|||||||
|
|||||||
Re: Shipping country/state behavior is perfect, make billing the same?
Figured it out, and is it a weird solution:
In $X-cart_dir/skin1/customer/main/register_billing_address.tpl: Find and CUT: Code:
Take that code you just snipped and paste it AFTER the following: Code:
Boom - you've got the same functionality in the shipping AND billing sections. Why was this not the default?
__________________
----------------- X-cart version 4.2.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|