Integrations
...
Shopify
Shopify Customisations
Shopify Email Notifications
important to note if you are looking to customise the behaviour of your shopify emails and notifications, we strongly recommend engaging a shopify expert to assist whilst we can provide an overview of how to approach making customisations, our team cannot assist in applying any code changes including b2b specific content in an email if you need to show b2b specific content in your shopify email notifications, it's possible to add special code snippets that give this flexibility to get started, go to the shopify notifications admin and load the template you want to edit, e g the order confirmation within the code, simply add the following code snippet and adjust as required {% for tag in customer tags %} {% if tag == 'b2b' %} content to show to b2b {% else %} content to show to dtc {% endif %} {% endfor %} to test your changes, you'll need to trigger the email notification (e g by placing a real order) and we advise testing with a customer that has been tagged with b2b and one that hasn't including additional details (order note attributes ) if you want to show additional data within your notifications, you can include the special order note attribute variables for example, you may want to show a delivery date or a payment method to the customer within the shopify notification emails, simply add the following code to the following files order confirmation order invoice draft order invoice name of field {{ attributes name of field }} name of field {{ attributes another name of field }} for example, if you wanted to show the shipping date and the payment method in our example above, you would add the below {{ attributes shipping date }} {{ attributes sparkpaymenttype }} this code will need to be added in an appropriate location and may need to be adjusted based on how your emails are formatted you can also show the order note by including the below code {% if note != '' %} note {{ note }} {% endif %} hide discount pricing from showing it's also possible to hide the discounting pricing from showing if you would prefer to just show the final price within the shopify notification emails, simply add the following css to the following files order confirmation order invoice draft order invoice this code will need to be added before the closing \</head> tag in each email template {% for tag in customer tags %} {% if tag == 'b2b' %} \<style> order list item original price, order list item discount allocation, p total discount { display none; } \</style> {% else %} {% endif %} {% endfor %} customise the payment methods the order notification email will by default show a payment method at the bottom it's possible to customise what is shown here by adding the below code to the order confirmation email {% assign sparkpaymenttype = attributes sparkpaymenttype %} {% if sparkpaymenttype == 'paymentbyinvoice' %} invoice payment \[change this to the required payment name] {% endif %}