| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
FREE SHIPPING mod based on order total. | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
Enhancement to Free Shipping Mod
What I would like to see in addition to free shipping over x amount is something that would tell a visitor how much more they would need to spend to get to the free shipping threshold, and maybe even suggest some products to get them there?
Anyone know of anything like that? Is it even possible? thanks,
__________________
Matt X-Cart Gold 4.0.11 Apache 1.3.29 (Unix) PHP 4.3.4 |
|||||||
#12
|
|||||||||
|
|||||||||
Yes, it would be trivial to see if their current order total is less than the free shipping threshold and if so, display a message to the user. If you can figure out how to install this mod, you can probably figure out how to do what you're trying to do. I have no time to help at the moment though. Sorry.
Hint: It should require no more than two lines of code in the PHP file and 1 line of code in the template file to make this work. Just do the comparison in the PHP file and assign a smarty template variable to hold the result. Then in your template file add a line to check the result and display your message.
__________________
www.brettbrewer.com Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more. |
|||||||||
#13
|
|||||||||
|
|||||||||
Can't you just use a shipping band to do free shipping? That's how all of my clients do it.
You set up shipping bands like Up to $40 charge $9.99 flat rate Up to $1000000 charge 0.00 flat rate So if the subtotal is great than $40 they get free shipping? Just curious as to why you'd want to mod the cart for something it can do by standard unless (in which case excuse me please!) that I've completely missed the point of this mod above
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#14
|
|||||||
|
|||||||
Thanks for the feedback.
Groovico, what I'm looking for is different than what is offered standard. I know I can do free shipping at a certain dollar level. What I'm thinking of (and I wish I could find my example site!) is a message in the floating cart or somewhere that says "only $x.xx until you receive free shipping on the entire order. Click here to select products in that range." Then a page would be generated listing products just at or over the dollar amount specified.
__________________
Matt X-Cart Gold 4.0.11 Apache 1.3.29 (Unix) PHP 4.3.4 |
|||||||
#15
|
|||||||
|
|||||||
what groovico is saying is that x-cart does this mod as standard in ALL versions. He was not talking about the little bit of maths that you want to add in.
If you really want to do the maths bit - an easy way would be to add the following few lines to the cart.tpl template along the lines of: {math equation=x-y x=$variable_with_limit_in y=$variable_with_cart_total assign=need_to_spend} {if $need_to_spend gt 0} spend some more dude {else} hurray - you've got free shipping {/if} the names of real variables have been changed to protect the innocent.
__________________
ex x-cart guru |
|||||||
#16
|
|||||||||
|
|||||||||
Quote:
|
|||||||||
#17
|
|||||||
|
|||||||
Cool. Thanks for your help!
__________________
Matt X-Cart Gold 4.0.11 Apache 1.3.29 (Unix) PHP 4.3.4 |
|||||||
#18
|
|||||||
|
|||||||
Quote:
rofl yeah - can almost see daylight through the work
__________________
ex x-cart guru |
|||||||
#19
|
|||||||||
|
|||||||||
A similar situation
Wanted free shipping for orders over 89.99 but used real time shipping methods to calculate shipping costs. you have to set up a manual shipping charge with proces threashold of 9999.99 with a price of zero because you dont want to show the free shipping option to anyone under 90.00 and you dont have a manual shipping method set up you can use the following code. this was done in a 3.5.12 site but would work the same in other versions im sure. the only file that was modified is cart_totals.tpl find this line (around line 20) Code:
Code:
this mod also gives a message to say how much more you need to spend to get free shipping and then gives a message if you are allowd free shipping. change the 89.99 to suit your own needs
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#20
|
|||||||
|
|||||||
Quote:
How does this allow realtime shipping for all orders under $90? I think I'm not seeing something--too many late nights of coding Thanks. |
|||||||
|
|||
X-Cart forums © 2001-2020
|