X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Free Gift Offer With Purchase of $xxx (https://forum.x-cart.com/showthread.php?t=37491)

BBlooms 02-11-2008 07:31 AM

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!

carpeperdiem 02-11-2008 08:16 AM

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

BBlooms 02-11-2008 09:54 AM

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?

carpeperdiem 02-11-2008 09:57 AM

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...

carpeperdiem 02-11-2008 10:25 AM

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}
 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.


All times are GMT -8. The time now is 05:49 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.