I'm trying to change the payment method label on my checkout page. I want to display an image for the particular method. My original code was:
<label for="p_method_<?php echo $_code ?>" style="text-transform:none">
<?php echo $this->escapeHtml($this->getMethodTitle($_method)) ?>
<?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
Here is what I am trying to do: The name of the method I want to change is "Laybuy"
<label for="p_method_<?php echo $_code ?>" style="text-transform:none">
<?php if($this->getMethodTitle($_method) = "Laybuy "): ?>
<img>goes here
<?php else: ?>
<?php echo $this->escapeHtml($this->getMethodTitle($_method)) ?>
<?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
<?php endif; ?>
But it is not working at all. I am a complete php noob. How can I get this to work.