Skip to content
Permalink
main
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
{# @var order \fostercommerce\snipcart\models\Order #}
{# @var craft \Craft #}
{% extends 'snipcart/email/_layout' %}
{% set isDevMode = craft.app.getConfig().general.devMode %}
{% set imageUrl = isDevMode ?
'@fostercommerce/snipcart/assetbundles/dist/img/order-complete-devmode.png' :
'@fostercommerce/snipcart/assetbundles/dist/img/order-complete.png' %}
{% set primaryDetails = {
'Order Number': order.invoiceNumber,
'Order Email': order.email,
} %}
{% if providerOrders.shipStation.orderId is defined %}
{% set primaryDetails = primaryDetails | merge({
'ShipStation #': providerOrders.shipStation.orderId
}) %}
{% endif %}
{% block hero %}
{% include "snipcart/email/_parts/hero" with {
imageSrc: craft.app.assetManager.getPublishedUrl(imageUrl, true)
} only %}
{% endblock hero %}
{% block content %}
{% include "snipcart/email/_parts/heading" with {
heading: order.billingAddressName ~ " " ~ ("just placed an order"|t) ~ "."
} only %}
{% include "snipcart/email/_parts/primary-details" with {
primaryDetails: primaryDetails
} only %}
{% include "snipcart/email/_parts/items" with {
order: order
} only %}
{% include "snipcart/email/_parts/custom-fields" with {
customFields: order.customFields
} only %}
{% include "snipcart/email/_parts/addresses" with {
order: order
} only %}
{% include "snipcart/email/_parts/payments" with {
order: order
} only %}
<p style="margin-top: 40px;" class="muted mono">
{{- order.ipAddress }}<br>
{{- order.userAgent -}}
</p>
{% endblock content %}