Jump to content

Recommended Posts

I would like to cancel a Gift Card someone has ordered. He's got this as a present and can't get what he wants from me, so I'm going to refund him outside of Cubecart. If I cancel the original order in Cubecart, will it cancel the gift card so that it cannot be used in future?



Link to post
Share on other sites

In admin, Promotional Codes, Gift Card tab, uncheck the Status of the relevant card code.

But I will check if doing so absolutely inhibits using that card.

Edited by bsmither
  • Thanks 1
Link to post
Share on other sites

When a coupon (including a GC) is being used, a database request is made for that code where the status is enabled. If no records are returned, an error message is displayed that says this coupon (GC) code is invalid.

If valid, that is, the code is good and enabled, and the database record also has a 'cart_order_id' (the order where the GC was purchased), then a check in CubeCart_order_summary is made against that 'cart_order_id'. If that table record simply exists (as it would if its status was set to 'Cancelled' as opposed to the order having been deleted), then...

A check is made on the Status of that order. The order must be in a Processing or Completed status. If otherwise, an error message is displayed that says, "Sorry but that code can't be used against an order of this status." (Which is misleading.)

  • Like 1
Link to post
Share on other sites

Thanks for that.

I've cancelled the order (which should let the original purchaser know that it has been cancelled) and I've unchecked the status of the same Gift Card. I don't really like deleting orders when it's been cancelled - I prefer to have the record on file.

As you say, the code is a bit "clunky" but its probably not a very usual occurrence, so hardly a big issue.


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...