예제 #1
0
 * @author  WooThemes
 * @package WooCommerce/Templates
 * @version 2.0.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
wc_print_notices();
?>

<p class="cart-empty"><?php 
_e('Your cart is currently empty.', 'woocommerce');
?>
</p>

<?php 
do_action('woocommerce_cart_is_empty');
?>

<p class="return-to-shop"><a class="<?php 
echo product_post_button_class();
?>
 wc-backward" href="<?php 
echo esc_url(apply_filters('woocommerce_return_to_shop_redirect', wc_get_page_permalink('shop')));
?>
"><?php 
_e('Return To Shop', 'woocommerce');
?>
</a></p>
예제 #2
0
                ?>

							<?php 
            } elseif ('order-actions' === $column_id) {
                ?>
								<?php 
                $actions = array('pay' => array('url' => $order->get_checkout_payment_url(), 'name' => __('Pay', 'woocommerce')), 'view' => array('url' => $order->get_view_order_url(), 'name' => __('View', 'woocommerce')), 'cancel' => array('url' => $order->get_cancel_order_url(wc_get_page_permalink('myaccount')), 'name' => __('Cancel', 'woocommerce')));
                if (!$order->needs_payment()) {
                    unset($actions['pay']);
                }
                if (!in_array($order->get_status(), apply_filters('woocommerce_valid_order_statuses_for_cancel', array('pending', 'failed'), $order))) {
                    unset($actions['cancel']);
                }
                if ($actions = apply_filters('woocommerce_my_account_my_orders_actions', $actions, $order)) {
                    foreach ($actions as $key => $action) {
                        echo '<a href="' . esc_url($action['url']) . '" class="' . product_post_button_class() . ' ' . sanitize_html_class($key) . '">' . esc_html($action['name']) . '</a>';
                    }
                }
                ?>
							<?php 
            }
            ?>
						</td>
					<?php 
        }
        ?>
				</tr>
			<?php 
    }
    ?>
		</tbody>
예제 #3
0
			<br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php 
esc_attr_e('Update totals', 'woocommerce');
?>
" />
		</noscript>

		<?php 
wc_get_template('checkout/terms.php');
?>

		<?php 
do_action('woocommerce_review_order_before_submit');
?>

		<?php 
echo apply_filters('woocommerce_order_button_html', '<input type="submit" class="' . product_post_button_class() . '" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr($order_button_text) . '" data-value="' . esc_attr($order_button_text) . '" />');
?>

		<?php 
do_action('woocommerce_review_order_after_submit');
?>

		<?php 
wp_nonce_field('woocommerce-process_checkout');
?>
	</div>
</div>
<?php 
if (!is_ajax()) {
    do_action('woocommerce_review_order_after_payment');
}
<?php

/**
 * Proceed to checkout button
 *
 * Contains the markup for the proceed to checkout button on the cart
 *
 * @author  WooThemes
 * @package WooCommerce/Templates
 * @version 2.4.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
echo '<a href="' . esc_url(WC()->cart->get_checkout_url()) . '" class="checkout-button ' . product_post_button_class() . ' wc-forward">' . __('Proceed to Checkout', 'woocommerce') . '</a>';