cart-empty.php
3 years ago
cart-item-data.php
5 years ago
cart-shipping.php
5 years ago
cart-totals.php
5 years ago
cart.php
3 years ago
cross-sells.php
5 years ago
mini-cart.php
5 years ago
proceed-to-checkout-button.php
3 years ago
shipping-calculator.php
3 years ago
proceed-to-checkout-button.php
28 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Proceed to checkout button |
| 4 | * |
| 5 | * Contains the markup for the proceed to checkout button on the cart. |
| 6 | * |
| 7 | * This template can be overridden by copying it to yourtheme/woocommerce/cart/proceed-to-checkout-button.php. |
| 8 | * |
| 9 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 10 | * (the theme developer) will need to copy the new files to your theme to |
| 11 | * maintain compatibility. We try to do this as little as possible, but it does |
| 12 | * happen. When this occurs the version of the template file will be bumped and |
| 13 | * the readme will list any important changes. |
| 14 | * |
| 15 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 16 | * @package WooCommerce\Templates |
| 17 | * @version 7.0.1 |
| 18 | */ |
| 19 | |
| 20 | if ( ! defined( 'ABSPATH' ) ) { |
| 21 | exit; // Exit if accessed directly. |
| 22 | } |
| 23 | ?> |
| 24 | |
| 25 | <a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>"> |
| 26 | <?php esc_html_e( 'Proceed to checkout', 'woocommerce' ); ?> |
| 27 | </a> |
| 28 |