Remove item in specific view in magento

0

I have a shop in 3 languages with the showing of plots, being PT EN and ES, but I want to leave the plots display only for PT.

How can I comment on these plots for EN and ES? is it possible?

The parcel code is:

<?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>';
?>
    
asked by anonymous 22.07.2016 / 04:46

1 answer

1

The right thing would be to put an if at the beginning like this:

<?php
if(Mage::app()->getStore()->getName() == 'PT'){
$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>';
}
?>
    
22.07.2016 / 06:01