2
I have this code php
to show the number of plots, but it shows like this:
Parcel up to 6x without interest.
I want him to show it like this:
Parcele in up to 6x of 30 reais.
In the case of 30 real is only one example, it would have to divide the total number by 6 and show.
The code is this:
<?php
$vezes = $_product->getData('parcelas');
echo '<p><small><b>Parcele em até '.$vezes.' X sem juros</b></small><br />';
for ( $i=1; $i <= $vezes; $i++ ) {
echo '<small>'.$i.'x de '.$_coreHelper->currency($_product->getFinalPrice()/$i, true, false).'</small><br />';
}
echo '</p>';
?>
It also shows plots in lines, but this is no problem.
How would it look?
Take the final price variable divide by the times and use the number format to format the price
– Sr. André Baill
how would it look? I don’t know anything from php :\
– Chead1988
Eita gave bad my answer.I will try for PC...
– Sr. André Baill
There I am on PC, I’ll assemble the answer again.
– Sr. André Baill
I posted an answer
– Sr. André Baill