WooCommerce | themelocation - Part 2

Archive | WooCommerce

How to Change the Sale badge text in WooCommerce ?

WooCommerce adds sale badge to the products that are on sale. If a product have lower price than the actual price, Woocommerce will add sale badge. Some People do not like the badge Text and want to change it to something like 50% off Etc. So today, We are going to show you how to […]

Continue Reading

How to display number of item in cart and cart total amount?

In this tutorial we’ll learn how to display number of items in cart and cart total. This can be done easily with the help of following lines of code. <?php global $woocommerce; ?> <a class=”cart-contents” href=”<?php echo $woocommerce->cart->get_cart_url(); ?>” title=”<?php _e(‘View your shopping cart’, ‘woothemes’); ?>”> <?php echo sprintf(_n(‘%d item’, ‘%d items’, $woocommerce->cart->cart_contents_count, ‘woothemes’), $woocommerce->cart->cart_contents_count);?> […]

Continue Reading

How to Add category slug to Woocommerce single product url?

Adding Category Slug to the URL has some benefits like: 1- It Increases Click through Rate from the Search Results. 2- Customers have better understanding, where they will be landing too. Also, Make sure that slug category is descriptive or small. In this tutorial, We will learn how to add category slug to the URL […]

Continue Reading

How to Update cart without page reload in WooCommerce?

How would you feel if the page reloads every time you add something new to your cart? Annoying? When a user is purchasing products from your WooCommerce website and the page does not dynamically updates the cart, the whole buying process becomes slower. It’s also boring as they have to wait for a while to […]

Continue Reading
2015-09-23_1151

How to Redirect User When Woocommerce Store is Closed/Offline?

Your website is temporarily closed for maintenance. It can be offline for any design changes, updating any portion of your website, or resolving any technical problem. Now, what would you do? Will you let your visitors come to your site and irritate them with an annoying display, or handle this artistically? The best way, and […]

Continue Reading