Get subtotal minus discount php code - Magento

Inaendelea Ilichapishwa Dec 22, 2014 Kulipwa wakati wa kujifungua
Inaendelea

Hello, this is the line of codes that I have on my [url removed, login to view] page:

var google_conversion_value = <?php echo Mage::app()->getStore()->roundPrice($order->getSubtotal())?>;

<?php echo Mage::app()->getStore()->roundPrice($total)?>

This gets the subtotal and the total in Magento.

I would like to get the subtotal - discount.

Example:

229.00 (subtotal) - 31.90 (discounts) = 197.10 should be reported.

Right now 229.00 (only subtotal) is being reported.

Please bid if you can do this or give me the code.

Magento PHP

Kitambulisho cha Mradi: #6895426

Kuhusu mradi

7 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

7 wafanyakazi wanazabuni wastani wa $18/saa kwa kazi hii

ubedarab

Hi, I will do this job, I am magento expert, can we discuss about requiement ? waiting for your good response.

$25 USD / saa
(Maoni 56)
5.4
svitja

Предложение еще не подано

$15 USD / saa
(Maoni 1)
1.4
sajjidkhan

Hi there, I am an expert mangento developer with 8 years of experience. i can provide you this code and m even ready to work with you on this project if you like. Looking forward to hear from you. Regards, Saj Zaidi

$16 USD / saa
(Maoni 0)
0.0