VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: funny-rabbit on August 23, 2020, 17:50:36 PM

Title: <?php echo $this->orderDetails['paymentName'] ?>
Post by: funny-rabbit on August 23, 2020, 17:50:36 PM
hello my problem is
<?php echo $this->orderDetails['paymentName'] ?>
results in a html formatted string named: <span class="vmpayment_name">Rechnung</span><br />

what is needed is just "Rechnung". do you know how to strip the html off of <span class="vmpayment_name">Rechnung</span><br /> ?
Title: Re: <?php echo $this->orderDetails['paymentName'] ?>
Post by: GJC Web Design on August 23, 2020, 18:08:04 PM
https://stackoverflow.com/questions/15309077/php-removing-html-tags-from-string
Title: Re: <?php echo $this->orderDetails['paymentName'] ?>
Post by: funny-rabbit on August 23, 2020, 18:51:27 PM
Yeah this works! I give you +1 reputation.
Thanks!!