Home › Forums › WoodMart support forum › Empty cart button link
Empty cart button link
- This topic has 1 reply, 2 voices, and was last updated 5 years, 4 months ago by Artem Temos.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
July 2, 2019 at 7:41 am #130946
exe65ParticipantHello,
I am trying to modify the button link “back to shop” when the cart is empty (back to home page).
I tried with – path: child-theme/woocommerce/cart folder cart-empty.php file – but it doesn’t work, actually i can no longer delete the products from cart if this is present.
<?php /** * Empty cart page * * This template can be overridden by copying it to yourtheme/woocommerce/cart/cart-empty.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woothemes.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 3.1.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <?php if ( etheme_get_option('cart_special_breadcrumbs') ) : ?> <div class="cart-checkout-nav"> <a href="<?php echo wc_get_cart_url(); ?>" class="active"> <?php esc_html_e('Shopping cart', 'woodmart'); ?></a> <span class="delimeter"> <?php echo etheme_get_cart_sep(); ?></span> <a href="<?php echo wc_get_cart_url(); ?>"> <?php esc_html_e('Checkout', 'woodmart'); ?></a> <span class="delimeter"><?php echo etheme_get_cart_sep(); ?></span> <a href="#" class="no-click"> <?php esc_html_e('Order complete', 'woodmart'); ?></a> </div> <?php endif; ?> <?php wc_print_notices(); $empty_cart_content = etheme_get_option('empty_cart_content'); ?> <?php do_action('woocommerce_cart_is_empty'); ?> <div class="cart-empty empty-cart-block"> <?php if( empty( $empty_cart_content ) ): ?> <h1 style="text-align: center;"><?php esc_html_e('Your shopping cart is empty', 'woodmart') ?></h1> <p style="text-align: center;"><?php esc_html_e('We invite you to get acquainted with an assortment of our shop. Surely you can find something for yourself!', 'woodmart') ?></p> <?php else: ?> <?php echo do_shortcode( $empty_cart_content ); ?> <?php endif; ?> <?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?> <p><a class="btn" href="<?php echo esc_url( home_url('/') ); ?>"><span><?php esc_html_e('Return To Shop', 'woodmart') ?></span></a></p> <?php endif; ?> </div>
July 2, 2019 at 9:09 am #130951
Artem TemosKeymasterHi,
Sorry, but we don’t understand your question. Could you please describe what is wrong with our theme and this file? Note that the code you sent is not our theme’s code.
Regards
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to create new topics. Login / Register