Dave_B Posted February 4, 2021 Share Posted February 4, 2021 Hi Team, I am hoping someone can help me with using "Smarty replace" to remove the "Total Due Today: $xx.xx" text string from the Order Confirmation emails. The variable is {$order_details} Cheers, Dave 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 10, 2021 Share Posted February 10, 2021 I believe order_details is just text, so using the following may work: {$order_details|replace:'Total Due Today':'Total Due Never'} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 10, 2021 Share Posted February 10, 2021 14 hours ago, steven99 said: I believe order_details is just text, so using the following may work: I suspect that you might have to tweak the Smarty Security Policy to allow you to use replace in an email template. ultimately, as it's the last line of the variable, you might be able to use substr with a negative value to remove the final x characters - but again, that would have to be enabled in the above policy... replace might be awkward because often the $xx.xx will be mentioned a number of times in the variable. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.