1
sealdeal
oledrion
  • 2010/4/6 15:46

  • sealdeal

  • Just popping in

  • Posts: 72

  • Since: 2010/1/11


In the module oledrion when you go to check out the default country is france how do I change it to USA and how would I add state to form

2
Burning
Re: oledrion
  • 2010/4/6 15:54

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

I'm not sure but it seems that countries are listed from www/class/xoopslists.php

And about default displaying, see in www/modules/oledrion/checkout.php, lines 112 to 114
$countriesList = new XoopsFormSelect(_OLEDRION_COUNTRY'cmd_country'$commande->getVar('cmd_country',' e'));
        
$countriesList->addOptionArray($countries);
        
$sform->addElement($countriesListtrue);


I hope it helps, I have some doubts

3
sealdeal
Re: oledrion
  • 2010/4/6 18:24

  • sealdeal

  • Just popping in

  • Posts: 72

  • Since: 2010/1/11


where would I find $countriesList to edit it?
I could just change to the states I need.

4
mboyden
Re: oledrion
  • 2010/4/6 20:03

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


The countries list pulls from the main XOOPS definition of countries. I used Oledrion in a site, but I had to make a number of changes to accommodate the US where we have states as well as a few other issues. Also, Oledrion doesn't have a gateway for payment, you effectively have to bill them afterwards. Unfortunately I seem to lost most of my notes on this module.

If I remember right, I ended up making changes to the code in the pertinent locations and coding the states in to it.

My preference remains osCommerce but there certainly is some overhead to getting that one running. Haven't tried the others in awhile.

Good luck.

5
sealdeal
Re: oledrion
  • 2010/4/7 11:11

  • sealdeal

  • Just popping in

  • Posts: 72

  • Since: 2010/1/11


Where can I find this list in xoops?

6
mboyden
Re: oledrion
  • 2010/4/7 13:12

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


It's function getCountryList() in ./class/xoopslists.php

I haven't checked to see how accurate it is of recent aspects, but there are ISO country lists out there (maybe wikipedia) to check against as needed.

I'd have to go back and check the code, but I think I hacked a function into this called getStateList and then edited the code in Oledrion to load the state instead of the country.

If you PM me and get me your email address, I'd be happy to send you the version of the module I setup with the various changes which you can then diff against the released version to see all the changes.

7
Burning
Re: oledrion
  • 2010/4/7 16:28

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi' Mark,

I'm interested too :)

You got a PM !

8
Burning
Re: oledrion
  • 2010/4/7 19:47

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


@sealdeal : take a look to www/modules/oledrion/config.php file. An option about default country is available.

Login

Who's Online

357 user(s) are online (279 user(s) are browsing Support Forums)


Members: 0


Guests: 357


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits