Post by mtlhd » Sat Jul 10, 2010 3:18 am

Hey all.
First off, Love Opencart, and happy to be using it and contributing to it. :D
I ended up writing a shipping mod to suit my business's needs.

What we needed was a shipping module that calculated shipping by sub total.
So, in this mod, the shipping is assigned according to how much money the customer spent in the store.

You assign minimum values to a shipping cost in the mod.

Image of admin section:
Image
according to the picture above this is how the mod will work:
customers spending 0.01 to 99 will have 5 shipping
customers spending 100-199 will have 10 shipping
customers spending 200-299 will have 15 shipping
customers spending 300-399 will have 20 shipping
customers spending 400 or more will have free shipping.

*NOTE - Be sure to input values from lowest to highest.

It provides 5 inputs for you to set prices. If you don't need them all that is fine, leave them blank. It will use the highest value you have set previously. Example: You set "Sub Total Minimum = 200, Fee= 10", but you have no higher settings. If someone spends 300, they will pay 10 shipping as well.

*The value for the first Subtotal Minimum is '0.01' permanently, since that is the least amount of money a customer could spend.

Here is a link to download the mod, just unzip and upload the contents of the 'upload' folder to your opencart root folder, nothing will be overwritten. Make sure you download the mod that corresponds with your version of OpenCart.

Version 1.4.7 - http://www.deviumrocks.com/download/Shi ... _1-4-7.zip

Version 1.4.8 - http://www.deviumrocks.com/download/Shi ... _1-4-8.zip


Let me know what you think guys and if you have any ideas on how to make it better.
thanks,

mtlhd

PS - Also, I wrote an update class that will update all your products by UPC (distributes the quantities by size). Send me a private message if you also have that problem and I will send you the code.
Last edited by mtlhd on Thu Oct 14, 2010 2:09 am, edited 9 times in total.

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by sarw01 » Thu Jul 15, 2010 1:49 pm

Hi, I am very new to opencart and have installed your shipping mod, however i cannot seem to get it to work. It has appeared in the shipping section in the extensions just fine and we fill it in as required with the subtotals, fees enabling etc. The prob occurs upon saving it, we try and give it a test and it doesn't seem to be saving, the shipping option doesn't appear during checkout and when we go back into the shipping module it is shown as disabled. Could you please help us, its just what we need if we can get it to work and its probably something silly that we are doing wrong. Thanks, Sarah

Newbie

Posts

Joined
Thu Jul 15, 2010 1:38 pm

Post by mtlhd » Fri Jul 16, 2010 8:45 pm

Checking into your problem now, will report back with a solution.

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by mtlhd » Fri Jul 16, 2010 9:25 pm

sarw01 wrote:Hi, I am very new to opencart and have installed your shipping mod, however i cannot seem to get it to work. It has appeared in the shipping section in the extensions just fine and we fill it in as required with the subtotals, fees enabling etc. The prob occurs upon saving it, we try and give it a test and it doesn't seem to be saving, the shipping option doesn't appear during checkout and when we go back into the shipping module it is shown as disabled. Could you please help us, its just what we need if we can get it to work and its probably something silly that we are doing wrong. Thanks, Sarah
Responding to your issue, I bet you did the same thing I did when I tested it in the past.

Don't forget to enable it in the settings, then save it. ;-)

If you look at the picture I posted a link to int he original post, it shows the entry I am talking about, 4 items down.
Make sure you see -> Status: 'enabled'

I just re-downloaded the mod from the link and reinstalled here and it worked fine.

-mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by JamieB34 » Tue Jul 20, 2010 5:59 am

I downloaded this and have the same problem ..

I did enable this and when I look afterwards its disabled.

Looking forward to an update for this.

Thanks
Jamie

Newbie

Posts

Joined
Tue Jul 20, 2010 5:56 am

Post by Maansy » Tue Jul 20, 2010 6:11 am

is it for 1.48B?
can i assign free shipping if the customer buys over $200 sub-total?
thanks

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by mtlhd » Tue Jul 20, 2010 11:19 pm

I apologize.
That has to be the issue.
Currently the mod is only up to 1.4.7
I will get it to version 1.4.8 compatiable ASAP.

Will report back here when it is complete.

Thank you for your patience.

-mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by mtlhd » Wed Jul 21, 2010 2:58 am

Ok everyone, Works for 1.4.7 and 1.4.8 now.
Go to original post for new downloads.

