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

Even More Internet Marketing Success

We’ve been working with attorneys all over town. None more than Fisher, Butts, Sechrest and Warner. They’re great folks located over in Haile. They have a successful law firm and are enjoying much success online. When we met, they were basically nowhere online … maybe somewhere back on

Google Local

In today’s digital world, it is essential for businesses to have an online presence. Google Maps is one of the most significant tools for local companies, since it helps potential customers locate and learn about your business. Having a presence on Google Maps is not sufficient; you must

The Importance of a Professional Website for Gainesville Businesses

Gainesville is a vibrant community known for its strong local economy, driven by a mix of education, healthcare, and a growing number of small businesses. As a business owner in this dynamic environment, establishing a solid online presence is no longer optional—it’s essential. One of the most critical

Gatorland Kubota Has A New Website

A great new site for a great company with new ownership. Gatorland Kubota sells and services all kinds of farm and lawn equipment. A family owned and operated business there is no doubt that they want the best for their customers. After all, they chose livewire didn’t they?

Page Speed Insights

The importance of page load speeds for website performance cannot be emphasized in the current digital environment. A website’s loading speed can make or break its success in today’s fast-paced world when people expect rapid access to information and flawless online experiences. The following are some major justifications

Photography Services

At Livewire we have not had photography services in the past, leaving it up to clients to procure their own services for website pictures. Over time, this has become an inconvenience. Mainly, waiting for images holds up the design process. We are so glad we found Kimber Greenwood