Ragonz Posted September 3, 2019 Share Posted September 3, 2019 Related to Since the upgrade to 7.8.1 this has stopped working and I'm not quite sure what needs changing now, what would be the code to achieve this now bearing in mind I was using {if $configoption.name|strstr:'('}{$configoption.name|strstr:'(':true}{else}{$configoption.name}{/if} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 3, 2019 Share Posted September 3, 2019 11 minutes ago, Ragonz said: Since the upgrade to 7.8.1 this has stopped working and I'm not quite sure what needs changing now, what would be the code to achieve this now bearing in mind I was using {if $configoption.name|strstr:'('}{$configoption.name|strstr:'(':true}{else}{$configoption.name}{/if} did you remember to add the above code back into ordersummary.tpl ?? i'm not seeing it in your standard_cart/ordersummary template... 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted September 3, 2019 Author Share Posted September 3, 2019 Nope, because I'm not sure where to add it, I wrote a document a long time ago that reminds me what to do after a WHMCS upgrade and it tells me to 6. Update order summery to remove item descriptions Go to templates/standard_Cart/ordersummary.tpl Change {$configoption.name} To {if $configoption.name|strstr:'('}{$configoption.name|strstr:'(':true}{else}{$configoption.name}{/if} However {$configoption.name} does not exist in the file anymore 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 3, 2019 Share Posted September 3, 2019 it's still there in standard_cart/ordersummary.tpl ~ line 13... <span class="pull-left"> » {$configoption.name}: {$configoption.optionname}</span> which I assume you will need to change to... <span class="pull-left"> » {if $configoption.name|strstr:'('}{$configoption.name|strstr:'(':true}{else}{$configoption.name}{/if}: {$configoption.optionname}</span> 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted September 3, 2019 Author Share Posted September 3, 2019 Thats the one, guide updated and thanks again Brian 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted January 16, 2020 Author Share Posted January 16, 2020 7.9.1 seems to have broken this again, guide says to change 6. Update order summery to remove item descriptions Go to templates/standard_Cart/ordersummary.tpl Change <span class="pull-left"> » {$configoption.name}: {$configoption.optionname}</span> To <span class="pull-left"> » {if $configoption.name|strstr:'('}{$configoption.name|strstr:'(':true}{else}{$configoption.name}{/if}: {$configoption.optionname}</span> However when this is done the order summary clients can see is blank 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 16, 2020 Share Posted January 16, 2020 7 hours ago, Ragonz said: However when this is done the order summary clients can see is blank perhaps it doesn't like the double caret that somehow appeared in the pasted code... <span class="pull-left"> » {if $configoption.name|strstr:'('}{$configoption.name|strstr:'(':true}{else}{$configoption.name}{/if}: {$configoption.optionname}</span> 0 Quote Link to comment Share on other sites More sharing options...
Ragonz Posted January 16, 2020 Author Share Posted January 16, 2020 Ah that would be it, perhaps somthing to do with the codeblock as its in your reply back in september 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.