Personalized checkout and custom promotions with Shopify Scripts
<main> <div class="gift-card__image-wrapper"> {%- if settings.logo != blank -%} {%- assign logo_alt = settings.logo.alt | default: shop.name | escape -%} {{ settings.logo | image_url: width: 170 | image_tag: class: 'gift-card__image', alt: logo_alt }} {%- else %} <img class="gift-card__image" src="{{ 'gift-card/card.svg' | shopify_asset_url }}" alt="" height="{{ 570 | divided_by: 1.5 }}" width="570" > {%- endif %} </div> <h2>{{ shop.name }}</h2> ....rest of code....
<table align="center" class="giftcard__topmargin"> <tr> <td> {%- if shop.email_logo_url %} <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" class="giftcard__logosize"> {%- else %} <img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="Gift card image" width="240" height="160"> {% endif %} </td> </tr> </table>
<table align="center" class="giftcard__topmargin"> <tr> <td> {%- if shop.email_logo_url %} <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" class="giftcard__logosize"> {%- else %} <img src="{{ 'gift-card/card.jpg' | shopify_asset_url }}" alt="Gift card image" width="240" height="160"> {% endif %} </td> </tr> </table>Here's what these emails look like. The "2xEDGE" circled in red is where the custom graphic should display.
Gift card confirmation
Thanks in advance for any/all help!
User | RANK |
---|---|
4 | |
2 | |
2 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023