Hi, all
I am a novice at using Opencart so please use as simple terminology as possible for me when answering!
I have a client who had a shopping cart website built using Opencart about 3 months ago, and would now like a change made regarding shipping based on the total invoice amount.
eg. total invoice $100 but <$200 cost $10 etc.
Since I didn't design the system using opencart for him, I'm not really sure of how I might implement this? Writing a custom module is out of the question (due to the client budget) so I'm ideally looking for a way to do this using the existing systems available through Opencart.
thanks in advance
I am a novice at using Opencart so please use as simple terminology as possible for me when answering!
I have a client who had a shopping cart website built using Opencart about 3 months ago, and would now like a change made regarding shipping based on the total invoice amount.
eg. total invoice $100 but <$200 cost $10 etc.
Since I didn't design the system using opencart for him, I'm not really sure of how I might implement this? Writing a custom module is out of the question (due to the client budget) so I'm ideally looking for a way to do this using the existing systems available through Opencart.
thanks in advance
If...
eg: 50.00:5.00,100.0:8.50,150.0:9.50
gives you
$5 for $0 to $50 in order total etc
- you are not using discounts
- you are not using options
- the "order total" used to calculate the shipping rate does not include tax
eg: 50.00:5.00,100.0:8.50,150.0:9.50
gives you
$5 for $0 to $50 in order total etc
Thanks Bruce. I'm finding the shipping configuration for OpenCart to be rather confusing.
Maybe I need to write a module for cart subtotal-based shipping?
Thanks again!
- Don
So, my understanding is that this would give us:bruce wrote: eg: 50.00:5.00,100.0:8.50,150.0:9.50
gives you
$5 for $0 to $50 in order total etc
- $5 for $0 to $50
- $8.50 for $50.01 to $100 (?)
- $9.50 for $100.01 to $150 (?)
Maybe I need to write a module for cart subtotal-based shipping?
Thanks again!
- Don
Yes, your interpretation is correct. Note that over $150, the shipping would be zero because that is what the zone module returns when it runs out of ranges. To set an upper limit, you would finish the range list with a really large order total value
eg: to set greater than $150 to a cap of $12
50.00:5.00,100.0:8.50,150.0:9.50,200000:12
I would recommend that you copy the zone module files, renaming as you go, to create a new subtotal-based shipping module. That way you will be able to include the effect of coupons, discounts and options.
eg: to set greater than $150 to a cap of $12
50.00:5.00,100.0:8.50,150.0:9.50,200000:12
I would recommend that you copy the zone module files, renaming as you go, to create a new subtotal-based shipping module. That way you will be able to include the effect of coupons, discounts and options.
The previous post was my quick run down on how to set this up as a new shipping extension.
Have a good look through the code for the zone based shipping module and you will see what I am talking about. You can compare what it is doing by looking at the (much simpler) COD shipping extension also. Between the two, there is enough to build on.
cheers
Have a good look through the code for the zone based shipping module and you will see what I am talking about. You can compare what it is doing by looking at the (much simpler) COD shipping extension also. Between the two, there is enough to build on.
cheers
I got the subtotal-based shipping working. Once I had some time to sit down and really take a look at what was going on with the Zone shipping, this was a snap. I guess it's a tribute to the designer of opencart that these plugins are so easy to write.
Thank you to Bruce for pointing me in the right direction!
Thank you to Bruce for pointing me in the right direction!
I think dahoule is reluctant to post his version because he knows I did the same thing for pagan as an urgent, paid contract. However, pagan has kindly offered to allow this to be released into the community. I have posted it as a contribution here. http://www.opencart.com/contribution/in ... tion_id/49
Looks like a great mod but I am having issues in installing it. Once I've got it uploaded and permissions set properly I get the following message when I try to configure it.
Error: Template /.../admin/template/default/content/shipping_subtotal.tpl not found!
Error: Template /.../admin/template/default/content/shipping_subtotal.tpl not found!
Got it, template file in the zip has wrong directory structure.
It came across as admin\template\template\default\content so when i uploaded it created a new folder system in the template folder.
Moved it to proper place and it is working.
Thanks Bruce and Pagan!
It came across as admin\template\template\default\content so when i uploaded it created a new folder system in the template folder.
Moved it to proper place and it is working.
Thanks Bruce and Pagan!
Who is online
Users browsing this forum: No registered users and 5 guests