How to Limit Customer Buy One Product Only with WooCommerce

How to Limit Buying One Item Only in WooCommerce

I have started using WooCommerce since year 2012 and i like it because it provides me many customized options to suit my needs or client requirement.

Case Study:One of the possible situation is where i need to disable the shopping cart. In this way, the customer only can buy one item, if the customer goes to another product and tries to buy it, the cart will be cleaned and the last item added.

Continue reading

How to Add Donate Button to Your WooCommerce Store

WooCommerce has become a popular eCommerce platform as more and more people are using this as their online store, event booking, online course, restaurant and others. One of the most needed functions is “Donation” for charity or “Tip” for restaurant.

I have developed a new plugin called “WooCommerce Donation/Tip Checkout” where you can enable this option to display a new donation form at the top of checkout page. I have combined two features (Donation and Tip) in this WooCommerce extension.

In WooCommerce Settings Panel, there will be a new submenu link called ‘Donation/Tip Checkout’ where you can:

*   Enabled / Disabled the option
*   Change “Message” to any text
*   Change “Button Label” to any text
*   Change “Title” to any text
*   Change “Default Amount” to any amount
*   Choose “Taxable”
*   Change “Minimum Donation/Tip Amount” to any amount

Admin WooCommerce Settings - Donation/Tip Checkout options

Admin WooCommerce Settings – Donation/Tip Checkout options

Frontend WooCommerce - Checkout page

Frontend WooCommerce – Checkout page

Download WooCommerce Donation/Tip Checkout

How to Fix Facebook Like Popup Window Gets Cut Off

Facebook Like Button has become a must for most of the websites if they want to implement social media integration on their website, online store, personal blog or web application.


If you have a popup window gets cut off problem when you click Like button, there is a fix.

Faebook Like Popup Windows Gets Cut Off

Facebook Like Popup Windows Gets Cut Off


In order to solve this issue, you can add below code to your css.

embed, iframe, object
    max-width: 635% !important;

Save the file and view the page again, hope this snippet will solve your problem just liked me.

My WooCommerce plugins that use this css:
1. WooCommerce Facebook Share Like Button
2. WooCommerce Social Buttons PRO

How to Create A Twitter Timeline Widget

Twitter is one of the most popular social media that has been used by millions of users everyday to share their thought and stories. As a business owner or entrepreneur, Twitter has become a free communication platform with the target audience without cost you a penny. So why not get started and let the world know what are you doing and thinking right now. So Twitter Widget – “Embedded Timeline” will be a good way to achieve this.

Turn your website or blog become a marketing tool

In order to keep your readers or potential customers aware of your latest sales or offer, you need to have a Twitter embedded timeline that display all latest tweets and a form that let users to post directly to your Twitter page. Below is the example embedded timeline screenshot for my site.

Twitter Embedded Timeline @terrytsang811

Twitter Embedded Timeline @terrytsang811

5 Steps to Create Twitter Embedded Widget

Step 1: Login to your Twitter Account, then click “Settings” (gear icon) on top right there and “Widgets” on left sidebar.

Continue reading