default.php
31 lines
| 1 | <?php /** |
| 2 | * |
| 3 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 4 | * @package WooCommerce\Templates |
| 5 | * @version 3.5.0 |
| 6 | * |
| 7 | * wp-content/plugins/woocommerce/templates/cart/cart-empty.php |
| 8 | */ |
| 9 | |
| 10 | defined( 'ABSPATH' ) || exit; |
| 11 | |
| 12 | ?> |
| 13 | |
| 14 | <div class="shopengine-empty-cart-message"> |
| 15 | <?php |
| 16 | if(!empty(WC()->cart) && WC()->cart->is_empty()) { |
| 17 | |
| 18 | if ( wc_get_page_id( 'shop' ) > 0 ) : ?> |
| 19 | <p class="cart-empty woocommerce-info"><?php esc_html_e( 'No products added to the cart', 'shopengine' ); ?></p> |
| 20 | <?php endif; |
| 21 | |
| 22 | } elseif(get_post_type() == \ShopEngine\Core\Template_Cpt::TYPE) { |
| 23 | ?> |
| 24 | <div class="shopengine shopengine-editor-alert shopengine-editor-alert-warning"> |
| 25 | <?php esc_html_e('There are products in your cart, please go to cart, clear it and refresh the editor.', 'shopengine'); ?> |
| 26 | </div> |
| 27 | <?php |
| 28 | } |
| 29 | ?> |
| 30 | </div> |
| 31 |