[MSHOP-204] sampleShop mail templates do not match checkout form Created: 15/Jul/15  Updated: 21/Jul/15  Resolved: 20/Jul/15

Status: Resolved
Project: Magnolia Shop (closed)
Component/s: None
Affects Version/s: 2.2
Fix Version/s: 2.3.0

Type: Bug Priority: Neutral
Reporter: Will Scheidegger Assignee: Trung Luu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.75d
Original Estimate: 5h

Attachments: PNG File Screen Shot 2015-07-15 at 15.18.31.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Once you enable the contact and confirmation mail processors in the shop checkout form, you will see tons of error messages in the log. The mail templates use lots of variables which do not exist in the checkout form anymore. The mail templates therefore should be updated.



 Comments   
Comment by Will Scheidegger [ 15/Jul/15 ]

This works for contact:

Order number is: ${cartId}

Billing address:
   Name: ${billingAddressFirstname}
   Address: ${billingAddressStreet}
   Email: ${billingAddressMail}
[#if (shippingSameAsBilling!'false')=='false']
Shipping address:
   Name: ${shippingAddressFirstname!}
   Address: ${shippingAddressStreet!}
   Email: ${shippingAddressMail!}
[/#if]
Products:
[#list cart.getCartItems() as product]
	    	
Product Name: ${product.productTitle}
	    	Quantity: ${product.quantity}
	    	Unit Price: ${product.unitPrice?string("0.00")}
	    	Total: ${product.itemTotal?string("0.00")}
[/#list]

Subtotal: ${cart.grossTotalExclTax?string("0.00")}
Vat: ${cart.itemTaxTotal?string("0.00")}
Total: ${cart.grossTotalInclTax?string("0.00")}

This for confirm:

Thank you for your order:

Your order number is: ${cartId}

Check the details below:


Billing address:
   Name: ${billingAddressFirstname}
   Address: ${billingAddressStreet}
   Email: ${billingAddressMail}
[#if (shippingSameAsBilling!'false')=='false']
Shipping address:
   Name: ${shippingAddressFirstname!}
   Address: ${shippingAddressStreet!}
   Email: ${shippingAddressMail!}
[/#if]

Products:
[#list cart.getCartItems() as product]
	    	
Product Name: ${product.productTitle}
	    	Quantity: ${product.quantity}
	    	Unit Price: ${product.unitPrice?string("0.00")}
	    	Total: ${product.itemTotal?string("0.00")}
[/#list]

Subtotal: ${cart.grossTotalExclTax?string("0.00")}
Vat: ${cart.itemTaxTotal?string("0.00")}
Total: ${cart.grossTotalInclTax?string("0.00")}
Comment by Trung Luu [ 20/Jul/15 ]

Fixed.

Generated at Mon Feb 12 07:10:22 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.