'Discount Coupon taken' tpl mod
A client was complaining about the fact that it's not immediately obvious what's happened if you submit a coupon in the XC checkout process. So...here's a small template mod to make things a bit more 'tactile' when taking coupons. Shots below highlight what happens with this mod:
Usual stuff - back up before modifying anything, etc Before entering coupon (note: our coupon.tpl has been moved to the top) http://www.ocpx.com/temp/coupon_before.gif After entering coupon (note: there's an assumption here that you can only enter one coupon in the XC checkout - certainly the case with our install of 4.016, but if anyone knows any diffently, please shout) http://www.ocpx.com/temp/coupon_after.gif Tpl changes required to implement this: 1. Goto skin1/modules/Discount_Coupons/add_coupon.tpl 2. Create an {if} statement to wrap around your 'this coupon's been taken' content.. - create your lang vars if you're not as lazy as me. 3. At the end of your 'coupon taken element, add an {else}, followed by your 'default' add_coupon.tpl 4. Close the {/if}. For example: Code:
{if $cart.coupon_discount ne 0 and $cart.coupon_type ne "free_ship"} Hope that's useful. Cheers, |
Hey nice one! I get the occasional client complaining about this too, this should quiet them down :)
|
Thanks! This worked well :)
|
will be bit useful. Thanx for sharing...
|
All times are GMT -8. The time now is 02:18 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.