Monthly Archives

June 2015

woocommerce table rate shipping plugin

Woocommerce Table Rate Plugin charge per item example

By | E-commerce, Ecommerce, Plugins, Woocommerce, Wordpress | No Comments

The Table Rate Plugin is one of the most useful plugins for Woocommerce. However if you’ve never used it before it may have you scratching your head as to how to use it. In this tutorial I’ve go over how to use it to charge per item and how to apply different rates based on the shipping location.

1. Create Shipping Classes

Select Products on left menu and choose shipping class from the submenu. From this page you can set up your shipping classes. For this example I’ve setup 2 Shipping classes called: Small and Large (e.g. in add/edit product for a small item you’d select the Small shipping class).

2. Create Shipping Zones

Firstly we need to create Shipping Zones in this example we’ll have 3:

  • UK
  • Europe
  • Rest of World

After we configure them we’ll end up with this:

Screen Shot 2015-06-19 at 16.08.22

Table Rate Plugin charge per item example

So lets start with the Table Rate Plugin charge per item example. In the left menu goto Woocommerce -> Shipping Zones, fill in the zone name e.g. UK and fill in the countries for that zone (just the UK in this case) and click ‘add shipping zone’. Do the same for Europe but add the different countries (or select EU states if you only doing EU).

Woocommerce has a catch all Zone (Default Zone) so we can use this as the zone for the rest of the world. Use the method title to change what the user will see on the front end (in this case I changed it to Rest of World).

woocommerce configing the table rate plugin

Configuring Shipping Zones to have their own shipping costs

Next we can configure each of our shipping zones to use the relevant shipping class/es. Click on a zone (see below):

Shipping Zones

On the page below select Table Rates and click add:

blog_flatrate2

Table Rate Plugin charge per item example

Scroll to the bottom of the page below (and use the setting in the screenshot). Then we can configure the costs of the shipping for the first shipping class:

blog_flatrate4

Finally we add in the other shipping class and configure it as below:

table rate shipping expert london

In the  screenshot above I have configured shipping costs for large and small items for this particular shipping zone. To setup shipping costs of the other zones, repeat the steps from Configuring Shipping Zones to have their own shipping costs section to here.

This way you end up with different costs for Small and Large items based on where they will be delivered to. So logically you have something like this table below (for the cost of delivery for the different items to different parts of the world):

 

UKEuropeRest of World

Small Items £2 £6 £10
Large Items £4 £10 £18

 

woocommerce specialist london

Changing Cart to Basket in Woocommerce (Creating Languages files for Woocommerce)

By | Woocommerce, Wordpress | 18 Comments

In this post I’m going to explain how to change all instances of cart to basket in Woocommerce.

Update (23/12/2016)

There is a way to hack it, if its just Cart to Basket that you want to change (or just a couple of strings), you could add something like below to the themes functions.php file:

 

The slightly longer way to change strings in Woocommerce (such as cart to basket).

The way todo this is too create/edit a language file.

1. woocommerce how to change cart text to basket. We need to get the strings source definition file ( the file that has the definitions of all the strings that can be converted into other languages). To find this goto
[wordpress]/wp-content/plugins/woocommerce/i18n/languages

you see 2 files:

woocommerce.pot
woocommerce-admin.pot

These contain the strings used in the front end and the admin section respectively. For our example we’ll just change things in the front end so the file we need is: woocommerce.pot (copy this somewhere, you can work on it).

2. From the woocommerce.pot file , we will create a new language file that will contain our ‘Basket’ translations (using Poedit ). Open the file in poedit and select create a new translation from pot file

using poedit for woocommerce language translation

 

 

2. Select the language you want the translation file in ( in this case English UK )

woocommerce language file

3. go through the file (using find) adding a translation where you find instances of cart. e.g. ‘Add to Cart’ , create a translation ‘Add to Basket’

creating a UK language file for for Woocommerce

4. When your done save the file as woocommerce-en_GB.po . This will create 2 language files for woocommerce (woocommerce-en_GB.po and woocommerce-en_GB.mo )

5. Now go to your website and in wp-content, create a folder called languages (if one doesn’t exist already)

6. In this folder create another folder called woocommerce

so you have [wordpress]/wp-content/languages/woocommerce

7. Its in this folder that we need to put the woo language files (created in step 4) that will override the default woocommerce language file (if one exists for UK english). So drop woocommerce-en_GB.po and woocommerce-en_GB.mo in the WordPress directory: [wordpress]/wp-content/languages/woocommerce

Thats it we’re done.

8. look at your website in a browser and see how all the places that Cart appeared have changed to Basket.

The language files will remain and not be overwritten when we update Woocommerce (we don’t want to lose our translations everytime we update so this is good). I hope you’ve found this guide on: woocommerce how to change cart text to basket useful. If you need help with a Woocommerce website get in touch my rates are very reasonable.

 

 

woocommerce display categories on menu

Woocommerce How to easy add product categories to your menu

By | Woocommerce, Wordpress | No Comments

In Woocommerce its very easy to add the product categories to a menu, but it can have those new to WordPress or Woocommerce scratching their heads as to how to do this (without diving into the code).

Add product categories to your menu

All you need todo is following:

1. on the menus page (appearance -> menus )  go to the top and click to display screen options

2. then tick Product Categories (they will appear with the other menu items)

3. add the categories that you want to the menu

4. finally save the menu and your done

So there you have it, thats how easy it is to add product categories to your menu in Woocommerce. If you have a shop or want to setup a shop to sell online get in touch and see how i can help you.