Page 1 of 1

Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 6:20 pm
by harvinchan
Hi all,

I am trying to add all the coupons used on the Customer Comment once they placed an order.

Currently looking at /catalog/model/checkout/order.php but not really sure which one to change.

The reason for doing this is because I'm using shipstation and it doesnt export customer coupons. only customer comments.

EDIT:
Example.
They used the coupon 10OFF. it will be added to their order comment. if they added a comment of "Hi, please ship asap"

the coupon will be appended to their comment which will make their comment
"Hi, please ship asap - Coupon used 10OFF"

Would really appreciate if anyone could assist.

Thank you in advance

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 6:47 pm
by thekrotek
What do you mean by that exactly? Your current description is very confusing.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 7:14 pm
by harvinchan
Sorry.

When a customer places an order. I wanted to append the coupon code they used to their comment.

Example.
They used the coupon 10OFF. it will be added to their order comment. if they added a comment of "Hi, please ship asap"

the coupon will be appended to their comment which will make their comment
"Hi, please ship asap - Coupon used 10OFF"

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 7:36 pm
by thekrotek
Why do you need that? If customer uses coupon, it's perfectly visible on order page in admin.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 7:43 pm
by harvinchan
I am using Shipstation to process the orders and it would be nice if I can see whether a customer uses a coupon or not. Just wanted to check everything on one platform.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 7:51 pm
by thekrotek
I have no idea, what is Shipstation, but the only way to implement this is do a custom work. Your task is quite specific and I doubt there's any extension, which does that.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 10:54 pm
by straightlight
I would not suggest this strategy on attaching coupon codes since there would be no way on knowing if the provided comment is a positive / negative comment. It wouldn't make sense to attach a coupon code based on a negative / unrelated comment to the order before approving the order.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 11:05 pm
by thekrotek
straightlight wrote:
Sun Feb 11, 2018 10:54 pm
I would not suggest this strategy on attaching coupon codes since there would be no way on knowing if the provided comment is a positive / negative comment. It wouldn't make sense to attach a coupon code based on a negative / unrelated comment to the order before approving the order.
It's just an order comment, it's neither negative, nor positive.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 11:08 pm
by straightlight
If so, then anyone could just write anything unrelated and obtain his coupon code. A coupon code would normally be attached to an order for a specific purpose.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 11:13 pm
by thekrotek
straightlight wrote:
Sun Feb 11, 2018 11:08 pm
If so, then anyone could just write anything unrelated and obtain his coupon code. A coupon code would normally be attached to an order for a specific purpose.
Please, stop shooting replies without even thinking before that. Read the description above, OP clearly stated what for he needs this. Nothing unrelated or unsecure, just coupon code from ALREADY APPLIED coupon is added to order comment as additional info for ANOTHER PLATFORM, which obviously has another structure.

Re: Adding coupon codes on customer comment

Posted: Sun Feb 11, 2018 11:21 pm
by straightlight
Please, stop shooting replies without even thinking before that.
That is, of course, your own version and your saying. Based on my last reply, I still don't suggest this solution to be used.

Re: Adding coupon codes on customer comment

Posted: Mon Feb 12, 2018 7:07 pm
by paulfeakins
Basically, post this in the Commercial Support forum and pay someone to do it.

Re: Adding coupon codes on customer comment

Posted: Tue Feb 13, 2018 7:24 am
by straightlight
paulfeakins wrote:
Mon Feb 12, 2018 7:07 pm
Basically, post this in the Commercial Support forum and pay someone to do it.
A bit direct but also has its truth. :flex: