I'm trying to edit a TPL file from the OpenCart platform, I would put the "price" divided into 6 parts, but when I put $pricecard = $ price / 6;
And Echo $ pricecard;
No value is returned.
Here's my code
<span> <?php echo "Ou em 6x de: " ?></span>
<?php $a = 6; ?>
<?php $pricecard = $price; ?>
<span><?php $pricecard = $tbData->priceFormat($pricecard); ?></span>
<span class="price-cartao"><?php echo $pricecard; ?></span>
I put $pricecard
getting the value of $price
and displayed normally, any suggestions?