TestingStuff Posted February 21, 2023 Share Posted February 21, 2023 Hi there! I'm trying to split a string from a custom field I've added to the order form, namely: {$service_custom_fields.0} User's enter keywords within this custom field and seperate them by a comma. How can I split this string by comma? I found the following answer; however, this was written in 2017 so I'm not sure if this still works (I've edited the values to match my question): {assign "service_custom_fields.0" ","|explode:$keywords} Will this still work? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted February 22, 2023 Share Posted February 22, 2023 {assign "service_custom_fields" ","|explode:$keywords} {$service_custom_fields.0} or {$service_custom_fields[0]} Smarty hasn’t change much. It’s PHPish 0 Quote Link to comment Share on other sites More sharing options...
Louie53682 Posted February 25, 2023 Share Posted February 25, 2023 The solution worked for me thanks to the community and the members for the solution. My Insurance Info 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.