Empty Cart Button for WooCommerce makes the e-commerce store outstanding. International Standards for making the Cart Clear or Empty is natural. If Filled then How Customer removes every Product from Cart One-by-One. That’s very difficult for clients or customers. So the Empty Cart option provides/facilitates that can be cleared by just only One Click. ICONIFERz provide you the option for designer or developer makes it Possible to your e-commerce Store as International Standards. It is necessary that Website is developing or designing in WordPress and your Store is belong to WooCommerce store.

Steps

  • Open You WordPress Admin Page
  • From Sidebar select “Appearance” then “Theme Editor
  • From “Theme Files” select “functions.php
  • Past the below code in function.php.
add_action( 'init', 'woocommerce_clear_cart_url' ); function woocommerce_clear_cart_url() { if ( isset( $_GET['clear-cart'] ) ) { global $woocommerce; $woocommerce->cart->empty_cart(); } }
  • Open the Home Page/Cart Page
  • Palace the Button or Text Field
  • Add the link like that for Home Page >> https://yourwebsite.com/?clear-cart
  • Add the link like that for Cart Page >> https://yourwebsite.com/cart/?clear-cart

If this code is not Working then Install the regular Plugin “Code Snippets

  • Add new Snippet
  • Paste the Above Code
  • Add the URL to the Button or Text Link.
Categories: Web Design| By |

Subscribe to get Latest News and Tech Deals of the week

We're committed to your privacy. iCONIFERz uses the information you provide to us to contact you about our relevant content, and services. You may unsubscribe at any time.

Related

  • What Benefits Do You Enjoy With Free WordPress Themes?

    [ad_1]

    WordPress is a very popular platform among bloggers and other website owners because it offers a free version. It also comes with lots of benefits including easy learning, management and customization. The […]

  • An Introduction to WordPress Plugins

    [ad_1]

    Plugins are software components with different functions that can be incorporated into a WordPress website. They can expand functionality or include other features in your WordPress websites. Written in the PHP scripting language, WordPress plugins smoothly […]

  • What Type of WordPress Plugins Are Needed For Business?

    [ad_1]

    One of the most popular features of WordPress is plugins. WordPress plugins allow users and developers to extend the functionality of WordPress beyond its core features. WordPress has over 26,000 plugins. These […]

  • Why Web Designing Companies Are Busy Exploring Future Trends

    [ad_1]

    Constantly evolving technology has led to some pretty esthetic websites, but exactly what are the changes? How are the effects achieved? Do you really need one of those sensational websites for the […]

  • 8 Tips to Help You Choose the Best Web Development Company

    [ad_1]

    Today, every business whether it’s small or large has its own business website. Since there are a lot of website developers out there, choosing the right one may not be […]

  • Simple WooCommerce Tips to Make Your Store Better

    [ad_1]
    • Consider the Navigation of Your WooCommerce Store
    • […]

  • Types Of WordPress Themes

    [ad_1]

    We have heard a lot about WordPress. We all know that it is a blogging platform that comes for free. We can use it according to our need. Now, this great blogging portal brings in a vast […]

  • Best WordPress Plugins

    [ad_1]

    Before getting into the best WordPress plugins out there, let’s cover a couple of definitions for the uninitiated among us.

    WordPress is the world’s most widely-used open source Content Management System (CMS). While it is often employed as a […]

Subscribe to get Latest News and Tech Deals of the week

We're committed to your privacy. iCONIFERz uses the information you provide to us to contact you about our relevant content, and services. You may unsubscribe at any time.

Join Us

Google News Icon, iconiferz
Flipboard Icon, iconiferz

Online Tools

iCONIFERz,Online Services for Business, Web Designing, Social Media Marketing, Web Design

Latest Post