Pages

Showing posts with label FREE. Show all posts
Showing posts with label FREE. Show all posts

Friday, 29 November 2013

Simple Opencart tutorial - shipping rate based on percentage of order

I was looking all over the internet for a free module to allow me set the shipping cost by a percentage if the order total was within a certain range; but to no avail :(
So I decided to do it myself.

Here's what I needed...

So for example:
  • If we set the shipping cost to be 10% of the order total, for an order total of £158.00, the shipping cost will be £15.80.
This is how I did it:

First of all,
  1. You have to download this free module -> Total Based Shipping (http://www.opencart.com/index.php?route=extension/extension/info&extension_id=4029 )
  2. Follow the instructions on how to install the module (it's really easy)
  3. When you are done with that, navigate to catalog\model\shipping\standard_cost.php
    • NB: the standard_cost.php file will be a file from the module you just downloaded.
  4. Scroll to where you see, it should be around line 38 - 50
    • if ($cart_subtotal <= $data[0]) {
      if (isset($data[1])) {
      $cost = $data[1];}
      break;
      }
  5. Then insert this
    • elseif ($cart_subtotal <= 200.00 ){
      $cost = $cart_subtotal*0.1;
      break; }

Simple! You just needed to add 3 lines of code.

The Module you downloaded in step 1 allows you to set specific shipping cost based on the order total. So we just included that code to calculate shipping cost based on a set percentage (in the above example, it's 10%. To calculate for a different percentage, just change the '0.1' in the code to whatever you want).

This was a quick fix and unfortunately, it's hard-coded. I'll try and improve on it so it can be modified from Opencart's back-end and update this post.

Please feel free to make suggestions or comments below. Thanks

    Saturday, 12 January 2013

    If you shop online, you're gonna love this

    Before buying anything online, you should check out www.hotukdeals.com if you haven't already.
    It's a UK deals website where anyone can share and vote on deals. 

    Just type in the name of the store you are shopping at and Hotukdeals will provide you with valid vouchers(and even expired ones-which you can't use) to use for your transaction for that day. Its very simple and it works. 
    Don't know why anyone wouldn't want to use it.




    Try it out here

    Saturday, 12 November 2011

    6 iPhone Games Children will Love

    I love children a lot and I enjoy playing with them.
    One of the ways in which I keep them busy, which also seems to be a big hit, is engaging them in iPhone games.
    "The digital age is taking over the toys " #Random
    Anyway, these are some of the games that the kids I have played with love.


             Mouth Off
    £0.69
    This is so silly.






    £0.69

    You  can change iChalky's face to anybody's face.





    £0.69
    SmackTalk! is the original voice-altering app that features an animated guinea pig, puppy, kitten, and chihuahua that repeat what you say in high-pitched squeaky and now low-pitched freaky voices *in real-time* for hours of hilarious laughter. Works in every language!


    Tuesday, 11 October 2011

    Free iPhone games (good games)

    These are some of the apps I have played and enjoy. I didn't have much time to elaborate on the apps but there are links to the game-play of each app below it's description. Trust me, all these apps are really good(to me anyway). Enjoy

    If you do not have Angry Birds Rio, you are on a long thing. I prefer Angry birds Rio to the classic Angry Birds (i think that's what it's called) .
    Super cool game.






    Fruit Ninja

    5 star game. Fun! Must have. After playing this free version, you would probably want to buy the full game.


    watch the gameplay



    Saturday, 3 September 2011

    Cool Photo-editing Apps

    In the next few days, I will be posting some cool apps you must should have on your phone. I use an iPhone btw. If you don't have an iPhone, don't lose hope yet, as you can find similar apps on your own platform(Most of the time) :-)




    "ColorSplash is super easy and fun to use. You simply use your finger as a brush to remove or bring back the original color from regions of your image. Using a two finger pinching gesture you can quickly zoom in and out in order to work on fine details or larger areas."


    This is was what I was able to do with the app.... B-)

    It was free when i got it... Even if it costs anything now, It shouldn't be much. Try it!