Thanks for your feedback. :D

-mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by mtlhd » Wed Jul 21, 2010 3:00 am

Maansy wrote:is it for 1.48B?
can i assign free shipping if the customer buys over $200 sub-total?
thanks
I only programmed it for the 1.4.8 stable release. Should work with beta version but I can not guarantee that.

Yes, put zero as your value for your fee next to your subtotal minimum value of 200.
Sub totals greater than or equal to 200 will assign Zero to shipping cost.


-cheers

mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by Qphoria » Wed Jul 21, 2010 4:08 am

mtlhd wrote:
Maansy wrote:is it for 1.48B?
can i assign free shipping if the customer buys over $200 sub-total?
thanks
I only programmed it for the 1.4.8 stable release. Should work with beta version but I can not guarantee that.

Yes, put zero as your value for your fee next to your subtotal minimum value of 200.
Sub totals greater than or equal to 200 will assign Zero to shipping cost.


-cheers

mtlhd

"b" doesn't mean beta. Perhaps 1.4.8.1 would have been a better name. Anyway, if it works with 1.4.8 it will work with 1.4.8b... only core functions changed

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Maansy » Wed Jul 21, 2010 6:13 am

i installed it, then set shipping to 10.0000 for min 1
and set 0.0000 for min 200
i chechout with Sub-Total: $249.90 but still charges $10
i attached both admin and front images
shipbytotal.png

store front - shipbytotal.png (8.29 KiB) Viewed 10232 times

shipbytotal2.png

admin page - shipbytotal2.png (11.09 KiB) Viewed 10232 times


ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by Maansy » Wed Jul 21, 2010 8:26 pm

is there any fix to problem i am getting?

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by mtlhd » Thu Jul 22, 2010 7:35 am

ANY FUTURE DOWNLOADERS OF THE MOD IGNORE THIS POST: REFER TO TOP.

Maansy,

Thanks for using the mod.
The way to fix your problem is to start with the highest value first.

So put the values as follows:
minimum 200 -> fee 0
minimum 1 -> fee 10
I admit, it is kind of backwards now that I look at it.
Tomorrow when I return to work and have the source code available to me I will check into reversing that.

but with the code you have currently, if you put your highest sub total value first, then the mod will work.

-mtlhd
Last edited by mtlhd on Fri Jul 23, 2010 10:55 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by Maansy » Thu Jul 22, 2010 8:52 am

its working ok now
it shouldnt matter which amount you put 1st IMHO. this is how you should code it
i love this mod
thanx mtlhd :)

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by mtlhd » Fri Jul 23, 2010 1:32 am

OK....message to all who are using this mod, I have updated again :)

version 1.2 available.
-Changes
1. The default value for the first sub total minimum is now 0.01 (can not be changed)
2. Enter your subtotal minimums ranging from lowest to highest, instead of the opposite as it once was. I believe this makes more sense.
3. For any inputs left blank, it will automatically fill them with the highest values you have specified within the mod in the respective inputs.

Thanks to all who gave feedback on it.

download the new version at the beginning of this thread.

-mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by Maansy » Fri Jul 23, 2010 11:02 pm

thank you so much, its flowless. this mod should be in the core and i dont see any reason why not :D

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by mtlhd » Tue Jul 27, 2010 3:04 am

Maansy wrote:thank you so much, its flowless. this mod should be in the core and i dont see any reason why not :D
Thanks!

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by jenabsolute » Wed Nov 03, 2010 3:04 am

Is this available for version 1.4.9.1 ?????

Newbie

Posts

Joined
Wed Nov 03, 2010 3:01 am

Post by davykeenan » Sat Nov 27, 2010 8:45 am

this works perfect in 1.4.9.1... no need to upgrade... just plug and play as they say....

the 1.4.8 version works on OC 1.4.9.1

Davy K

P.S. does the creator have any objections to me (or himself) adding this to the extensions page (for free of course) as it was hard to find and I nearly bought a similar extension, when this one works a treat????

User avatar
Active Member

Posts

Joined
Tue Jun 16, 2009 8:01 pm

Post by davykeenan » Sat Dec 04, 2010 5:33 am

JUST AN UPDATE.... SOMEONE JUST ASKED ME FOR THIS...

DAVY K

User avatar
Active Member

Posts

Joined
Tue Jun 16, 2009 8:01 pm
Who is online

Users browsing this forum: No registered users and 9 guests