Account Settings

Winkelwagen

De winkelwagen is nog leeg

Website Settings

Dondere modus
Hoog contrast
Font grootte
Lees pagina-inhoud
Afdrukken
Realtime
  • Datum: 19-02-2026
  • Week: 08
  • Weer:
  • Seizoen: Winter

Loop number in list

particle

// 15. asterix list // ————- @mixin loop-number { $star : ‘*’; @for $i from 1 through 10 { &:nth-child(#{$i}) { &:before { content: “#{$star}”; } } $star : $star + ‘*’; } } ul li { @include loop-number;}

WooCommerce: Disable Shipping Rate if Cart has Shipping Class

particle

/** * @snippet Disable Free Shipping if Cart has Shipping Class (WooCommerce 2.6+) * @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 * @sourcecode https://businessbloomer.com/?p=19960 * @author Rodolfo Melogli * @testedwith WooCommerce 2.6.1 */ add_filter( ‘woocommerce_package_rates’, ‘businessbloomer_hide_free_shipping_for_shipping_class’, 10, 2 ); function businessbloomer_hide_free_shipping_for_shipping_class( $rates, $package ) { //Shipping class D $shipping_class_target = 431; $in_cart = false; foreach( WC()->cart->cart_contents as […]

Filter op lijst in WordPress > woocomerce > verzend methoden

particle

add_filter(‘get_terms’, function($terms, $tax, $query_vars, $query){ if(is_admin() && get_post_type() == ‘product’ && in_array(‘product_shipping_class’, $tax) && count($tax) == 1){ usort($terms, ‘sort_by_name’); } return $terms; }, 10, 4); function sort_by_name($a, $b) { return strcmp($a->name, $b->name); }

Home