Code School: Woo Shipping Per Product Count Script

Here’s a little snippet that has been useful for woocommerce development. This regulates shipping charges from a simple fee based system to a fee per quantity output. We modified this to allow for a couple of different shipping charge options based on quantity – first by three’s and then free shipping if over 9 are purchased.

cart->get_cart_contents_count();

// if we have items that need shipping, round the quantity / 2 to the nearest whole number

// this produces tiered cost increases for every 2 items

if ( $cart_item_count > 1 ) {

$cost = ceil( $cart_item_count / 3 ) * $cost;

}
return $cost;

}

add_filter( ‘woocommerce_shipping_rate_cost’, ‘njengah_wc_shipping_cost_tiers’, 10, 2 );

More Web Design Blog Content

A Blog you say, Like We Have Time!?

Well, it’s finally happened. A Gainesville Web Design Company made a wordpress blog and started posting to it in “third person” sort of way. Original, we know. We will hopefully have some interesting things to say between keywords, so just sit back, relax, and chew on some web

TNA The Facial Pain Association has a new website

Glad to have them on board! The Facial Pain Association does some really great work on helping people with debilitating condition known as TNA. Facial pain is a serious condition and options are often limited for sufferers. Fortunately they do have the association there to assist them in

TOP 3 PROJECT MANAGEMENT TOOLS AND WHY THEY ARE SO IMPORTANT

Whether you are a Freelancer or a small business owner, you know the importance of an accurate project management, here are 3 of the best project management tools that can help you achieve your goals. 1.- Teamwork Projects Teamwork Projects is a cloud-based project management solution it allows you

What does AI say about SEO

Let’s find out! Use relevant keywords: Start by researching and identifying the keywords and phrases that your target audience is likely to use when searching for information related to your business. Incorporate these keywords into your website’s content, including page titles, headers, and meta descriptions. Improve your website’s

reducing cumulative layout shift (CLS)

Reducing Cumulative Layout Shift (CLS)

NEED HELP REDUCING CLS? Enter Your Website Below For Personal Recommendations:   Fill out my online form. In the fast-evolving landscape of web design, one metric that has gained significant attention among developers and SEO experts alike is the Cumulative Layout Shift (CLS). Since it directly affects user

Linking Your G+ Page To Your Website

We always get asked: Does anyone use G+? Yes. Is it worth it? Again, Yes. Using Google’s products would obviously help your standing with their search algorithm. We don’t know this to be technically true but it certainly seems so in our experience. The more you use and