cart->get_cart() as $other_cart_item_keys => $values ) { if ( $product_id == $values['product_id'] ) { $running_qty += (int) $values['quantity']; } } return $running_qty; } function wc_qty_get_cart_totals_items_qty() { global $woocommerce; $running_total_qty = 0; // iniializing quantity to 0 // search the cart for all product in and calculate quantity. foreach($woocommerce->cart->get_cart() as $other_cart_item_keys => $values ) { if ( true ) { $running_total_qty += (int) $values['quantity']; } } return $running_total_qty; } ?> Il mio account - Azienda Agricola Il Rio

Hai perso la password? Inserisci il tuo nome utente o l'indirizzo email. Riceverai tramite email un link per generarne una nuova.