For example, I want to offer customers the option to pay extra to have their order items shipped as they become available, rather than in 1 complete shipment. (I offer this during checkout but many customers overlook it, so I want to make it easy after checkout too).
So in the OrderPaid.CustomerNotification template I have something like:
%if (%Order.ShippingCountry% == "United States" && %Order.Shippable% && !(%Order.ShippingMethod%).Contains("multiple")) To have items shipped as they become available click the link above to view your order. Eligible orders will offer a Splitship option. endif%
But in testing, the && operators have been html encoded to && by the tinyMCE editor, so I end up with this conditionalStatement in the Tokenizer:
("United States" == "United States" && True && !("ground shipping").Contains("multiple"))
I think the linq Contains should work in the AsQueryable(), but I would have to find/replace the && beforehand, which means overriding that method so I'm probably better off just moving the logic out of the template in the first place.