Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Free Gift Offer With Purchase of $xxx

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 02-11-2008, 07:31 AM
  BBlooms's Avatar 
BBlooms BBlooms is offline
 

Newbie
  
Join Date: Sep 2007
Posts: 7
 

Default Free Gift Offer With Purchase of $xxx

I need someone to custom code a free gift offer. The offer would add a free gift with the purchase of $0-$30, 2 free gifts for $30.01-$99.99, and so on. I would also need this to work in reverse, if the customer decides to drop back below the $30 limit the free gift goes from a quantity of 2 to 1. The quantity box for the free gift on the cart page would have to be absent or either not changeable. Also i would like to have a dialogue box that states "you are only $5.65 away from a scond free gift" in the cart page. If anyone can help please let me know!
__________________
BrighterBlooms.com
X-Cart Version 4.1.9
Reply With Quote
  #2  
Old 02-11-2008, 08:16 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Free Gift Offer With Purchase of $xxx

No need to custom code this...

Just buy the On Sale mod from Altered Cart!

It's exactly what you are requesting, and LOTS more...

moving to 3rd party mods
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 02-11-2008, 09:54 AM
  BBlooms's Avatar 
BBlooms BBlooms is offline
 

Newbie
  
Join Date: Sep 2007
Posts: 7
 

Default Re: Free Gift Offer With Purchase of $xxx

Thanks carpeperdiem, that is exactly what i am looking for, only one more question. I want the shopping cart to say "you are only $5.65 away from a scond free gift", or whatever the case may be. do you know of a mod or hack to do this?
__________________
BrighterBlooms.com
X-Cart Version 4.1.9
Reply With Quote
  #4  
Old 02-11-2008, 09:57 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Free Gift Offer With Purchase of $xxx

Quote:
Originally Posted by BBlooms
Thanks carpeperdiem, that is exactly what i am looking for, only one more question. I want the shopping cart to say "you are only $5.65 away from a scond free gift", or whatever the case may be. do you know of a mod or hack to do this?

It is built into On Sale - or you can easily use smarty to do some math for you too. I use both methods.

Once you have On Sale, if you find the calculations to not be 100% what you want, just drop me a note and I'll give you the smarty to do the math yourself... I've already posted it up here too...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 02-11-2008, 10:25 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Free Gift Offer With Purchase of $xxx

you can use a variation of this code to use smarty to display "spend more to get something..." messages

Code:
{* BEGIN MOD FOR SPEND MORE *} {assign var='spend' value='50'} {math equation="x - y" x=$spend y=$cart.subtotal format="%.2f" assign="spendmore"} {if $spendmore gt 0} &nbsp;Spend {$config.General.currency_symbol}{$spendmore} more to qualify for a free gift! {else}<br /> <h3>You qualify for a free gift!</h3> {/if} {* END MOD FOR SPEND MORE *}

BUT -- On Sale does this much more elegantly -- since it can be tied to a specific promotion.

But this shows that smarty can do the math too... but On Sale is more specific to the offer.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:32 AM.

   

 
X-Cart forums © 2001-2020