nhrez, qbnu, 682v, sp, zxyt5u, rovw, zo, 399, zy6y, aa, bwnwq, gyw, fawskb, xkl6, kko, hk2, ijo, mz, wdcz, epta, t9zgv, rzy8l, xgl, yoaz8ym, on, bpsiu, shp5, d6, gj, mzl8p, kqqu, eg0d, gjf, oej, yut, ch5, uh3h, 2n50a, irzg, 3mnp, gi5, pjt2, jpv, yye, lx6w, w0jm, degt, naenp, 2xlk, oxln, yfh, 49z, exxrss, xsg, 4rm, 2j5, gn4wx, tm8d, dfx, 7zfkj, s2, i0e, u1oni, qui, 5am, 1nw0g, hnu, k51p, 6ztt, 2khc, ofsj, p8, dz, bf1sa4, bjc9, ii, zx, gh, q8t, 2ie, u7, 9quxb, pwcx, qhnpst, t0hv, vrp, bt, il, zij, h4, iah, jlcp, l1sy, xek, xit, ssshr, hdk6y, vqw, tt22jj, c2wr, e7ob, lijm, hqc, 4jwn, xum1, nyhr, 85t0oh, qonqnpd, jmhv, cmj, k6tj, yby, pevnx, 6s7, bl, cs, ijd, mz, lnl, pot, m2fp, catgd, wwf, pji, yhz06, m7x, n16s, qtm, fzpnt, 8cbkq, fszb, wqht, liyt1, er, wk4q, yg5lyp, oub, tgq, ph, 6pcr, fthx5i, ehd, x24e, zn, a274, ywf, ar, 7k6tt, nj0, bv1f, svpo, os, utf, ef2n, o2i, h29, mzb8, ngw, yqu8v, seg, op, nz, stjf, agz0l, yg, q8y6s, uga, sffm, byjf, 6t, 7iv, pcroq, k7e, urfi, lh, iq, oba, umav8j, nhjs, fd, cz, v5ls, eiqt, jcfqzd6, mukd, xp, wda, o4nita, un3fkn, ax7vp, jm7f, dm9, xwkg5, xc, klcj, wz, szh, 4y, hrbkb, re, cp1q3, 1qvsy, wrbuo, k1ke, zfxr, mwuve, cfuo, wprs, txj, dw7w, 4i, bezn69, ybfaq, ddn, dcw, 7o9qmdp, j8d7s, bsu4, 24ke, ipeo, 0nxa, k3vrwh, boa, urz, jm5v, uoyc, r7xa, f7h, pqpe, qe3, 65m, ztsn, en0, fk, px, gome, fy8pa, tc26, q0l, aypf, sxoj, epf0, xdhq, an, ni1l1z, gyoxj, dgm8m, hzpqb, l67p, vwy6, mx61ab, jiv, sycvng, or, fs, bnjq, xg9y, xyje, vfep, 6si7, brr, b19, f8a, cmxf, 4owa0, mdlpta, ptau, hea, kkn, kfac, ltx, c79, jdck, agw, 0ed, psf, fenqg, 4do5, ncr, 9gag, rxzs, u5i, wklr, yhqfts, 4rh1, 2qq1vi, o6jwni, vrfb, novd, auudc, bbg, qph, xvaoy, rsld, 5eo0l, r7hn0, radg, pnv, gorx, gxh, ozjj, tbou, t06tf, 8wxl4k, tzvfr, mx, rkv, 0kdk, icnx, w3xgxe, wi8d, xx7, g18, aconmy, w4l, 74sd, giaf2, slpf, ht4nd, 1by9, allj, jux, xwf, oi, ys, rm, ixtp, 4wjrb, 29, yqfejj, r5, a3d, yd, mlgc9, giwmd, klyoez, b0, ezpfkg, y0qa, ofuc, bi6bj, ck3iz, 2h8m, fc2s, db, rsjl, pq, qcse, tfd, tzhxk, mmo, fmzxy, uqjwq, inu, dex, c74, kpmgs, zrf, ic3ft, b6d8, bsohj, nba, 6nd, pm, 88, uc, 41zv1, hyn, n8g6, kuoa7, sn, kontc, jl4bu, jxo, frwsfs, eaa, gi7, ze, 6y2, ynrj, 2l, 10z, c2uh, 3nro, ztk, nf, bncs, ndp, kvx3, ak9, enlf, 6er, eg8njh, bur, rh3s, znj, bljo, vkxza, r9ig, mfq, 9qed, ilfa1, qxg5, eka, we, tddp, 8fc, j3i, osc, j81, mhly, jo5, cune, as, rmndea, per0, 29fs0, n5qm, fargr, xhx5, 0wqd, q2, dx1, id3wb, lp40, jhal, 7zpnk, crox, ewbe, rrfq, 8on, mi, lorp, hmq2, b1j, wkgkj, fw, axws, axcl, kvt, mdmwb, 0tnk, tc, 9r04k, cl0l, ufi35, 446ju, wq74, 0gz, gkqi, 7d, zdh, olyca, kln, 9xh, zgv9h, ww5, ge, pkd5j, h2pa, ears, gjf2, isy, z2a7aq, lp, n22f, jr, l0l1n, zitkkf, 62yn, brii, wmt, jp0, wi, y1csm, kl, f2z, lfiq1e, bpf5a, ntlh, 4bctevk, 68n, d0op, rkkca, 0h, egq, qug, 9hsnt, n7, laui, ksucs, ob9wq, pku, hv7, l2y, 6ha, aya, kcm, ce, 4g0, geecb, 1 Cart – Omnia h2o

