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
- Update Multiple Post Meta for the Same Post In One call?
- Function to activate WordPress theme inside a plugin
- Which functions in theme or plugin load first
- How to make my plugin theme-independent?
- How to load a new template page according to a particular URL?
- 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
- Custom Shipping method not showing in checkout
- Workflow and best practice for documentation [closed]
- Display future posts?
- 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
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- HTML in WooCommerce settings
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- Woocommerce plugin for minimum order and add-to-card-step
- How to get current post user id
- Display post lists in 2nd paragraph
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- woocommerce payment gateway callback not firing [closed]
- How to modify WCMP Rest API response?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- New databes tables with – WooCommerce – for developers [closed]
- Change commission_status paid when withdraw_status vendor is completed
- 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
- Woocommerce Minimum Price for a Composite Product to add in cart
- 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?
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- when i activate my WordPress plugin cannot see customizer options or preview
- Change Woo Custom Endpoint Titles from a Plugin
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- 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
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- Problem with conditional woocommerce custom checkout field
- how to add custom css at top above all css file for specific url
- Where do the section input fields values are stored in database
- Unable to sync woocommerce variations
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- woocommerce blank page after clicking add to cart [closed]
- 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 make wordpress remember my choice
- How to Enfroce Domain Licensing Limits? [closed]
- Meta box not displaying on the plugin page
- add_meta_box showing blank screen in my page
- How to make content as required in custom post type?
- Can we install 3d product configurator into wordpress
- What are Seeds? [closed]
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- A multi-section WordPress store [closed]
- Frontend Enqueued Files in the Backend
- How to create new title and its description inside a section in WP Customizer?
- Woocommerce attatch files and custom input meta to cart items and then to order
- Need to add custom cart item data
- Redirrect after facebook successful login to wooommerce cart page url
- WooCommerce Checkout – Validate User Role
- Custom Search Function in WordPress Returns No Results
- How can I keep a WordPress dropdown menu open when navigating to a child page?
- how to add custome text in each products side in checkout page after pincode validation [closed]