Jump to content

Gift Certificate Coupon codes mangled with padding


Guest neilski

Recommended Posts

Guest neilski

Hi all,

I have a live store, 4.2.3 (not upgraded yet to 4.3) -I'm on Linux/PHP5.2.5/Mysql-5.0.67

I am having a major headache with Gift Certificates.

I've enabled them, and they can be purchased, they are emailed ok to the recipient, but there seems to be a major problem.

The sendCoupon function in classes/orders.php creates the code, and inserts it into the db, but the db table CubeCart_Coupons has a CODE column of type varbinary, this is causing the code to be padded to its length(25) with 0/ (zero-slashes). The code then appears mangled in the ORDER overview on the admin side, and when I try to use the code in checkout as acustomer, I get Sorry code not found

Anyone else had this problem? Or can suggest a workaround?

All I could think of was manually padding the code to 25chars, but dont want to go modding, if I have this wrong?

Could I be missing anything??

Any help or ideas would be great!!

Cheers

Neil.

Link to comment
Share on other sites

Interesting problem I havent seen this behavior on my clients 4.2.3 or 4.3 installs

but will keep an eye on them

have you submitted a ticket or bug report about this?

let us know what happens id be real interested to kow if this needs fixing or not

Sorry I couldnt be more helpful

Kinetic

Link to comment
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.

Guest
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...