Post by exactweb » Fri Jan 24, 2014 9:41 pm

What does this comment mean?

Code: Select all

// Can not send confirmation emails for CBA orders as email is unknown
$this->load->model('payment/amazon_checkout');
if (!$this->model_payment_amazon_checkout->isAmazonOrder($order_info['order_id'])) {
1. What is a CBA order?
2. Why is the email unknown?

New member

Posts

Joined
Tue May 31, 2011 5:06 pm

Post by nvedia » Sat Jan 25, 2014 2:56 am

exactweb wrote:What does this comment mean?

Code: Select all

// Can not send confirmation emails for CBA orders as email is unknown
$this->load->model('payment/amazon_checkout');
if (!$this->model_payment_amazon_checkout->isAmazonOrder($order_info['order_id'])) {
1. What is a CBA order?
2. Why is the email unknown?

CBA = Checkout by Amazon
Not sure about #2, probably because customer gives all info on amazon website?

Donate here to show support if you think I have helped you today!

Opencart Documentation


User avatar
Active Member

Posts

Joined
Sun May 22, 2011 12:54 pm

Post by exactweb » Sat Jan 25, 2014 4:56 am

Cheers I was searching google but the only results I could find was common wealth bank.

2. Instead of the extra database query is there a config option?
So change that block of code into:

Code: Select all

if (!$this->config->get('amazon_enabled')) {

New member

Posts

Joined
Tue May 31, 2011 5:06 pm
Who is online

Users browsing this forum: Bing [Bot] and 18 guests