• Hello Guys!

    I have a question about the widget cart:

    How do I show the widget cart even in the checkout pages?

    I tried to copy the file “class-wc-widget-cart.php” my child theme and I changed the piece of code that you can see below, but without success.

    I’m sure there’s a mistake, but I have a basic knowledge of PHP so I need your help.

    Thanks in advance!

    Fabio.

    public function widget( $args, $instance ) {
    		if ( apply_filters( 'woocommerce_widget_cart_is_hidden', is_cart() ) ) {
    			return;
    		}
Viewing 6 replies - 1 through 6 (of 6 total)
  • Mina

    (@purpleberryservices)

    May be it is better to simply use Woocommerce cart shortcode: [woocommerce_cart]

    Thread Starter Fabio Sarcona

    (@sarcof)

    Hello Mina!

    I want to show the Cart Widget, not the shopping cart page ??

    Mina

    (@purpleberryservices)

    ooops

    Use this PHP statement: <?php the_widget( ‘WC_Widget_Cart’); ?>

    Thread Starter Fabio Sarcona

    (@sarcof)

    thank you so much you are very kind.

    Where should I add this code? in function.php files?

    Mina

    (@purpleberryservices)

    Where you would like to display it on your Website? can you share URL?

    Thread Starter Fabio Sarcona

    (@sarcof)

    how can I contact you in private?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show Widget Cart in the checkout pages’ is closed to new replies.