価格にカスタムテキストを追加する方法、または順序付けのレビューでEMI価格を表示する方法は?

magento.stackexchange https://magento.stackexchange.com/questions/5817

質問

私のサイトが支払いにEMIオプションを使用しているため、注文レビューセクションの価格をに表示する必要があります

月額rs.xxx

フォーマット。

PHTMLファイルのみを変更しました。これはそのように表示されるだけなはずですが、価格計算はそのままであるはずです。

今、私の問題は、私が使用したことです flywebdesign_paypalfee 支払い方法を追加するための拡張機能では、上記の形式で支払い方法料金を表示する必要があります。

enter image description here

画像の価格は正しくないかもしれません。それは私が望む形式です。支払い料を月額120として表示したい

これを行う方法がわかりません、誰かが助けてくれませんか?

支払い料が渡されることはわかっています

$address->addTotal(array(
            'code' => $this->getCode(),
            'title' => Mage::helper('sales')->__('Payment Charge'),
            'full_info' => array(),
            'value' => $amount,
            'emi'   => 'per month' // custom line to show per month.
        ));

また、配列に追加の要素を追加して、支払いレビューでフェッチすることができます。しかし、それを追加する方法 RS120.00

役に立ちましたか?

解決

使った

            $address->addTotal(array(
            'code' => $this->getCode(),
            'title' => Mage::helper('sales')->__('Payment Charge'),
            'full_info' => array(),
            'value' => $amount,
            'text'  => $appendText // text to be appended
        ));

App/Code/local/flywebdesign/paypalfee/model/sales/quote/address/total/painycharge.php fetch()メソッド

    <td style="<?php echo $this->getTotal()->getStyle() ?>" class="a-right">
    <?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
        <?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?>
        <?php echo $this->getTotal()->getText(); // print text to be appended ?>
    <?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
</td>

in app/design/frontend/my_theme/default/template/checkout/total/default.phtml

それはトリックをします!

ライセンス: CC-BY-SA帰属
所属していません magento.stackexchange
scroll top