Integrations
...
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 %} b2b customer account invite email depending on how you've set up your customer accounts in shopify, you can customise the notifications that are sent to your b2b customers using customer accounts ("new customer accounts") if you're using shopify "customer accounts", you can simply direct your customers to your website's login page (e g yourstore com/account ) and they can then enter their email to receive a 6 digit access code at this time, it is not possible to customise the email that is sent to the customer if you're using " legacy accounts " and you're creating a brand new customer record, you'll need to click " send account invite" this will then send the customer an "account invite" email with details on how to activate their account by setting a password ( learn more here ) by default, the email contents are relatively basic and you may want to enhance what is shown to the customer you can also edit the contents of this email by going to settings > notifications within your shopify admin here under "accounts and outreach", you'll see all related emails that can be modified in the case of the "customer account invite", you can edit the contents of this email here you could go a step further and even make the contents specific to your b2b customers by using our guide above "including b2b specific content in an email") should you require, you can also edit further customer related emails such as the "account welcome", "password reset" and more