Page 1 of 2 12 LastLast
Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    148
    Plugin Contributions
    0

    Default checking out with gift certificate

    My customers seem to have an ongoing problem with gift certificates and I think I've figured out why they are having confusion so often.

    The usual complaint is that they've redeemed the gift certificate but it doesn't get applied to the order.

    I tried duplicating the problem and here's what happens on my setup (1.39h) -

    1. customer begins checkout and has a gift certificate code which they have not yet redeemed.
    2. on the payment page, they enter the gift certificate code and a payment method.
    3. Clicking continue brings the customer to the final checkout page with a message that indicates that they have redeemed the gift certificate successfully.
    4. Gift certificate has in fact been redeemed but not applied to the order.

    It seems that when a customer redeems a gift certificate *during checkout* they must also specify an amount to apply. I guess that makes sense but the "redeemed" message makes the customer think that they've done everything they need to do. And since they've now passed the payment page, there's no additional opportunity to use the gift certificate during the current purchase. Finally, the customer is puzzled and upset when they get to the confirmation page and there's no gift certificate amount applied to their order.

    I've added all sorts of text on the payment page to try to make it clearer for customers, but this comes up several times a week, so that leads me to believe it's still confusing to customers.

    One possible solution would be to automatically default to using enough gift certificate funds to pay for the whole order (or as much as is in the gift certificate balance) with an option to reduce that. But I don't know how to do that.

    My Zen Cart defaults to using zero of the existing amount of the gift certificate until another amount is specified. I would imagine most customer want to use their gift certificate now rather than later so defaulting to zero seems counter-intuitive.

    Ed

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,672
    Plugin Contributions
    6

    Default Re: checking out with gift certificate

    This really depends ...

    Many buy Gift Certifcates to send to other people ... if they start redeeming the Gift Certificate and it automatically applies the amount then they will use the Gift Certificate on their own order ...

    You could customize Gict Certificate ot_gv so that the Gift Certificate has a redeem button next to it and the Apply Amount always shows ... and maybe that will help your customers ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Nov 2008
    Posts
    148
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    Quote Originally Posted by Ajeh View Post
    This really depends ...

    Many buy Gift Certifcates to send to other people ... if they start redeeming the Gift Certificate and it automatically applies the amount then they will use the Gift Certificate on their own order ...

    You could customize Gict Certificate ot_gv so that the Gift Certificate has a redeem button next to it and the Apply Amount always shows ... and maybe that will help your customers ...
    If someone purchases a gift certificate for someone else, it won't be in their account until *after* they complete the purchase, at which point they can email it to the recipient. Unless they come back to the site to make another purchase, they normally would not mistakenly use the gift certificate themselves.

    I would like the "amount applied" to default to the smaller of either the order total or the gift certificate balance which is currently available.

    If a person doesn't want to use their gift certificate balance, then they should have the option of reducing or changing the amount applied to zero, instead of the other way around.

    I would think that in the vast majority of checkouts, people with gift certificates want to use it now, so the default should be to apply the gift certificate with the option of not applying it if they want.

    I've never had a customer tell me they checked out and mistakenly used their gift certificate balance.

    But I get at least 3-4 people a week who complete the checkout without using the gift certificate that Zen Cart said they just redeemed, and then they want me to adjust the balance and apply their gift certificate to the order that is already complete.

    Telling a customer they've redeemed a gift certificate during checkout and then not applying it makes for unhappy customers.

    thanks,

    Ed

  4. #4
    Join Date
    Nov 2008
    Posts
    148
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    In re-reading my last message, I think maybe I'm needlessly complicating this.

    For me, the issue is that if a customer redeems a gift certificate DURING the checkout process, I would like to have the gift certificate balance applied to that order. Can this be done?

    thanks,

    Ed

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,672
    Plugin Contributions
    6

    Default Re: checking out with gift certificate

    You would have to work out the calculation to use based on the Total, Gift Certificate amount and existing Customer Balance ... but if you look at the code in the Gift Certificate ot_gv you could add this to set the amount to the specific Gift Certificate just redeemed:
    Code:
            $_SESSION['cot_gv'] = $gv_result->fields['coupon_amount'];
            //          zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_REDEEMED_AMOUNT. $currencies->format($gv_amount)), 'SSL'));
            $messageStack->add_session('redemptions',ERROR_REDEEMED_AMOUNT. $currencies->format($gv_amount), 'success' );
    I don't know the calculations off the top of my head ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #6
    Join Date
    Nov 2008
    Posts
    148
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    Ok, thanks.

    Yes, Zen Cart already handles an amount placed into the "amount to apply" box nicely and even holds the value if you decide to leave the checkout flow and then come back to it later.

    So I think that all I need to do is to get the gift certificate value into the variable for "amount to apply" instead of it defaulting to zero. Once there, Zen Cart should automatically calculate what is allowed.

    I'll continue looking at it to see if I can figure it out.

    thanks again,

    Ed

  7. #7
    Join Date
    Feb 2012
    Posts
    58
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    Just updated my code and it works like a charm. Thanks again!

  8. #8
    Join Date
    Jun 2006
    Posts
    176
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    This works great, EXCEPT for when the customer has an existing balance and then redeems a new gift certificate. It does not update the field with the NEW gift certificate account balance.

    For example, customer has a $2.50 balance leftover from previous gift certificate. Redeems a new certificate worth $5.00. Balance in the box still shows $2.50, even though the customer's gift certificate balance is now $7.50.

    Any idea how to get it to repopulate the field when a new gift certificate is redeeemed and there is a previously existing balance?

  9. #9
    Join Date
    Dec 2011
    Posts
    41
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    Interesting. I didn't check on that. I'll have to look at the code to see what it's doing when I get a chance, but somebody else may already know and can respond more quickly.

    EDIT: And the same goes for if they don't have a balance at all and redeem during checkout.

  10. #10
    Join Date
    Dec 2011
    Posts
    41
    Plugin Contributions
    0

    Default Re: checking out with gift certificate

    Okay, guys. New code to get it to work better thanks to input from abcisme (good catch).

    This works for me. So to consolidate:

    In /includes/modules/order_total/ot_gv.php, line 48 (for me) looks like this:
    PHP Code:
        if (!zen_not_null(ltrim($_SESSION['cot_gv'], ' 0')) || $_SESSION['cot_gv'] == '0'$_SESSION['cot_gv'] = '0.00'
    and needs to be changed to:
    PHP Code:
        if (!zen_not_null(ltrim($_SESSION['cot_gv'], ' 0')) || $_SESSION['cot_gv'] == '0'$_SESSION['cot_gv'] = $this->user_has_gv_account($_SESSION['customer_id']); 
    The new change (lines 263-264 for me) looked like this:
    PHP Code:
            //          zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_REDEEMED_AMOUNT. $currencies->format($gv_amount)), 'SSL'));
            
    $messageStack->add_session('redemptions',ERROR_REDEEMED_AMOUNT$currencies->format($gv_amount), 'success' ); 
    and needs to be changed to:
    PHP Code:
            $_SESSION['cot_gv'] = $this->user_has_gv_account($_SESSION['customer_id']);
            
    $messageStack->add_session('redemptions',ERROR_REDEEMED_AMOUNT$currencies->format($gv_amount), 'success' );
            
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT'error_message=' urlencode(ERROR_REDEEMED_AMOUNT$currencies->format($gv_amount)), 'SSL')); 
    (please note the first new line to pull the new gift balance)

    This will redirect it back to the payment page after processing the gift certificate and it will update the amount to use to be their new balance. They can then change it if they want to before proceeding.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Change all references of 'Gift Certificate' to 'Gift Voucher'
    By crashtackle in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jan 2010, 08:21 PM
  2. coupon for free gift with gift certificate purchase?
    By tkepler in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 PM
  3. Want to use a printed gift certificate (with code) in the gift certificate process?
    By HelenSama in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 9
    Last Post: 15 Apr 2008, 02:04 PM
  4. Disable buying gift certificate with a gift certifcate
    By eaglewu in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 1
    Last Post: 28 Jan 2007, 04:46 AM
  5. Gift Certificate Order with no Gift Certificate?
    By Jeff_Mash in forum Bug Reports
    Replies: 20
    Last Post: 14 Oct 2006, 09:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •