Skip to content

Commit

Permalink
Ajusta mensagem do método de pagamento Boleto (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
laerte-guimaraes authored Feb 8, 2019
1 parent d87cbd7 commit 9533b01
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 31 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Notas das versões

## [1.4.1 - 11/02/2019](https://github.com/vindi/vindi-magento/releases/tag/1.4.1)

### Corrigido
- Corrige mensagem no checkout para exibição do boleto bancário


## [1.4.0 - 29/01/2019](https://github.com/vindi/vindi-magento/releases/tag/1.4.0)

### Corrigido
Expand Down
27 changes: 0 additions & 27 deletions app/code/community/Vindi/Subscription/Block/Form/BankSlip.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,4 @@ public function _construct()
parent::_construct();
$this->setTemplate('vindi_subscription/payment/form/bankslip.phtml');
}
/**
* @return string
*/
protected function getQuoteType()
{
$quote = Mage::getSingleton('checkout/session')->getQuote();

foreach ($quote->getAllVisibleItems() as $item) {
if (($product = $item->getProduct()) && ($product->getTypeId() === 'subscription')) {
return 'subscription';
}
}

return 'bill';
}
/**
* @return string
*/
public function setMessageBankSlip()
{
$quote = Mage::getSingleton('checkout/session')->getQuote();

if('subscription' == $this->getQuoteType($quote))
return 'enviado mensalmente';

return 'enviado';
}
}
2 changes: 1 addition & 1 deletion app/code/community/Vindi/Subscription/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Vindi_Subscription>
<version>1.4.0</version>
<version>1.4.1</version>
</Vindi_Subscription>
</modules>
<global>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php $_code = $this->getMethodCode() ?>
<div id="payment_form_<?php echo $_code ?>" style="display:none;">
<div class="block-payment-bankslip">
Um Boleto Bancário será enviado mensalmente para o seu endereço de e-mail.
O boleto bancário será enviado para o seu e-mail.
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
$_code = $this->getMethodCode();
$text = $this->setMessageBankSlip();
?>

<div id="payment_form_<?php echo $_code ?>" style="display:none;">
<div class="block-payment-bankslip">
Um boleto bancário será <?=$text?> para o seu endereço de e-mail.
O boleto bancário será enviado para o seu e-mail.
</div>
</div>

0 comments on commit 9533b01

Please sign in to comment.