Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[multi currency] #21

Open
wants to merge 4 commits into
base: opencart1.5
Choose a base branch
from
Open

[multi currency] #21

wants to merge 4 commits into from

Conversation

mayankamencherla
Copy link
Contributor

Added multi currency for open cart 1.5

$this->data['currency_code'] = 'INR';
$this->data['display_currency'] = $order_info['currency_code'];
$this->data['display_total'] = number_format($display_total, 2, '.', '');
$this->data['total'] = (int) round($this->currency->format($order_info['total'], 'INR', 1, false) * 100);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use $order_info['total']

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ccrims0n Using order_info total

@@ -30,7 +35,7 @@ protected function index()
if (file_exists(DIR_TEMPLATE.$this->config->get('config_template').'/template/payment/razorpay.tpl')) {
$this->template = $this->config->get('config_template').'/template/payment/razorpay.tpl';
} else {
$this->template = 'default/template/payment/razorpay.tpl';
$this->template = 'payment/razorpay.tpl';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants