Taupe
Showing all 3 resultsSorted by popularity
-
$4,627.00 NZD incl. GST
-
$4,229.00 NZD incl. GST
-
Price range: $4,371.00 through $4,769.00 NZD incl. GST
Showing all 3 resultsSorted by popularity
/* Remove "in stock" text form single products */ function remove_in_stock_text_form_single_products( $html, $text, $product ) { $availability = $product->get_availability(); if ( isset( $availability['class'] ) && 'in-stock' === $availability['class'] ) { return ''; } return $html; } add_filter( 'woocommerce_stock_html', 'remove_in_stock_text_form_single_products', 10, 3 ); // Replace number rating with icon stars add_filter( 'facetwp_ratings_icon', function( $icon, $is_disabled, $facet ) { if ( $facet['name'] === 'star-rating' ) { // Replace "my_star_rating_facet" with the name of your Star Rating facet $icon = '🟊'; return $icon; } }, 10, 3 ); // Adds the add to cart button. Add a Button item in your Listing Builder template, and give it the Unique name 'add-to-cart'. add_filter( 'facetwp_builder_item_value', function( $value, $item ) { if ( 'add-to-cart' == $item['settings']['name'] ) { global $post; $value = do_shortcode( '[add_to_cart id="' . $post->ID . '"]' ); } return $value; }, 10, 2 );function cg_remove_shortcode_from_excerpt($content) { if (!is_search()) return; $pattern = get_shortcode_regex(); $shortcode_matches = array(); if (preg_match_all('/' . $pattern . '/s', $content, $matches)) { foreach ($matches[0] as $shortcode) { $content = str_replace($shortcode, '', $content); } } $content = strip_shortcodes($content); return $content; } add_filter('the_excerpt', 'cg_remove_shortcode_from_excerpt');
Showing all 3 resultsSorted by popularity
Showing all 3 resultsSorted by popularity