How To Change Add To Cart, View Products, Select Options Button Text In WooCommerce

How To Change Add To Cart, View Products, Select Options Button Text In WooCommerce 1

WooCommerce provides default text for their add to cart buttons. Here are the default text for all types of products in WooCommerce: Simple product – add to cart Variable product – select options Grouped product – View products While those default text make sense, you often want to change it to something more attractive to … Read more

WooCommerce Developer Cheat Sheet

This post is for WordPress/WooCommerce developer only. If you have problem implementing what I’m going to show you, please drop me a message. How to get WooCommerce attribute label There is a function for this purpose: wc_attribute_label($attribute_name) For example, the attribute name is pa_color, your name for this attribute is Color. The code above outputs … Read more

How To Hide “Have a coupon? Click here to enter your code” On WooCommerce Checkout page

Coupon is a great way to make your customers happy. It is recommended that you use coupons when applicable. From my experience, having a coupon, even with a small discount can make the buying experience more pleasant. However, there are some stores, websites don’t use coupon. Take a consultant for example, she provides service at … Read more

How To Get Product Type In WooCommerce

When developing plugins for WooCommerce, sometimes, knowing the product’s type is very important. The funny thing about WooCommerce is if you create a product from the class “WC_Product” and run: The result is always simple. This sounds confusing, doesn’t it? I feel the same way. Get WooCommerce Product Type Using WC_Product_Factory Since version 3.0, there … Read more

How To Set Woocommerce Custom Shipping Cost Per Product

How To Set Woocommerce Custom Shipping Cost Per Product 6

The goal Learn how to set custom shipping cost per product in WooCommerce. The method We are going to use WooCommerce shipping class to set different shipping cost per product. What is a WooCommerce shipping class This is the definition of shipping class on WooCommerce documentation. I think it’s clear enough: Shipping classes can be … Read more