Remove discount when sending email

Hey, everybody!

When you send an email, a discount is shown. I don’t want it to be displayed! I want only the price to be displayed! Please help me! Theme dawn

solidfix.pl

1 Like

Hi Ruder,

What app are you using to send these emails?

If the templates are Liquid-based, please share the template contents. You’d most likely just have to remove the HTML/Liquid code that generates those prices. I would also recommend saving a backup of the templates before making significant changes, in case you want to roll it back in the future.

Best,

Tobe

Hi @Ruder

Please kindly share with me if the email sent from Shopify or other apps

Best,

Daisy

Hi. Yes the email is sent from Shopify! No third party apps are used! This one needs to be deleted.

Hi. Yes the email is sent from Shopify! No third party apps are used! This one needs to be deleted.

Hi @Ruder

Which order template did you use to send it? Please share the code from the template so I can check further.

Click here to display the code, then copy everything and send it to me.

Best,

Daisy

{% capture email_title %}Dziękujemy za zakup! {% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
{% case delivery_method %}
{% when ‘pick-up’ %}
You’ll receive an email when your order is ready for pickup.
{% when ‘local’ %}
Hi {{ customer.first_name }}, we’re getting your zamówienie ready for delivery.
{% else %}
Hi {{ customer.first_name }}, we’re getting your zamówienie ready to be shipped. We will notify you when it has been sent.
{% endcase %}
{% if delivery_instructions != blank %}

Delivery information: {{ delivery_instructions }}

{% endif %} {% endif %} {% endcapture %} {{ email_title }} .button__cell { background: {{ shop.email_accent_color }}; } a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

{%- endif %}
Order {{ order_name }}

{{ email_title }}

{{ email_body }}

{% if order_status_url %}
 
Zobacz swoje zamówienie
{% if shop.url %}
or Zapraszamy do naszego sklepu
{% endif %}

{% else %}
{% if shop.url %}

Visit our store
{% endif %}

{% endif %}

{% assign gift_card_line_item = line_items | where: “gift_card” %}
{% if gift_card_line_item.first %}

Gift card

You’ll receive separate emails for any gift cards.

{% endif %}

Twoje zamówienie

{% for line in subtotal_line_items %} {% endfor %}
{% if line.image %} {% endif %} {% if line.product.title %} {% assign line_title = line.product.title %} {% else %} {% assign line_title = line.title %} {% endif %}

{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}

{{ line_title }} × {{ line_display }}

{% if line.variant.title != ‘Default Title’ %}
{{ line.variant.title }}

{% endif %}

Informacje o kliencie

{% if requires_shipping and shipping_address %} {% endif %} {% if billing_address %} {% endif %}

Shipping address

{{ shipping_address | format_address }}

Billing address

{{ billing_address | format_address }}
{% if requires_shipping and shipping_address %} {% endif %}

Shipping method

{{ shipping_method.title }}

Jeśli masz jakiekolwiek pytania, odpowiedz na tę wiadomość e-mail lub skontaktuj się z nami pod adresem {{ shop.email }}

Hey @Ruder , this looks like it’s using the default Shopify email template.

You can remove the discount tag from the line items by searching for discount in the editor interface and just removing / commenting out that part. Highly suggest that you keep a backup before you do any changes.

Same with the order level discount tag as well.

Let me know if you need any help :slightly_smiling_face:

Should I delete all the words discount? Or only where it’s highlighted in the square?

Hi @Ruder , removing it from the template should be enough.

The areas I highlighted are rough estimates from a quick look at the order email template.

I’d suggest taking help from Shopify support in making this modification if you’re not comfortable with liquid / code.

If you can share your exact template, then I can also have a look into this for you and share the final template for you.

Let me know :slightly_smiling_face: