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

Fix bug where razorpay utils were included even if it was disabled #9

Merged
merged 1 commit into from
Apr 28, 2016

Conversation

ccrims0n
Copy link
Contributor

No description provided.

@ccrims0n ccrims0n merged commit 57ab8e4 into master Apr 28, 2016
@ccrims0n ccrims0n deleted the bug_fix branch April 28, 2016 06:48
@@ -27,7 +27,9 @@ public function __construct()

public function isRazorpayEnabled()
{
return Mage::getStoreConfigFlag(self::CONFIG_PATH_RAZORPAY_ENABLED);
return Mage::getSingleton('checkout/type_onepage')->getQuote()->getPayment()->getMethod() ==
Copy link
Contributor

Choose a reason for hiding this comment

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

brackets for the condition. Maybe save them in variables and then compare?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed this in next PR.

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

Successfully merging this pull request may close these issues.

2 participants