Last active
May 10, 2020 11:57
-
-
Save Oscar-Abad-Folgueira/2a251ef68bed10bda129d7c67f46f9f2 to your computer and use it in GitHub Desktop.
Obtener el número de prodcutos que hay en el carrito de WooCommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @snippet Obtener el número de prodcutos que hay en el carrito de WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/obtener-el-numero-de-productos-que-hay-en-el-carrito-de-woocommerce/ | |
*/ | |
echo "Total productos: " . WC()->cart->get_cart_contents_count(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment