Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Active Countries Contribution Error


Guest

Recommended Posts

Hi,

 

I have and Australian store with both the Active Countries contribution and the Purchase without account contribution installed.

 

If I create a new account when I check out, the ‘My Account Information’ screen displays the country ‘Australia’ as the only country option. Leaving the customer only to have to choose which state they are from. So this screen is working correctly with Active Countries contribution installed and configured for just purchases within Australia.

 

I also have the Purchase without account contribution installed. If I checkout using this option and not create an account, the first screen is the ‘Contact Details’ and in this case the Active Countries contribution is not working as every country is available in the drop-down list. If I select ‘Australia’, fill out all other details and click continue then the screen is refreshed with an error: “ Please select a state from the States pull down menu.” And the country drop-down list has changed to static text ‘Australia’ which is what should have appeared on the previous screen. Now when you go to choose the correct state as prompted every state in the oscommerce db is displayed….not just Asutralian as it should be. If I select a state and continue (I can only progress to the next screen if I choose an Australian state) I receive this error message on the next screen: Invalid Country for Shipping. So now I am on the ‘Delivery Information’ screen. I am prompted to enter all of the data for ‘New Shipping Address’. There are no visual problems on this screen with the country field as it just displays ‘Australia’ and the state drop-down list with just the Aus states. When I click continue the screen is refreshed and I receive the same error message: Invalid Country for Shipping.

 

I think that either these two contributions are clashing together or I have done something incorrect in the installation of Active countries. Can anyone shed some light on what might be going wrong here?

 

Thanks in advance.

Link to comment
Share on other sites

you will have to change the pwa logic to use the active countries code validation. The implementation should be similar to the changes done with the create_account.php page.

 

So by default those 2 contributions won't work together without code changes.

Link to comment
Share on other sites

you will have to change the pwa logic to use the active countries code validation. The implementation should be similar to the changes done with the create_account.php page.

 

So by default those 2 contributions won't work together without code changes.

 

Hi,

 

Thanks for your response. Unfortunately I arent much of a programmer and I arent really sure how I go about making your suggested change. I can easily enough install contributions but dont know how to go about combining the two. Is there an easier way to deal with my problem or do you think the code changes could be minimal and easy enough to combine? I ceratinly couldnt figure out to change the pwa code to use the active countries code. Any suggestions? Thanks.

Link to comment
Share on other sites

Hi,

 

Thanks for your response. Unfortunately I arent much of a programmer and I arent really sure how I go about making your suggested change. I can easily enough install contributions but dont know how to go about combining the two. Is there an easier way to deal with my problem or do you think the code changes could be minimal and easy enough to combine? I ceratinly couldnt figure out to change the pwa code to use the active countries code. Any suggestions? Thanks.

The suggested change was general because of the dependencies between the 2 modules. And that is apart of other contributions/customizations that you may have and affect the same pages. When 2 or more contributions affect the same script (like the create account) is likely that new code needs to be in place to deal with each case. It becomes a custom thing. So it is necessary to understand the logic of each contribution and be familiar with php/mysql.

Link to comment
Share on other sites

ok thanks. Well I think that my only option is to either uninstall one or the other and try to find another way to do this or to find someone who may be able to help. Do you know of anyone who may be able to help me customize my script? Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...