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

Easy link to coupon entry field for customers (super simple mod)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-26-2007, 11:45 AM
 
mgatten mgatten is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 158
 

Default Easy link to coupon entry field for customers (super simple mod)

About twice a week I get a phone call or email from a customer claiming that my cart never gave them an opportunity to enter a coupon code and would I please refund them the discount associated with such and such a coupon code.

You and I both know that they were prompted for the code, but people just aren't looking for it at the right time.

It happens so often that I have a keyboard macro which I will execute now so you see what a pain these are: I'm sorry for the confusion on the coupon entry. I've refunded your credit card for the amount on the coupon. For future reference, you can find the coupon entry field on the screen that appears right after you add anything to your cart. Alternatively, you can return to that screen by clicking "View Cart" in the upper right corner any time you already have anything in your cart."

Ugh.

Today it occurred to me that fixing this would be incredibly simple. I just added a menu item to the upper right menu, right below the existing "View Cart" link. It says "Enter Coupon" and it goes to the same place as "View Cart". Furthermore, it only shows up when items are in the cart.

Super simple:

Create a new language variable in the label topic called "lbl_enter_coupon" and set it to "Enter Coupon" or "Redeem Coupon" or whatever.

Then, in customer/menu_cart.tpl, find this line:
Code:
<a href="cart.php" class="VertMenuItems">{$lng.lbl_view_cart}</a><br />

Immediately after that line, insert these lines:
Code:
{if $minicart_total_items > 0} <a href="cart.php" class="VertMenuItems">{$lng.lbl_enter_coupon}</a><br /> {/if}

And that's all there is to it.

Granted, it doesn't add any actual functionality - it's just a copy of the link above it using a new label. But, when people go to that page they aren't normally looking for the coupon field and so they easily miss it. If they click on that link, they will actually look for it there and you'll be spared the phone call or email and the necessity of processing a partial refund.

Marshall
__________________
--------
http://www.miracleblanket.com Version 4.4.2
http://www.spot4tots.com Version 4.4.2
http://www.certifiedmiracles.com Version 4.4.2
Reply With Quote
  #2  
Old 12-27-2007, 02:46 AM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Re: Easy link to coupon entry field for customers (super simple mod)

Yes i have the same problem with my customers but what i did as well was to do the above, but also edit the lanugauge txt_add_coupon_header to include a anchor like so:

Code:
<a name="coupon_code" id="coupon_code"></a>If you have a valid discount coupon, you can enter it below, the store will deduct the discount amount from your total order.


Then in customer/menu_cart.tpl add the line:

Code:
{if $minicart_total_items > 0} <a href="cart.php#coupon_code" class="VertMenuItems">{$lng.lbl_enter_coupon}</a><br /> {/if}

That way it goes straight to the Redeem a discount coupon box, then there is no confusion.
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 08:44 PM.

   

 
X-Cart forums © 2001-2020