Normally, when you setup multiple shipping zones for your store, in cart and checkout page, you should see the option to select:
However, for some reasons, you don’t see that option. All you see is something like this:
You wonder, why the shipping zones option doesn’t show up? Well, the fix is quite simple. Let’s go to WooCommerce->Settings->General and scroll down to General Option:
As you can see, my settings prevent me from selling to any countries other than Afghanistan. So, if you have shipping zones that cover Europe, make sure the selling locations include Europe and shipping locations option is enabled, like this:
Make sure you click on save changes at the bottom of the screen.
Now, if you go to the cart page, you can see the option to change the address and select shipping zone:
That’s it! If you have the problem fixed, that’s great! If you still need assistance, please let me know via the comment section below or via my contact page. Make sure you check the following resources out to have more control over your shipping:
It is not uncommon to sell internationally. The problem arises when you need to handle shipping to different countries. For example, your store is located in the US. Your customers are in the US, the UK, Australia and Vietnam. You want to setup the shipping fee as following:
For customers in the US, the shipping cost would be flat $5
For customers in the UK, the shipping cost would be flat $15
For customers in Australia, the shipping cost would be flat $10
For customers in Vietnam, the shipping cost would be flat $8
Let’s learn how to setup your shipping method to achieve the structure above.
How To Setup Different WooCommerce Shipping Rates By Country
Here are the steps we are going to do:
Add different shipping zones for each country
Add flat rate shipping for each shipping zone
There are only two steps. It’s just simple like that.
Add different shipping zone for each country
Based on the shipping structure mentioned at the beginning of the post, we are going to need 4 shipping zones for each zone, we need a flat rate shipping fee. Let’s learn how to setup one shipping zone and fee. You can do exactly the same for other zones.
First, go to WooCommerce->Settings->Shipping and click on Add shipping zone:
Add flat rate shipping for each shipping zone
Next, click on Add shipping method:
select Flat rate and then click on Add shipping method.
Then we have something like this:
Next, we are going to setup flat rate fee for the zone. Let’s click on the Edit link below the Flat rate title:
As discussed above, the shipping rate for Australia is $10. You can set the method title to anything you like. Click on Save changes:
As you can see, the Save changes button is inactive. That means WooCommerce has saved the settings for us. If you see the button is active (text color is white), just click on it to save the settings.
Now, if you go to WooCommerce->Settings->Shipping, you’ll see the shipping zones you created:
Test the shipping cost for different countries
Now, let’s make a test purchase. I’m going to order some pairs of shoes on the store.
In this example, I ordered 10 pairs. Let’s go to cart:
You can see that the shipping rate is $8 and it’s the flat rate shipping for Vietnam. As I’m not logged in, WooCommerce determined the shipping method by my IP address (I’m living in Vietnam right now). You can also notice that WooCommerce told us that the cost is only an estimate. To know the exact shipping cost, let’s click on Calculate shipping and change my address to Australia:
After clicking on Update, you can see that the shipping fee is now $10, instead of $8. You can go ahead and change the address to an US or UK address, the shipping cost will update accordingly.
Conclusion
As you can see, WooCommerce provides us some flexibility when setting flat rate shipping for different countries. Using WooCommerce default settings, you can also set shipping fee per product if you like. If you need more advanced shipping fee structure, you may need to use a plugin to achieve that.
If you are searching for this, I assume that you don’t need any further introduction on nofollow and dofllow links. The nofollow attribute is added to links to prevent spam. However, there are times that you want to remove it to encourage comments from your visitors. In this post, I’m going to show you how to remove nofollow attribute from links at the comment section of WordPress.
How to remove the nofollow attribute from author’s name link
Here are the steps we are going to do to make the author’s name link become dofollow:
Now, if you save the file, you will see the nofollow attribute disappear in the link.
Let’s see the code in action:
As you can see that, after the code was inserted, the nofollow attribute was gone.
How to remove the nofollow attribute from links in the comments’ content
We can use the same strategy to remove the nofollow attribute from links that are located in the comments’ content. However, this time, you will need to add another filter. If you have added the function binary_carpenter_remove_nofollow in the functions.php file, there is no need to declare it again.
Here is the code to remove the nofollow from comments’ content’s links:
And that’s all you need to do to remove the nofollow attribute.
Conclusion
As you can see, the nofollow attribute is a useful tool to fight spam (spammers tend to not leaving a link on your site if it’s nofollow). However, if you have good reasons to make the links dofllow, you have the method to do so without using a plugin.
I hope the post has been helpful. Please like and share if you find it valuable. Thanks!
You are a store owner and you want to run a promotional campaign that gives your customer one product for free for every 3 (or any other number) items they buy in a single order. Obviously, WooCommerce doesn’t support this kind of setup by default. Luckily for us, there is a plugin that does this job really well. That’s a plugin called Woo Discount Rules Pro.
Obviously, there are more discount rules you can setup using this plugin but we only focus on the buy x get y items for free in this post.
How to setup buy 3 get 1 for free using Woo Discount Rules Pro
Now, I suppose that you have the plugin installed and activated. Let’s go to WooCommerce->Woo Discount Rules:
You will see an interface like this:
Our next step is to create a rule since we don’t have any rule here.
Let’s enter the details as above. Since we don’t have any rules yet, the priority box can be set to any valid number (positive). The validity field is where you can set at which period that this rule is effective. It’s all up to you to set this period. Now, let’s click next to the next screen.
All fields in this screen are quite explanatory. It allows you to further customize the rule. For example, you can set this rule to be applied to customers who previously purchased from you (subtotal or number of items). You can also set the minimal subtotal of the current order to active the rule…
For now, we are going to apply the rule to all products (though you can add some products to the exception list if you want to).
Let’s click next to get to the last screen:
Let’s click on Add new range:
Now, you can see that I’ve setup the rule to buy 3 (min quantity) so the customer can get one item of the same product for free. You are not limit to the item of the same product, in fact, you can have a bunch of options as demonstrated below:
You can see that, there are many options that you can customize to match your exact needs.
Now, I click on Save rule (located at the top).
See the buy 3 get 1 for free rule in action
Now, I’m going to buy 3 item of a single product. Let’s see the rule in action:
As you can see, the rule displayed on the product page and when you view the cart, the subtotal is counted for only two products.
Conclusion
Woo Discount Rules Pro is not a free plugin but it add much more flexibility to your shop. It can also help you create loyal customer program (that rewards customers who previously bought products on the shop). If you are running a store, this is one discount rule plugin that you should have.
Thanks for reading the post. Make sure you check other WooCommerce Tips to help you build better eCommerce sites.
The WooCommerce add to cart buttons are often designed by the theme developer. Sometimes, the default button styles provided by the theme doesn’t suit your need. That’s when you need to do something to change the add to cart button styles. But how?
Customize your add to cart button using plugin
We are going to use a plugin called Ultimate Custom Add To Cart Button to customize the buttons on your WooCommerce store. This is the plugin I develop so I would love to have your feedback. The plugin is free to use and there is a pro version available here which has additional cool features (Which also has a $20 discount at this time).
Now, we are going to learn how to customize the add to cart button for your site.
Change the add to cart text
I have covered how to change the add to cart, read more, view products… text on the buttons in this post. You can have a look at that for more details.
Add shopping cart icon to the button
We are going to add the cart icon to the add to cart button. As you can see now, my buttons don’t have any icon.
Now, we go to Ultimate ATC Button to add a cart icon to that.
I’m going to use a shopping cart icon. So, I enter the text shopping and you can see that, the list of suggestions shows:
I select the last option, fa-shopping-cart and scroll down to the bottom then click on save changes.
Now, if I reload the product page, I will see the cart icon in the button:
Change button’s background color and text color
With this plugin, you can easily change the background color of the button too.
The options are straightforward. You can pick whatever color you want for the button’s background. For example, I’m going to use the blue color for the button:
Now, I click on save changes and view the results:
As you can see, the text color doesn’t work really well with this background. You can change that too with the text color option in the plugin:
If I reload the product page, I can see the text color has changed:
If you are using the pro version, you can change the background to use a gradient or an image too.
Change button’s padding and margin
The last section in the plugin allows you to customize the add to cart button’s padding and margin. You can enter your desired values here (in px) to adjust the button’s style. For example, I set the margin and padding for the button to 20px as in the image below:
Now, if I view the product page, the button has changed accordingly:
In addition to let you change button’s styles, you can do the following in the pro version:
Set an image as the buttons’ background. That means you can use an image to replace your add to cart button
Remove the up and down arrows in the quantity input box
Completely change the style of the input box (add plus and minus buttons to increase and decrease order’s quantity)
As the time I write this post, almost all themes support a section called Additional CSS (You can access this panel by clicking on Appearance->Customize). This is the place you can add additional CSS to your site. If you know CSS and confident in your CSS skills, it’s not a big problem to add background color, hover color or even gradient on the background. The important thing is to get the selector of the button. The trick is to use the inspection tool of your browser.
Let me show you how:
As you can see, if you know a bit of front end web development, this is the easiest way.
However, not all people can do that. I would recommend you use my plugin above to achieve the designs much quicker and easier.
Conclusion
As you can see, there are quite many options for you to change to tweak the styles of the button. If there are settings you need that aren’t available in the plugin, please let me know and I’ll add that to the plugin.
Are you a dev? Checkout programming tutorials here: datmt.com
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.