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).
$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'] . "'";
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
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 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?
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.
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.
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)
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??
MHC Web Design
Override Engine * Integrated VQMod * Unused Images Manager * Instant Option Price Calculator * TrustPilot Reviews * Google Rich Snippets * Google Tag Manager * Export/Import Tool * Template Switcher PHP/Twig
Users browsing this forum: No registered users and 6 guests