Created by: SUMIT
Improve your WooCommerce site sales by accepting all credit cards
* Securely store customer payments methods for future purchases
* Issue and email invoices/receipts automatically following sales
* Process recurring charges using our Recurring Billing module
* Synchronize your inventory levels with our stock module
* Enable WooCommerce Subscriptions plugin for managing recurring bills
* Combine CartFlows & Cartflows Pro plugins for better sales promotions
= Custom installments count =
function CustomInstallmentsLogic($MaximumPayments, $OrderValue) {
$Cart = WC()->cart;
return 5;
}
add_filter(‘sumit_maximum_installments’, ‘CustomInstallmentsLogic’);
function CustomCustomerFields($Customer, $Order) {
$Customer[‘Billing last name’] = $Order->get_billing_last_name();
return $Customer;
}
add_filter(‘sumit_customer_fields’, ‘CustomCustomerFields’);
function CustomItemFields($Item, $Product, $UnitPrice, $OrderItem, $Order) {
// Add details to item name
$Item[‘Name’] = $Item[‘Name’] . ‘ – ‘ . $Product->get_sku();
// Remove zero priced items
if ($UnitPrice == 0)
return null;
return $Item;
}
add_filter(‘sumit_item_fields’, ‘CustomItemFields’);