1

I am running a Magento 1 website with version 4.2.2 of IWD One Page Checkout.

I have just modified the website to display a currency selector.

What this module does not appear to display is the Base Grand Total on the checkout page i.e.

Your credit card will be charged for £00.00

I have looked at modifying the following file but cannot find a variable to add in

\app\design\frontend\ultimo\xxx\template\opc\wrapper.phtml

The Grand Total is displayed by:

<?php echo Mage::helper('opc')->getGrandTotal()?>

Anybody?

1 Answer 1

0

After further digging around I found the answer I needed and added the following PHP code - I'll leave it here in case anyone else should need it:

// Degug code
// print_r(Mage::helper('checkout')->getQuote()->getData());

$baseGrandTotal = number_format(Mage::getModel('checkout/session')->getQuote()->getBaseGrandTotal(), 2);
$symbol=Mage::app()->getLocale()->currency('GBP')->getSymbol();
echo "<p>Your credit card will be charged for " . $symbol . $baseGrandTotal . "</p>";

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.