This topic has 2 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler
Hello,
Can you please update the solution on this thread:
https://www.8theme.com/topic/cart-page-4/
The content in the file cart-empty.php has changed, i guess with the updates.
My file: http://shrani.si/f/1y/Pq/1Azf8bpt/zajeta-slika111.png
Thank you,
Hello,
child-theme/woocommerce/cart folder cart-empty.php file:
<?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', 'xstore'); ?></a>
<span class="delimeter"> <?php echo etheme_get_cart_sep(); ?></span>
<a href="<?php echo wc_get_cart_url(); ?>"> <?php esc_html_e('Checkout', 'xstore'); ?></a>
<span class="delimeter"><?php echo etheme_get_cart_sep(); ?></span>
<a href="#" class="no-click"> <?php esc_html_e('Order complete', 'xstore'); ?></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', 'xstore') ?></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!', 'xstore') ?></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', 'xstore') ?></span></a></p>
<?php endif; ?>
</div>
Regards
You must be logged in to reply to this topic.Log in/Sign up