Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Cart notice not shown

Home / Forums / Virtue Theme / Cart notice not shown

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
October 21, 2015 at 1:00 pm

I add this code snippet to functions

function cart_notice() {
$free_shipping_settings = get_option( 'woocommerce_free_shipping_settings' );
$maximum = $free_shipping_settings['min_amount'];
$current = WC()->cart->subtotal;
if ( $current < $maximum ) {
echo '<div class="woocommerce-message">Get Free Shipping within the US if you order $ ' . ($maximum - $current) . ' more!</div>';
}
}

add_action( 'woocommerce_before_cart', 'cart_notice' );

But I still don’t see it on the Cart page. So I’m just wondering if the CSS may be hiding it?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.