Our community forums have moved. Visit our Help Center to join the discussions.

× Got a question about SEO, marketing or promoting online? Ask here!

How to show coupon code after order has been completed?

3 years 6 days ago #17958 by Daniels
We have an order that has been completed using a coupon.
The name of the coupon is generic and used for all coupons of this type.
I need to find out the coupon code used in that specific order.
I have tried going through everywhere in search of the code corresponding to the coupon, but to no avail.
The number of coupons we have in use is too large to go through manually, so I hope there is an easy way to identify the code used by the customer.

Please Log in or Create an account to join the conversation.

3 years 3 days ago - 3 years 3 days ago #17965 by brenden
Hi there,

You can edit your worksheet in Admin > Settings > Email & Order Template > Order Templates > "Order" to use the coupon code variable to display. It is 'order.coupon.code'.

So I would use it like this:

Locate in the template for the section:

{% if  order.uses_coupon? %}
            <tr>
              <td class="heading">Coupon Discount</td>
              <td class="qty">{{ order.coupon_discount_inc_tax | simple_price_format }}</td>
            </tr>
{% endif %}

This says if a coupon code is used add this line to the order sheet. At present it shows the discounted about, and not the coupon code.

You can edit the line to include the coupon code section so maybe like this:
{% if  order.uses_coupon? %}
            <tr>
              <td class="heading">Coupon Discount ({{ order.coupon.code }})</td>
              <td class="qty">{{ order.coupon_discount_inc_tax | simple_price_format }}</td>
            </tr>
{% endif %}

I added '({{ order.coupon.code }})' after 'Coupon Discount' which will print the coupon code in brackets. i.e.:

Coupon Discount (FRIDAY20OFF)

Help articles to assist:

help.deconetwork.com/hc/en-us/articles/2...-and-Order-Templates
help.deconetwork.com/hc/en-us/articles/115004552868

Cheers,

Senior Product Manager
Wilcom - Sydney, Australia

File Attachment:


Please Log in or Create an account to join the conversation.

3 years 3 days ago - 3 years 3 days ago #17966 by adamp
Hi Daniel,

We didnt really expect anyone to name their coupons all the same so there is no way to see this information in business hub (I'd alter those names by the way to make it easier, have the name correspond in some way to the code for easier ID in future).

You can however get to that information via reports;

Admin > Reports > Export Orders

Select CSV as the export type, and export across the date range with the order concerned.

Load the downloaded report into your favourite spreadsheet application. The column "coupon" contains the coupon code that was used for the order.

Cheers

Happy Decorating!
Adam Pentland - CEO
:deco: www.DecoNetwork.com

File Attachment:

Please Log in or Create an account to join the conversation.

Time to create page: 0.108 seconds
Powered by Kunena Forum