You could call either of the following functions in your email template:
<?php echo WC()->cart->get_cart_contents_count(); ?>
OR
<?php echo(count(WC()->cart->get_cart())); ?>
Related Posts:
- Redirect to another page using contact form 7? [closed]
- What is the correct way for a theme to support plugin UIs?
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- How to call “page specific menu items” in template [closed]
- Create WooCommerce Product Category Programmatically
- Function to activate WordPress theme inside a plugin
- Which functions in theme or plugin load first
- Should I use RIPS tool to test my themes and plugins?
- How does WooCommerce display a custom comment_type in Comment Admin?
- How to Build a Movie Library in WordPress 3.x
- Autoload via composer in plugin interference
- How to prevent action in ajax request, when in admin side?
- Having separate plugins and themes folder for multi-site setup
- Create or Update thousands of woocommerce products via PHP
- How can I get full attachment url from wp_get_attachment_metadata?
- unzip a folder on specific location and delete the zip file
- gallery option is not available in media upload box in costum theme option page
- Why is the Settings API is not saving my array of options
- Is it possible to set up multistore in Woocommerce? [closed]
- How to integrate plugin in WordPress theme
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- Woocommerce plugin for minimum order and add-to-card-step
- How to get current post user id
- Display post lists in 2nd paragraph
- woocommerce payment gateway callback not firing [closed]
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- custom payment gateway in woocommerce failed to connect to remote api server
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- What are the specifics of WordPress development I need to know? [closed]
- how to do login using woocommerce rest api From android
- How to create a code editor for my plugin .?
- wp_footer hook only working on homepage not in other pages
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- How do I combine a theme with a plugin
- how to force tag page layout to use same as search layout?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- How to write “alt” tag in image for wordpress code?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Shortcode Attributes to Return different $_POST
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Add a “View all” button on WooCommerce product archives pages
- Woocommerce singe product custom gallery output works just on the first slide
- Remove Pagination for Product Category Pages WooCommerce
- add seperate suffix for low price and high price in woocommerce
- Cross Sells are not being shown in Cart Page. Please Help!
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Disable variations on woo commerce if out of stock
- WordPress API functions not working at AJAX functions.php call
- Don’t load the theme for a page FROM a plugin EDITED
- Extending a theme: build new features as plugin or core modules?
- Remember the Meta Value With Radio Buttons
- WordPress plugin with its own “site”/theme
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Seperate plugin and theme files
- Xamp installed local wordpress not allowing to publish or install plugin
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- wp_query ‘s’ parameter does not work with WC_AJAX
- Grouping imported products and showing variations based on selected product
- Remove Zero Money From Previews Order woocommerce
- Visual composer custom element error
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- Make downloadable ebook read online without download option
- How can I find related learndash course id from woocommerce product object?
- Woocommerce convert simple products to variations
- How to create a plugin with automatic update?
- Getting all woocommerce products from REST API call in plugin
- Change Woo Custom Endpoint Titles from a Plugin
- Use Case: Multiple Shipping Methods per Order
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Get a list of Product Categories inside a loop
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Not displaying Woocommerce product page in lightbox
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Hide ‘add to cart’ button for some products [duplicate]
- Change pricing in Woocommerce based on Category and Product [closed]
- Adding/ Removing actions for plugins
- how to add custom css at top above all css file for specific url
- Unable to sync woocommerce variations
- How to show post attachment image
- Unable to show 4 products in a row
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- How to generate a responsive output from plugin?
- The plugin generated xxx characters of unexpected output during activation
- How to create post comparison in wordpress
- How to add image for custom taxonomy
- How to escape html code?
- Predefine Product Variations for specific custom product type [closed]
- Create Custom Coupon Type
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- manage_{taxonomy}_custom_column not working
- Template selector for woocommerce product
- How to Enfroce Domain Licensing Limits? [closed]
- add_meta_box showing blank screen in my page
- How to make content as required in custom post type?
- What are Seeds? [closed]
- A multi-section WordPress store [closed]