Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
Fix free cart checking out
Browse files Browse the repository at this point in the history
  • Loading branch information
megawebmaster committed Jul 16, 2014
1 parent 90cd6cd commit 153502d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/jigoshop_checkout.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,10 @@ public static function render_shipping_dropdown()
*/
public static function process_gateway($gateway)
{
if (!$gateway) {
jigoshop::add_error(__('Invalid payment method.', 'jigoshop'));
if ($gateway === null) {
if (jigoshop_cart::$subtotal > 0) {
jigoshop::add_error(__('Invalid payment method.', 'jigoshop'));
}

return false;
}
Expand Down

0 comments on commit 153502d

Please sign in to comment.