Thursday, 8 September 2016

Setting Up Shipping On Opencart.

For this tutorial, I will be showing you how to set up shipping on your opencart store. I will have priced shipping on orders below £20 and free shipping on orders above £20. To do this I will be using my opencart dashboard and my cPanel file manager.

First, you will need to go to your opencart dashboard, on the left-hand panel you need to click on extensions, this will show a drop down menu, you will need to click on shipping.

Click extensions [1], then click shipping [2].
Once on the shipping page, you will see a shipping list, the only two shipping methods I will be installing are flat rate and free shipping.

Install flat rate and free shipping.

When you have installed both click on edit (pencil icon) on the flat rate shipping. Here you will change some of the settings.

Flat Rate Shipping.
Cost - How much do you want to charge for shipping.
Tax Class - I have this set to none, when I was setting a tax class it would automatically alter my postage cost.
Geo-Zones - What zones does this shipping apply too.
Status - This needs to be set to enabled.
Sort Order - What place this method should be.

Flat Rate Shipping Settings.

Once you have saved this go back to your shipping list and click edit (pencil icon) on free shipping. Now to edit the settings.

Free Shipping
Total - This is how much the cart must add up to before free shipping is available.
Geo-Zones - What zones is the shipping option available too.
Status - Make sure this is enabled. 
Sort Order - What place this shipping method should be.

Free shipping settings.


Click Save.  If an order is over £20.00 both the free shipping and flat rate shipping is showing, to change this you need to access your cPanel file manager. 

Both flat rate shipping and free shipping are showing.

Once in your cPanel you will need to find flat.php (public_html/catalog/model/shipping/flat.php), find the line $method_data = array(); (line 16). Underneath this line add
if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
         $status = FALSE;
      }   

Once you have add this line, the section will look like this:

$method_data = array();
if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
         $status = FALSE;
      }   

if ($status) {


Click save and check your store to see if it has worked.

Orders under £20.

Orders over £20.
Sam.








0 comments:

Post a Comment