Hide Zero Value On Zero Cost Shipping Methods WooCommerce

In WooCommerce if you use Local Pickup or other methods of shipping that don’t have a preset or calculated cost, the shipping labels on both the cart and checkout to appear with $0.00 price, like this: Local pickup: $0.00

Shipping label with 0 prices

This was an intentional change by WooCommerce. You can read the conversation and reasoning behind it here: github or add_rate() main function.

A couple of our customers preferred the old way, where free shipping methods didn’t show a $0.00 price:
Shipping methods didn't show $0.00 price
For hiding the zero value price on zero-cost shipping methods, use this filter in your functions.php file or custom functions plugin:

 * Hide zero value on any zero cost shipping methods
add_filter( 'woocommerce_cart_shipping_method_full_label', function( $label, $method ) {
    if ( $method->cost < 1 ) {
        $label = $method->get_label();
    return $label;
}, 10, 2 );

Remove shipping 0 price

Upload multiple files, insert into database, send email with multiple attachments

WordPress Custom code to upload files and save data into the database after successful upload send all files as attachments in an email to user.

Do you want professional help? We’ll repair it for you! Get assist Contact here!


    $uploaddir = '/home/public_html/wp-content/uploads/order-doc-folder/';
    foreach($_FILES['docat'] as $key => $doc){
      if($_FILES['docat']['name'][$key] != ''){
            $temp = explode(".", $_FILES['docat']['name'][$key]);
            $newfilename = $_REQUEST['order_id'].'-'.round(microtime(true)) . '-'.$temp[0].'.' . end($temp);
            $uploadfile = $uploaddir . basename($newfilename);
            if( move_uploaded_file($_FILES['docat']['tmp_name'][$key], $uploadfile)){
                $filename[] = $newfilename;
                $filenamed[] = $uploadfile;
$wpdb->query('update submit_order set status="'.$_POST['status'].'" where id = '.$_REQUEST['order_id']);
$wpdb->query("insert into order_status_history set status='".$_POST['status']."', comment='".$_POST['comment']."', filelist = '".serialize($filename)."', product_id = ".$_REQUEST['order_id']);
    $subject = 'Your Order status update';
    $message = '
Dear Customer,
Your order no: '.$result->u_id.' current status is '.$_POST['status'].'
';         $senderName = "Talk For WEB";     $senderEmail = "info@talkforweb.com.au";       $from = $senderName." <".$senderEmail.">";     $headers = "From: $from";       // Boundary       $semi_rand = md5(time());       $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";         // Headers for attachment       $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\"";         // Multipart boundary       $message = "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"UTF-8\"\n" .     "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n";         // Preparing attachment     if(!empty($filenamed)){         for($i=0;$iemail, $subject, $message, $headers, $returnpath);       $updateo = true;     // Return true, if email sent, otherwise return false     if($mail){         return true;     }else{         return false;     } 

Upload multiple files, insert into database, send email with multiple attachments

Media Query Different Dimension of Screens

What is Responsive Web Design?

Responsive web design makes your net web page look good on all units.
Responsive web design makes use of solely HTML and CSS.
Responsive web design isn’t a program or a JavaScript.

Media query is a CSS technique introduced in CSS3. Media query is used if you wish to make a webpage responive.

Small   320×569, 360×640, 480×854
Medium  960×540
Large 1024×640, 1366×768, 1920×1080

Example: Large 1024×640

@media only screen and (max-width: 1024px){
    .fade-blackimg {
        padding: 20px 25px;
    .box-second { 
        min-height: 306px;

Example: Large 1366×768

@media only screen and (max-width: 1366px){
    .fade-blackimg {
        padding: 15px 75px;
    .box-second { 
min-height: 408px;}

Example: Large 1920×1080

@media only screen and (max-width: 1920px){
    .fade-blackimg {
        padding: 122px 120px;
     .box-second { 
        min-height: 575px;

WordPress Development Company in Australia

WordPress Development Company in Australia
WordPress Development Company in Australia

WordPress Development Company in Australia | WordPress is the most popular CMS platform in the world. WordPress started out in 2003 as blogging software and has grown to become one of the largest content management systems (CMS) in the world. WordPress is an open source software built using PHP with MySQL and boasts of thousands of plugins, widgets and themes that are available to use from the WordPress community.

Why choose WordPress as your Content Management System?

  • Open Source Software : There are hundreds of WordPress developers working day and night to continuously improve the software/s available within the WordPress community.
  •  Free to use : WordPress is a completely free software.
  • Ease of use : WordPress is easy to use software.
  • Extensible : One of the best features of WordPress is extensibility. .

We are coherent about what we do.  That being the case, as the Best WordPress Developers in Australia; we get to work with WordPress to create stunning websites. our certified WordPress developers succeed in achieving the client requirement and delivering project on time. Talkforweb is renowned as the Top Development Company in Australia; which help businesses to convert their goals into commercial success.

WordPress development services we provide include

  • WordPress Web Design: On your budget, our web design team can create perfect website.
  •  WordPress Custom Development: Our team of WordPress (PHP) developers have a solid understanding of the core system and can develop functionalities as per your exact specifications.
  •  Custom plugin development: To make your business stand out, we develop custom plugins depending on your business needs.
  • WordPress eCommerce Development: Our WordPress developers can also develop custom eCommerce solutions as per your needs.
  • WordPress Installation: Offers total installation and configuration of WordPress set up to serve as a great platform for your website.

If you are on the hunt for best WordPress Development company in Australia, then you have come to the right destination. We are amongst the top WordPress developers in Australia talented in creating high quality websites using WordPress in line with the specific requirements of clients.

Thinking of developing a website or a web application using WordPress, Get in touch with our team of expert WordPress programmers.

WordPress Development, Design and Customization Company


Boost your business with WordPress, one of the most popular Content Management Systems in use on the web today. We offer WordPress development and design , hosting and installation, speed optimisation, custom plugin development and support. We can also help you migrate from other CMS systems such as Joomla and Drupal over to WordPress.

We are a sydney wordpress developer, experienced with delivering WordPress CMS solutions ranging from simple websites to heavily customised WordPress implementations serving complex business requirements. We can custom design your WordPress theme or modify your existing WordPress site to suit your individual requirements.

What is WordPress?

WordPress is a free and open-source content management system based on PHP & MySQL. Features include a plugin architecture and a template system. 

WordPress has enormous developer support, tens of thousands of free style and functionality customisations, and proven continual improvement with a detailed roadmap for the future.

Why Use WordPress?

WordPress is an ideal platform to build your organisation’s customer-facing website for both desktop and mobile devices.

WordPress has expanded from modest blogging software into a powerful and feature-rich CMS. It is fast, very user-friendly, search-friendly and flexible.  WordPress is an excellent choice for managing websites of all sizes.

Widely supported : WordPress is the most used CMS on the internet, making it the most widely supported. As a result, it is easier to develop new features,

Easy to use : WordPress is one of the easiest Content Management Systems to use. We provide training with each new WordPress website we build, and we find that clients pick it up quickly.

Flexible and scalable : WordPress can be extended with an enormous collection of themes and advanced features. These include shopping carts, galleries, donation forms, events, booking systems, and even deep integration with payment gateways.

Extending WordPress : WordPress is an open source project, with a very active global developer community extending WordPress with powerful plugins, so you can be sure that WordPress is a good option for your business.

SEO-friendly : WordPress has been built with search engines in mind and can be optimised further using SEO Plugins.

Our WordPress Development Sydney Services

We offer a complete range of WordPress development services covering.

  • Custom WordPress design & development
  • WordPress theme customisation
  • WooCommerce Setup & Customisation
  • Optimisation & performance tuning

WordPress shortcode/cart count/ current page URL/check user login

Below function has WordPress shortcode/cart count/ current page URL/checking user is logged-in or logged-out
cartlogin function will return the cart and different message for logged-in and logged-out user.

function cartlogin_func( $atts ) {

global $current_user;

$div .= ‘<a href=”/cart/” target=”_self” rel=”noopener noreferrer” aria-label=”link to /wishlist/”><i class=”fas fa-cart-plus” aria-hidden=”true”><b>’.WC()-&gt;cart-&gt;get_cart_contents_count() .'</b></i></a>’;

if ($current_user-&gt;ID == ”) {
global $wp;
$rd = home_url( add_query_arg( array(), $wp-&gt;request ) );
$div .= ‘<a class=”loginre” title=”Quick Login/Register” href=”#”>Login/Register</a></pre>
<div class=”sociallogin nsl-container nsl-container-block” data-align=”left”>
<div class=”nsl-container-buttons”><a href=”/wp-login.php?loginSocial=facebook&amp;redirect=’.$rd.'” rel=”nofollow” aria-label=”Continue with &lt;b&gt;Facebook&lt;/b&gt;” data-plugin=”nsl” data-action=”connect” data-provider=”facebook” data-popupwidth=”475″ data-popupheight=”175″><span class=”nsl-button nsl-button-default nsl-button-facebook”><span class=”nsl-button-label-container”>Continue with <b>Facebook</b></span></span></a><a href=”/wp-login.php?loginSocial=google&amp;redirect=’.$rd.'” rel=”nofollow” aria-label=”Continue with &lt;b&gt;Google&lt;/b&gt;” data-plugin=”nsl” data-action=”connect” data-provider=”google” data-popupwidth=”600″ data-popupheight=”600″><span class=”nsl-button nsl-button-default nsl-button-google” data-skin=”uniform”><span class=”nsl-button-label-container”>Continue with <b>Google</b></span></span></a><a href=”/wp-login.php?loginSocial=twitter&amp;redirect=’.$rd.'” rel=”nofollow” aria-label=”Continue with &lt;b&gt;Twitter&lt;/b&gt;” data-plugin=”nsl” data-action=”connect” data-provider=”twitter” data-popupwidth=”600″ data-popupheight=”600″><span class=”nsl-button nsl-button-default nsl-button-twitter” style=”background-color: #4ab3f4;”><span class=”nsl-button-label-container”>Continue with <b>Twitter</b></span></span></a></div>
$div .= ‘<span style=”float: right;”>Welcome <a href=”https://hotandcoldoutlet.com.au/my-account/”>’.$current_user->user_firstname.'</a>  </span>’;
return $div;

add_shortcode( ‘cartlogin’, ‘cartlogin_func’ );

Woocommerce update price of product by particular category or tag

WordPress product table has relation with 3 tables post, postmeta, term_relationships.

Once we need to update price of particular category or tag products this will take days of time as per the product count but using mysql query we can easily achieve this:

    `meta_value` = meta_value + (meta_value * (2.64 / 100))
    meta_key = '_price' 
    AND `post_id` IN (
            `object_id` AS product_id 
            term_taxonomy_id = 827
            AND `object_id` IN (
                    `post_type` = 'product' 
                    AND `post_status` = 'publish' 
                    AND `ID` = `object_id`

Optimise WordPress

Below is quick methods using that we can optimise wordpress:

Need to add this code top of the header.php file

<?php function callback($buffer)
$buffer = str_replace(“type=’text/javascript'”, “”, $buffer);
$buffer = str_replace(‘type=”text/javascript”‘, ”, $buffer);
$buffer = str_replace(“type=’text/css'”, “”, $buffer);
return ($buffer);

ob_start(“callback”); ?>

Add at the bottom of footer.php file <?php ob_end_flush(); ?>

optimise wordpress

Remove emoj icons from wordpress
function disable_wp_emojicons() {

remove_action( ‘admin_print_styles’, ‘print_emoji_styles’ );
remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘admin_print_scripts’, ‘print_emoji_detection_script’ );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );
remove_filter( ‘wp_mail’, ‘wp_staticize_emoji_for_email’ );
remove_filter( ‘the_content_feed’, ‘wp_staticize_emoji’ );
remove_filter( ‘comment_text_rss’, ‘wp_staticize_emoji’ );

//Remove filter TinyMCE emojis
add_filter( ‘tiny_mce_plugins’, ‘disable_emojicons_tinymce’ );

add_action( ‘init’, ‘disable_wp_emojicons’ );

function disable_emojicons_tinymce( $plugins ) {
if ( is_array( $plugins ) ) {
return array_diff( $plugins, array( ‘wpemoji’ ) );
} else {
return array();

1. Update new version of WP
2. Add images on CDN
3. optimise CSS, HTML, JS, DB
4. Optimise and cache all pages
5. Improve site performance and speed.
6. Will remove unnecessary JS and CSS and WP functions for optimisation
7. server beverage
8. Clean up your code wp-config file setting

define( 'WP_POST_REVISIONS', 3 );

Enable Multisite / Network Ability

define( 'WP_ALLOW_MULTISITE', true );

Redirect Nonexistent Blogs

define( 'NOBLOGREDIRECT', 'http://example.com' );


define( 'WP_DEBUG', true );
define( 'SCRIPT_DEBUG', true );