Tags/topics: 
1
Answers
Vote up!
1
Vote down!

Zero Dollar Checkout

Anyone have a way around a $0 checkout? Since Paypal needs at least $0.01 to complete a transaction this is throwing a kink in the site I am working on.

Thanks!

Asked by: coxa11
on January 28, 2016

1 Answer

Vote up!
0
Vote down!

Hey Coxa11,

I think I answered this when I answered your other post earlier, only in the reverse of that post. For each payment method, add a condition to their Rule that says the order total must be >=$0.01.

For instance,

{ "commerce_payment_commerce_cheque" : {
"LABEL" : "Cheque",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"TAGS" : [ "Commerce Payment" ],
"REQUIRES" : [ "commerce_price", "commerce_order", "commerce_payment" ],
"ON" : { "commerce_payment_methods" : [] },
"IF" : [
{ "commerce_price_compare_price" : {
"first_price" : [ "commerce-order:commerce-order-total" ],
"operator" : "\u003E=",
"second_price" : { "value" : { "amount" : 1, "currency_code" : "USD" } }
}
}
],
"DO" : [
{ "commerce_payment_enable_commerce_cheque" : {
"commerce_order" : [ "commerce-order" ],
"payment_method" : { "value" : {
"method_id" : "commerce_cheque",
"settings" : { "information" : "Please print out a copy of your order email confirmation page and attach it to your check. Please send all checks to Collaborative for Educational Services 97 Hawley St. Northampton MA. 01060" }
}
}
}
}
]
}
}

Travis
Answer by: Travis
Posted: Feb 11, 2016