Post by harvinchan » Sun Feb 11, 2018 6:20 pm

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
Last edited by harvinchan on Sun Feb 11, 2018 7:18 pm, edited 1 time in total.

Newbie

Posts

Joined
Thu Nov 03, 2016 1:51 pm

Post by thekrotek » Sun Feb 11, 2018 6:47 pm

What do you mean by that exactly? Your current description is very confusing.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by harvinchan » Sun Feb 11, 2018 7:14 pm

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"

Newbie

Posts

Joined
Thu Nov 03, 2016 1:51 pm

Post by thekrotek » Sun Feb 11, 2018 7:36 pm

Why do you need that? If customer uses coupon, it's perfectly visible on order page in admin.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by harvinchan » Sun Feb 11, 2018 7:43 pm

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.

Newbie

Posts

Joined
Thu Nov 03, 2016 1:51 pm

Post by thekrotek » Sun Feb 11, 2018 7:51 pm

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Sun Feb 11, 2018 11:05 pm

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by thekrotek » Sun Feb 11, 2018 11:13 pm

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.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Active Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » Sun Feb 11, 2018 11:21 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Feb 12, 2018 7:07 pm

Basically, post this in the Commercial Support forum and pay someone to do it.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Active Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by straightlight » Tue Feb 13, 2018 7:24 am

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:

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 22 guests