Advertisement
danrancan

./wp-content/themes/h-code/woocommerce/cart/cart-empty.php

Jul 7th, 2023
830
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Empty cart page
  4.  *
  5.  * @package H-Code
  6.  * @version 7.0.1
  7.  */
  8.  
  9. defined( 'ABSPATH' ) || exit;
  10.  
  11. ?>
  12. <section>
  13.     <div class="container">
  14.         <div class="row">
  15.             <?php wc_print_notices(); ?>
  16.             <div class="col-md-12 text-center">
  17.                 <?php do_action( 'woocommerce_cart_is_empty' ); ?>
  18.  
  19.                 <?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
  20.                     <p class="return-to-shop">
  21.                         <a class="button wc-backward highlight-button-dark btn-medium button btn<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
  22.                             <?php
  23.                                 /**
  24.                                  * Filter "Return To Shop" text.
  25.                                  *
  26.                                  * @since 4.6.0
  27.                                  * @param string $default_text Default text.
  28.                                  */
  29.                                 echo esc_html( apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'H-Code' ) ) );
  30.                             ?>
  31.                         </a>
  32.                     </p>
  33.                 <?php endif; ?>
  34.             </div>
  35.         </div>
  36.     </div>
  37. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement