Recent posts

  • Minimum Order Amount
    Minimum Order Amount

    Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s…

  • Change a currency symbol
    Change a currency symbol

    See currency list for reference on currency codes. Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid…

  • Query whether WooCommerce is activated
    Query whether WooCommerce is activated

    If you’re building a theme which supports but doesn’t require WooCommerce, you may want to wrap WooCommerce functionality (think cart links etc) inside a conditional query. That way, if WooCommerce isn’t activated, the functionality is simply ignored…

  • Rename a country in WooCommerce
    Rename a country in WooCommerce

    Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent…

  • Remove product content based on category
    Remove product content based on category

    Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent…

  • Hide sub-category product count in product archives
    Hide sub-category product count in product archives

    Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your…

  • Editing product data tabs
    Editing product data tabs

    You need to add the code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code…

  • Add checkout validation styles to a third party or custom theme
    Add checkout validation styles to a third party or custom theme

    You need to add this CSS to your child theme’s style.css file or to your customizers’ “Additional CSS” section. Please don’t add custom code directly to your parent theme’s style.css file as this will…

  • Make price widget draggable on touch devices
    Make price widget draggable on touch devices

    Resources Grab this script and save it to the JS folder in your theme directory. Installation Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be…

  • Hide other shipping methods when “Free Shipping” is available
    Hide other shipping methods when “Free Shipping” is available

    Overview By default, WooCommerce will show all shipping methods that match the customer and the cart contents. This means Free Shipping will also show along with Flat Rate and other Shipping Methods. The functionality…

  • Show product categories in WooFramework breadcrumbs
    Show product categories in WooFramework breadcrumbs

    Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent…

  • Unhook/remove WooCommerce Emails
    Unhook/remove WooCommerce Emails

    This code allows you to unhook and remove the default WooCommerce emails. Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as…

  • Add/Modify States
    Add/Modify States

    Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s…

  • Change the default state and country on the checkout
    Change the default state and country on the checkout

    Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s…

  • Override loop template and show quantities next to add to cart buttons.
    Override loop template and show quantities next to add to cart buttons.

    To display quantity input fields for simple products within your shop archive pages, use the following code: https://gist.github.com/woogists/c5e5d73bb4d7d44f5642313b8094937c [box type=”note”]You will need to add this code to your child theme’s functions.php file or via…

  • Display product dimensions on archive pages
    Display product dimensions on archive pages

    You need to add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code…

  • Display product attribute archive links
    Display product attribute archive links

    You will need to add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom…

  • Don’t allow PO BOX shipping
    Don’t allow PO BOX shipping

    You need to add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code…

  • Change add to cart button text
    Change add to cart button text

    Code Snippet Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s functions.php file as this…

  • Automatically add product to cart on visit
    Automatically add product to cart on visit

    Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s…

  • Allow HTML in term (category, tag) descriptions
    Allow HTML in term (category, tag) descriptions

    Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s…

  • Add a custom field (in an order) to the emails
    Add a custom field (in an order) to the emails

    You can add any custom field to your order emails by hooking in and specifying the name of the custom field. This can be useful if, for example, you want to include things like…

  • Change the placeholder image
    Change the placeholder image

    The placeholder image can now be set at: WooCommerce > Settings > Products as of version 3.5x. More info at: Configuring WooCommerce Settings. WooCommerce 3.4x or earlier Add code to your child theme’s functions.php…

  • WooCommerce payment gateway plugin base
    WooCommerce payment gateway plugin base

    This code can be used as a base to create your own simple custom payment gateway for WooCommerce. If not used in a custom plugin, you need to add this code to your child…

  • Change email subject lines
    Change email subject lines

    Add code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Avoid adding custom code directly to your parent theme’s…