Forums / General Questions / Prompt to qualify for Free Shipping - code help please!

Prompt to qualify for Free Shipping - code help please!

Results 1 to 7 of 7
18 Feb 2011, 03:58
#1
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Prompt to qualify for Free Shipping - code help please!

Hi, on the shopping cart page, Id like to show a message that prompts the customer to spend more if they haven't yet qualified for free shipping.

I know this code is wrong but something like;
[PHP]<?php //FREE shipping message box here
if ($free_shipping==0) { // not qualified for free shipping
echo 'Wait! Before you checkout... A nicely formatted message box about qualifying for free shipping..';
}
elseif ($free_shipping==1){ // has qualified for free shipping
echo '';
}
?>[/PHP]

Could someone point in the right direction with the syntax? :oops:

Thanks!
18 Feb 2011, 05:15
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Prompt to qualify for Free Shipping - code help please!

I installed the Shopping Cart Define Page mod and added my text through the Define Pages Editor in Admin.

Allows you to change / add anything to the shopping cart page, no further coding required once the mod is installed :smile:

Example can be seen via the first link in my signature, just add something to the cart ...

Another alternative: Shopping Cart Free-Shipping-Qualifier Sidebox
18 Feb 2011, 05:54
#3
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Prompt to qualify for Free Shipping - code help please!

Hi Frank, thanks, its not really what im looking for. I actually need my code to show conditionally - if the customer doesn't have enough in the cart to qualify for free shipping they get a message. Otherwise; no text neccassary.

i have a programmer who works for me who would normally do this, but he's on holidays. :smile:

Cheers,

Scott.
18 Feb 2011, 07:34
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Prompt to qualify for Free Shipping - code help please!

You could adopt the code contained in Shopping Cart Free-Shipping-Qualifier Sidebox and modify it to your needs
18 Feb 2011, 08:29
#5
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Prompt to qualify for Free Shipping - code help please!

Thanks Frank, I'll check it out.
18 Feb 2011, 09:55
#6
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: Prompt to qualify for Free Shipping - code help please!

Thanks for pointing me toward the free shipping qualifier add-on.

I altered the code to show/hide my mesage. I also used the same code to show/hide the shipping estimator! I figure you dont need to estimate your shipping costs if its free.. :smile:
20 Feb 2011, 06:39
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Prompt to qualify for Free Shipping - code help please!

I have submitted an updated version of the Free Shipping Qualifier Sidebox mod. It also displays the prompt on the shopping cart page if so desired.

Support thread here