function fflcommerce_checkout($atts) { if (!defined('FFLCOMMERCE_CHECKOUT')) { define('FFLCOMMERCE_CHECKOUT', true); } $non_js_checkout = isset($_POST['update_totals']) && $_POST['update_totals'] ? true : false; $result = fflcommerce_cart::check_cart_item_stock(); if (is_wp_error($result)) { fflcommerce::add_error($result->get_error_message()); } if (!fflcommerce::has_errors() && $non_js_checkout) { fflcommerce::add_message(__('The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page.', 'fflcommerce')); } fflcommerce::show_messages(); fflcommerce_get_template('checkout/form.php', false); }
/** * Outputs the payment page when a user comes to pay from a link (for an existing/past created order) */ function fflcommerce_pay_for_existing_order($pay_for_order) { global $order; $order = $pay_for_order; fflcommerce_get_template('checkout/pay_for_order.php'); }
/** * Order review table for checkout **/ function fflcommerce_order_review() { fflcommerce_get_template('checkout/review_order.php', false); }
/** * Output the payment methods block */ public function checkout_form_payment_methods() { fflcommerce_get_template('checkout/payment_methods.php'); }
<?php fflcommerce_get_template('product_taxonomy.php');