X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Simple Mod - Save 20% with our End of Year Sale (https://forum.x-cart.com/showthread.php?t=36407)

ShishaPipeUK 12-29-2007 10:45 AM

Simple Mod - Save 20% with our End of Year Sale
 
Here is a simple mod but very, very effective.
Where you have your coupon code box in the shopcart/cart.php
Above that we have displayed just for December (or what ever month you want) in this case the words:

Save 20% with our End of Year Sale – enter code: YEARENDSALE

See picture below:

http://www.theshisha.com/images/xcartmod_save.jpg

To get this you need to add a new language txt file called txt_gcheckout_add_coupon_yearend and edit skin1/modules/Discount_Coupons/add_coupon.tpl and of cause add a discount coupon to your shop.

So to add a language just go to the language section in your admin area and add a new entry:

Select Topic = Text
Variable = txt_gcheckout_add_coupon_yearend
Value =
Code:

<strong><font color="#3333FF" Size="4">Save 20% with our End of Year Sale &ndash; enter code:</font> <font color="#FF0000" Size="4">YEARENDSALE</font></strong>
<BR>
<BR>


Next go to your Coupons section in your admin and add a coupon code, I have called mine YEARENDSALE

And finally edit the skin1/modules/Discount_Coupons/add_coupon.tpl

Where you have:
Code:

{$lng.txt_add_coupon_header}

Add after this:

Code:

<br />
{if $smarty.now|date_format:"%m" > 11}
{$lng.txt_gcheckout_add_coupon_yearend}
{/if}


That's it, this is only displayed in December and you can miss out the 2007 so you can use this automatically every December of the year.

Happy New Year to everyone here and thank you all for the great mods that have been posted this year.

Regards Paul.


All times are GMT -8. The time now is 06:41 PM.

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