9

Try $quote = Mage::getModel('checkout/session')->getQuote(); $quoteData= $quote->getData(); $grandTotal=$quoteData['grand_total']; OR print_r(Mage::helper('checkout')->getQuote()->getData());


9

Try this: Mage::helper('checkout')->getQuote()->getGrandTotal() It will get you the grand total in this format 50.0000. If you want only 2 decimals use this: number_format(Mage::helper('checkout')->getQuote()->getGrandTotal(), 2);


8

The easier way to find out what template is used is to enable the template path hints. But here is the stacktrace you need to follow. Mage_Checkout_Block_Cart_Totals::renderTotals calls renderTotal for each total. This one calls _getTotalRenderer that works like this: if there is a block with the name $code_total_renderer in the page ($code is the code of ...


7

You can use the directory/currency model, this has a format function that will include standard localisation but it can also be customised. It has the following options: price, options (in this case NO_SYMBOL), include container, add brackets So you can use it as follows and it will convert 15000.59863 into 15.000,60 for a German set-up, 15,000.60 for an ...


7

you had a common problem, some time we not get discount amount by default in magento, please go to this link i hope you will definitely got solution http://www.magentocommerce.com/boards/viewthread/269154/ you may also check this type of problem http://magento.ikantam.com/qa/how-add-discount-total-magento


6

To sum it up, order totals aren't stored on the order object the same way as on the quote object. The reason is that the result of the dynamic quote totals are stored in the order table. You're right in it being a bad thing to get the quote totals from the order, as things like credit memos affect order totals. The quote totals also has some extra ...


5

You can get the grand total by using this: $grandTotal = Mage::getModel('checkout/session')->getQuote()->getGrandTotal();


4

This seems like a very risky decision. If you implemented it you would need to override too much of the core, making the site extremely difficult to upgrade and support. Performing a search in the Magento core for max(0 returns results in the following areas: Enterprise_CustomerBalance_Model_Observer::creditmemoDataImport() ...


4

you can managed this settign from admin Go to admin>System>Configuration>Sales>Tax>Shopping Cart Display Settings make Display Subtotal=Excluding Tax enter image description here you can managed tax display setting on cart page,from here : admin>System>Configuration>Sales>Tax>Shopping Cart Display Setting ==================...


4

You can do it by using a collector after the Mage_Sales_Model_Quote_Address_Total_Grand and set the grandTotal using setGrandTotal. Check this link for reference you can just use the collector for updating only grand total. Reference


4

You can use the below function to fetch Total Row Price including tax. $_item->getRowTotalInclTax() Also you can check sales_order_item table columns for other possible values available to fetch on Order Item object.


3

normally the base_grant_total (and all other fields that begin with base_) are kept in the value you set for default currency in the backend in system->configuration. The grant_total is kept in the currency used to place the order.


3

Try changing your theme to either "rwd" or "base". I think what is happening is that the theme you are currently using was made for Magento 1.6.1 and doesn't comport the same class / DOM architecture as required by the Javascript files of the version 1.9.2. If it works with the theme of Magento 1.9.2, you will have either to explore the JS files to see what ...


3

The following event did the trick. controller_action_predispatch_checkout_cart_index


3

Your problem is that getGrandTotal is returning a string rather then a number. Trying to see if a string is lower then 0 isn't going to work. You can filter the string and remove anything which isn't a number using filter_var($grandTotal, FILTER_SANITIZE_NUMBER_INT); Which in your case would return -226950 which you can then check if it's lower then 0, if ...


3

To calculate and process the grand total you need to follow these $quote = Mage::getSingleton('checkout/session')->getQuote(); $address = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress(); $address = Mage::getSingleton('checkout/session')->getQuote()->getBillingAddress(); $quote = $address->getQuote(); ...


3

Answer of Khoa helps me to get my solution but for just to explain in details I am posting my answer. 1) Create checkout_cart_index.xml file in your design with below content. 2) Clear cache and done. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="urn:magento:...


2

Please Try This below one line code It's working for me. <?php echo Mage::getModel('directory/currency')->format($_product->getFinalPrice(), array('display'=>Zend_Currency::NO_SYMBOL), false); ?>


2

usually we do in the following way do a local ovveride of app/code/core/Mage/Checkout/Block/Cart/Totals.php and look for the function public function renderTotal($total, $area = null, $colspan = 1) { $code = $total->getCode(); if ($total->getAs()) { $code = $total->getAs(); } if($code == 'code_to_skip') return(''); ...


2

As i understand the Question you can do this with "Catalog Price Rules". Add a New Catalog Price Rule and configure the it like this: Condition: Add SKU with value of SKU from "bundle_child_1" Actions: - Apply: By Percentage of the original Price - Discount Amount: 10.0000 - Enable Discount to Subproducts: No - Stop further Rules ...


2

I think you can do this just like you would modify any other model instance $item = Mage::getModel('sales/order_item')->load(id here)l $item->setPrice(40)->setBasePrice(40)->save(); then $order = Mage::getModel('sales/order')->load(order id here); $order->setSubtotal(70)->setBaseSubtotal(70); $order->setDiscountAmount(7)->...


2

Try something like code below, it should work correctly for tier prices and catalog price rules. /* @var $item Mage_Sales_Model_Quote_Item */ $item = Mage::getModel('sales/quote_item'); $qty = 3; $product = /* load product you want to get price for */; $item->setProduct($product); $item->setQty($qty); $item->setQuote(/* ...


2

I had encountered the same issue, steps to solve it are: Go to this location: app/code/core/Mage/Sales/etc/config.xml Make a copy of it in app/code/local: app/code/local/Mage/Sales/etc/config.xml Next on line number 1221 add msrp: <shipping> <class>sales/quote_address_total_shipping</class> <after>subtotal,freeshipping,...


2

I have the solution First of I found its easier to copy all the files into my theme directory. Create the theme directory http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html Overwrite Checkout pages app/design/frontend/[Vendor]/[Theme]/Magento_Checkout/ Copy web folder from default theme to your Magento_Checkout vendor/...


2

Try use event observer. config.xml <events> <payment_method_is_active> <observers> <namespace_module> <type>singleton</type> <class>NamaSpace_Module_Model_Observer</class> <method>paymentmethod</method> </...


2

You can achieve this by updating following file. app\design\frontend\YOUR_PACKAGE\YOUR_THEME\template\wishlist\item\list.phtml replace your file code with below. <?php $columns = $this->getColumns(); $wishListTotal = 0; ?> <table class="clean-table linearize-table" id="wishlist-table"> <thead> <tr> <?php ...


2

Cart summary on Cart page also used the Ui component. So, we can replace the default with your custom js component. Take a look at the Tax xml layout, we can see some good examples here: vendor/magento/module-tax/view/frontend/layout/checkout_cart_index.xml


2

For this code below table used sales_flat_quote and Feild used is of this table grand_total Edit If you look at this file app/code/core/Mage/Sales/etc/config.xml then this is the same table is used for sales/quote Check this way Mage::getSingleton("checkout/cart")->getQuote()->getId(); and check grand_total at that Id


2

Try this! <?php require_once(Mage::getModuleDir('controllers','Mage_Checkout').DS.'OnepageController.php'); class SR_MagentoCommunity_OnepageController extends Mage_Checkout_OnepageController { /** * Save checkout billing address */ public function saveBillingAction() { if ($this->_expireAjax()) { return; ...


2

try Following way... $order = Mage::getSingleton('sales/order')->loadByIncrementId($orderId); $order->getGrandTotal();


Only top voted, non community-wiki answers of a minimum length are eligible