Using SD's built in 'Bank Transfer' payment method and renaming 'Cash on Delivery' to 'Click and Collect'
I want to add an instructional paragraph for these respective methods in the Customer email (the one they get after placing an order) and the Recipt page.
It is easy in the Order Shipped Email Inner Layout:
This does not work in the Customer email Inner Layout and on the Recipt page.
Blockifs using some of the php has not worked:
or
Neither have php expressions of blockifs using any of the Payment Method variables:
How can this be done?
Thank you!
I want to add an instructional paragraph for these respective methods in the Customer email (the one they get after placing an order) and the Recipt page.
It is easy in the Order Shipped Email Inner Layout:
Code:
<actinic:block PHP='true' SELECTABLE='false'> $myString = '<actinic:variable encoding="htmlline" name="OrderData"/>'; if (strpos($myString, "Click and Collect") !== false) { echo "<b>Your purchase is ready for you to collect from our store:</b><br> Please print this email and bring it with you together with cash or credit card for payment.<br> <b>Please quote this reference: <actinic:variable encoding="perl" name="OrderNumberOnlineXML" selectable="false" /> </b>"; } if (strpos($myString, "Bank Transfer") !== false) { echo "<b>Please pay now by bank transfer (BACS) using the following details:</b><br> "; echo "<actinic:variable name="CompanyNameOnlineXML" /><br> "; echo "Sort-Code 20-30-40<br> "; echo "A/C 07654321<br> "; echo "Please use reference: <actinic:variable encoding="perl" name="OrderNumberOnlineXML" selectable="false" /> "; } </actinic:block>
Blockifs using some of the php has not worked:
Code:
$myString = '<actinic:variable encoding="htmlline" name="PaymentMethodOnlineXML" />'; strpos($myString, "Click and Collect") !== false
Code:
strpos('<actinic:variable encoding="htmlline" name="PaymentMethodOnlineXML" />', "Click and Collect") !== false
Code:
<actinic:variable encoding="htmlline" name="OrderData"/> <actinic:variable name="PaymentMethodName" /> <actinic:variable encoding="htmlline" name="PaymentMethodOnlineXML" />
Thank you!
Comment