• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Dominate Marketing

Why Dabble When You Can DOMINATE

  • Blog
  • Contact

Woocommerce default featured placeholder image

February 7, 2018 by Dominate Marketing

add_action( 'init', 'custom_fix_thumbnail' ); function custom_fix_thumbnail() { add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src'); function custom_woocommerce_placeholder_img_src( $src ) { $upload_dir = wp_upload_dir(); $uploads = untrailingslashit( $upload_dir['baseurl'] ); $src = $uploads … [Read more...] about Woocommerce default featured placeholder image

Woocomm change backorder text

September 7, 2017 by Dominate Marketing

function so_42345940_backorder_message( $text, $product ){ if ( $product->managing_stock() && $product->is_on_backorder( 1 ) ) { $text = __( 'Avaliable on Pre-Order', 'your-textdomain' ); } return $text; } add_filter( 'woocommerce_get_availability_text', 'so_42345940_backorder_message', 10, 2 ); … [Read more...] about Woocomm change backorder text

Woocommerce sold out badge

August 24, 2017 by Dominate Marketing

//* Add sold out badge on archive pages add_action( 'woocommerce_before_shop_loop_item_title', function() { global $product; if ( !$product->is_in_stock() ) { echo 'Sold out'; } }); //* Add sold out badge on single product pages add_action( 'woocommerce_before_single_product_summary', function() { global $product; if … [Read more...] about Woocommerce sold out badge

Remove Woocommerce breadcrumbs

August 24, 2017 by Dominate Marketing

//* Remove Woocommerce breadcrumbs remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0); … [Read more...] about Remove Woocommerce breadcrumbs

Hide shipping rates when free shipping is available

August 19, 2017 by Dominate Marketing

/** * Hide shipping rates when free shipping is available. * Updated to support WooCommerce 2.6 Shipping Zones. * * @param array $rates Array of rates found for the package. * @return array */ function my_hide_shipping_when_free_is_available( $rates ) { $free = array(); foreach ( $rates as $rate_id => $rate ) { if ( … [Read more...] about Hide shipping rates when free shipping is available

Woocommerce – Change number of products displayed

January 8, 2017 by Dominate Marketing

// Display 48 products per page. Goes in functions.php add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 48;' ), 20 ); … [Read more...] about Woocommerce – Change number of products displayed

Woocommerce – reorder single product template

November 8, 2016 by Dominate Marketing

/** * woocommerce_single_product_summary hook * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating - 10 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked … [Read more...] about Woocommerce – reorder single product template

Woocommerce – Change SKU Text

November 8, 2016 by Dominate Marketing

function translate_woocommerce($translation, $text, $domain) { if ($domain == 'woocommerce') { switch ($text) { case 'SKU': $translation = 'Part No'; break; case 'SKU:': $translation = 'Part No:'; break; } } return … [Read more...] about Woocommerce – Change SKU Text

Categories

  • css tricks
  • Errors
  • Fixes & F**ups
  • Formidable Forms
  • Genesis
  • Google Apps Mail
  • How To's & Tips n Tricks
  • MailChimp
  • Media
  • Plugins
  • Scam Alert
  • Shipping
  • Shopping Cart Modules
  • Videos
  • Widgets
  • Woocommerce

Recent Posts

  • font gradient
  • Horizontal Genesis eNews E-Mail Opt In Subscribe Box Inline
  • Hide shipping rates when free shipping is available
  • How to Create a WooCommerce Wholesale System
  • Imagify vs EWWW vs Kraken vs WP Smush vs ShortPixel: The 5 Best WordPress Image Optimization Plugins Compared
  • Formidable Forms & Mod Security
  • Genesis Slide-in Widget
  • Genesis Plugins
  • Genesis overlay widget
  • Add refined CTA & Announcement widget areas etc
  • Migrate Weebly to WordPress: A Step-by-Step Guide
  • Sparkle
  • Remove WordPress Default Widgets
  • Some great css tricks on this website
  • Border Around A Button
  • Adding support for the new WooCommerce 3.0 gallery features
  • 100 WooCommerce Tips and Tricks
  • Woocommerce – Change number of products displayed
  • Genesis Footer Widgets
  • 3 Ways to integrate WooCommerce with Genesis
  • Emails fail on multisite setup
  • Video Embed & Thumbnail Generator
  • WP MS User Roles
  • Setup Gmail for Domain – Google Apps Mail
  • Remove default WordPress widgets
  • Re-Order Single Product Template
  • Change SKU Text
  • Don’t Get Caught by an Invitation To Register Domain – Fake Domain Renewal Letters Can Cost You
  • WooCommerce MailChimp Integration
  • Hide the shipping methods if the cart does not have the specific shipping class

Handcrafted with by Dominate Marketing
Web Design & Development, SEO & Ultra Nerdyness!
Sitemap | Terms of Service | Privacy Policy | Delivery Policy | Refund Policy | Owner Login