Sorry. I wanted the code for countries not currencies.phpuk wrote:Try this...
$this->data['currency'] = $order_info['currency'];
I guess I could run sql on $order_info['payment_country'] or similar to get the 3 digit ISO code just a bit too lazy to echo out what it holds (country id I'll guess).
Hi,
$order_info['payment_country'] would give United Kingdom for example.
Quick suggestion try something like:
Phil.
$order_info['payment_country'] would give United Kingdom for example.
Quick suggestion try something like:
Code: Select all
$query = "SELECT `iso_code_3` FROM `country` WHERE `name` = '". $order_info['payment_country'] . "'";
Thanks
I can run a select query with that on the countries table. Just need to look up an example for how OPC handles queries to keep things within the structure. Seems like it is query(sql) function.
Learning about how this works while at this
Thanks again.
EDIT: Just saw your example sql thanks. I know the sql to get the info but want to do it within the structure of this app. From looking at the mysql.php file, it looks like it will be $somevar = query(select ...xyz)
Anyway, thanks for your help.
I can run a select query with that on the countries table. Just need to look up an example for how OPC handles queries to keep things within the structure. Seems like it is query(sql) function.
Learning about how this works while at this
Thanks again.
EDIT: Just saw your example sql thanks. I know the sql to get the info but want to do it within the structure of this app. From looking at the mysql.php file, it looks like it will be $somevar = query(select ...xyz)
Anyway, thanks for your help.
Hi Daniel,
I have had a question thrown at me by one of my customers whilst working on some behind the scenes beta stuff including OpenCart...
I have had a question thrown at me by one of my customers whilst working on some behind the scenes beta stuff including OpenCart...
Thoughts...Can you show a small logo for both the shipping ie UPS and payment types ie Protx next to the options in the checkout area of the shopping cart rather than just a simple text or even in conjunction with the simple text?
Sage Pay is done.
Everything now validates but it can not be used until Tuesday 21st April 2009! The current version will work until then but only in the live environment not any of the test or simulation environments.
Daniel - This is a priority release for all Protx users as the current implementation simply will not work as Sage Pay have upgraded their form version to 2.23 which is not compatible with the current version in OpenCart.
I will also post this in Contributions.
Phil.
Everything now validates but it can not be used until Tuesday 21st April 2009! The current version will work until then but only in the live environment not any of the test or simulation environments.
Daniel - This is a priority release for all Protx users as the current implementation simply will not work as Sage Pay have upgraded their form version to 2.23 which is not compatible with the current version in OpenCart.
I will also post this in Contributions.
Phil.
Attachments
Sage Pay for version 1.2.6
Hello,
I am trying to develop a merchant gateway module for an ecommerce solution I am deploying using OpenCart. I am not too knowledgeable about PHP but have done programming with many other languages. Is there any sort of guide or a good PHP example file that would show me how to do this. The gateway provider did provide a nice PHP file that will format things fairly nicely, but I am not sure how to tie it into OpenCart's PHP code. Any help would be appreciated.
Thanks.
Allan
I am trying to develop a merchant gateway module for an ecommerce solution I am deploying using OpenCart. I am not too knowledgeable about PHP but have done programming with many other languages. Is there any sort of guide or a good PHP example file that would show me how to do this. The gateway provider did provide a nice PHP file that will format things fairly nicely, but I am not sure how to tie it into OpenCart's PHP code. Any help would be appreciated.
Thanks.
Allan
Yeah, i would like such a modulemikeweb wrote:Yeah so many systems
The systems I want to add are
- iDeal (widely used (and accepted) dutch bank system, each bank had its own system to pay to all banks)
- Mollie (sms mms ideal phone)
- TargetPay (sms mms ideal phone)
etc.
Just so you're aware Daniel, I'm also working on a payment gateway, as one of my clients need it. I will most certainly ensure it's posted here and/or put up as a contribution once it's completed. Currently working on EWAY payment gateway 
Keep up the good work mate!

Keep up the good work mate!
Coming soon, working on a port to OpenCart 1.2.x. OpenCartZero already has it.google checkout if possible??
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I'm developing an internal 'shop' for our organisation - ideally I'm looking for a "Puchase Order"-based payment solution i.e. the buyer simply has to supply a valid account number and an appropriate puchase order code. Any chance of such a module being developed in the near future?
Who is online
Users browsing this forum: Amazon [Bot] and 29 guests