Ejemplo n.º 1
0
function jigoshop_checkout( $atts ) {

	if (!defined('JIGOSHOP_CHECKOUT')) define('JIGOSHOP_CHECKOUT', true);
	
	if (sizeof(jigoshop_cart::$cart_contents)==0) :
		wp_redirect(get_permalink(get_option('jigoshop_cart_page_id')));
		exit;
	endif;
	
	$non_js_checkout = (isset($_POST['update_totals']) && $_POST['update_totals']) ? true : false;
	
	$_checkout = jigoshop_checkout::instance();
	
	$_checkout->process_checkout();
	
	$result = jigoshop_cart::check_cart_item_stock();
	
	if (is_wp_error($result)) jigoshop::add_error( $result->get_error_message() );
	
	if ( jigoshop::error_count()==0 && $non_js_checkout) jigoshop::add_message( __('The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page.', 'jigoshop') );
	
	jigoshop::show_messages();
	
	jigoshop_get_template('checkout/form.php', false);
	
}
Ejemplo n.º 2
0
function jigoshop_checkout($atts)
{
    if (!defined('JIGOSHOP_CHECKOUT')) {
        define('JIGOSHOP_CHECKOUT', true);
    }
    $non_js_checkout = isset($_POST['update_totals']) && $_POST['update_totals'] ? true : false;
    $result = jigoshop_cart::check_cart_item_stock();
    if (is_wp_error($result)) {
        jigoshop::add_error($result->get_error_message());
    }
    if (!jigoshop::has_errors() && $non_js_checkout) {
        jigoshop::add_message(__('The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page.', 'jigoshop'));
    }
    jigoshop::show_messages();
    jigoshop_get_template('checkout/form.php', false);
}
Ejemplo n.º 3
0
/**
 * Outputs the payment page when a user comes to pay from a link (for an existing/past created order)
 */
function jigoshop_pay_for_existing_order($pay_for_order)
{
    global $order;
    $order = $pay_for_order;
    jigoshop_get_template('checkout/pay_for_order.php');
}
 /**
  * Output the payment methods block
  */
 public function checkout_form_payment_methods()
 {
     jigoshop_get_template('checkout/payment_methods.php');
 }
/**
 * Order review table for checkout
 **/
function jigoshop_order_review()
{
    jigoshop_get_template('checkout/review_order.php', false);
}
Ejemplo n.º 6
0
<?php

jigoshop_get_template('jigoshop/loop-shop.php');
Ejemplo n.º 7
0
	<div class="col2-set" id="customer_details">
		<div class="one_half">

			<?php 
do_action('jigoshop_checkout_billing');
?>
						
		</div>
		<div class="one_half last">
		
			<?php 
do_action('jigoshop_checkout_shipping');
?>
					
		</div>
	</div>
	
	<div class="clear"></div>
	<h3 id="order_review_heading"><?php 
_e('Your order', 'jigoshop');
?>
</h3>
	
	<?php 
jigoshop_get_template('checkout/review_order.php');
?>
	
</form>

<?php 
do_action('after_checkout_form');
Ejemplo n.º 8
0
 * @copyright  Copyright (c) 2011 Jigowatt Ltd.
 * @license    http://jigoshop.com/license/commercial-edition
 */

do_action('before_checkout_form');

// filter hook for include new pages inside the payment method
$get_checkout_url = apply_filters( 'jigoshop_get_checkout_url', jigoshop_cart::get_checkout_url() ); ?>

<form name="checkout" method="post" class="checkout" action="<?php echo $get_checkout_url; ?>">
	
	<div class="col2-set" id="customer_details">
		<div class="col-1">

			<?php do_action('jigoshop_checkout_billing'); ?>
						
		</div>
		<div class="col-2">
		
			<?php do_action('jigoshop_checkout_shipping'); ?>
					
		</div>
	</div>
	
	<h3 id="order_review_heading"><?php _e('Your order', 'jigoshop'); ?></h3>
	
	<?php jigoshop_get_template('checkout/review_order.php', false); ?>
	
</form>

<?php do_action('after_checkout_form'); ?>
Ejemplo n.º 9
0
<?php

jigoshop_get_template('product_taxonomy.php');