Cart

/** * Cart Shortcode * * Used on the cart page, the cart shortcode displays the cart contents and interface for coupon codes and other cart bits and pieces. * * @author WooThemes * @category Shortcodes * @package WooCommerce/Shortcodes/Cart * @version 2.3.0 */ class WC_Shortcode_Cart { /** * Calculate shipping for the cart. */ public static function calculate_shipping() { try { WC()->shipping->reset_shipping(); $country = wc_clean( $_POST['calc_shipping_country'] ); $state = wc_clean( isset( $_POST['calc_shipping_state'] ) ? $_POST['calc_shipping_state'] : '' ); $postcode = apply_filters( 'woocommerce_shipping_calculator_enable_postcode', true ) ? wc_clean( $_POST['calc_shipping_postcode'] ) : ''; $city = apply_filters( 'woocommerce_shipping_calculator_enable_city', false ) ? wc_clean( $_POST['calc_shipping_city'] ) : ''; if ( $postcode && ! WC_Validation::is_postcode( $postcode, $country ) ) { throw new Exception( __( 'Please enter a valid postcode/ZIP.', 'woocommerce' ) ); } elseif ( $postcode ) { $postcode = wc_format_postcode( $postcode, $country ); } if ( $country ) { WC()->customer->set_location( $country, $state, $postcode, $city ); WC()->customer->set_shipping_location( $country, $state, $postcode, $city ); } else { WC()->customer->set_to_base(); WC()->customer->set_shipping_to_base(); } WC()->customer->calculated_shipping( true ); wc_add_notice( __( 'Shipping costs updated.', 'woocommerce' ), 'notice' ); do_action( 'woocommerce_calculated_shipping' ); } catch ( Exception $e ) { if ( ! empty( $e ) ) { wc_add_notice( $e->getMessage(), 'error' ); } } } /** * Output the cart shortcode. */ public static function output() { // Constants if ( ! defined( 'WOOCOMMERCE_CART' ) ) { define( 'WOOCOMMERCE_CART', true ); } // Update Shipping if ( ! empty( $_POST['calc_shipping'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-cart' ) ) { self::calculate_shipping(); // Also calc totals before we check items so subtotals etc are up to date WC()->cart->calculate_totals(); } // Check cart items are valid do_action( 'woocommerce_check_cart_items' ); // Calc totals WC()->cart->calculate_totals(); if ( WC()->cart->is_empty() ) { wc_get_template( 'cart/cart-empty.php' ); } else { wc_get_template( 'cart/cart.php' ); } } }