Version Notes
- Bug fixes
Download this release
Release Info
Developer | Nosto |
Extension | Nosto_Tagging |
Version | 2.6.13 |
Comparing to | |
See all releases |
Code changes from version 2.6.12 to 2.6.13
app/code/community/Nosto/Tagging/Helper/Price.php
CHANGED
@@ -165,10 +165,22 @@ class Nosto_Tagging_Helper_Price extends Mage_Core_Helper_Abstract
|
|
165 |
public function getItemFinalPriceInclTax(Mage_Sales_Model_Order_Item $item)
|
166 |
{
|
167 |
$quantity = (double)$item->getQtyOrdered();
|
168 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
if ($quantity > 1) {
|
170 |
-
$
|
171 |
}
|
172 |
-
|
|
|
173 |
}
|
174 |
}
|
165 |
public function getItemFinalPriceInclTax(Mage_Sales_Model_Order_Item $item)
|
166 |
{
|
167 |
$quantity = (double)$item->getQtyOrdered();
|
168 |
+
$basePrice = $item->getBaseRowTotal() + $item->getBaseTaxAmount() + $item->getBaseHiddenTaxAmount() - $item->getBaseDiscountAmount();
|
169 |
+
$orderCurrencyCode = $item->getOrder()->getOrderCurrencyCode();
|
170 |
+
$baseCurrencyCode = $item->getOrder()->getBaseCurrencyCode();
|
171 |
+
if ($orderCurrencyCode != $baseCurrencyCode) {
|
172 |
+
$priceInOrderCurrency = Mage::helper('directory')->currencyConvert(
|
173 |
+
$basePrice,
|
174 |
+
$baseCurrencyCode,
|
175 |
+
$orderCurrencyCode
|
176 |
+
);
|
177 |
+
} else {
|
178 |
+
$priceInOrderCurrency = $basePrice;
|
179 |
+
}
|
180 |
if ($quantity > 1) {
|
181 |
+
$priceInOrderCurrency = round($priceInOrderCurrency/$quantity, 2);
|
182 |
}
|
183 |
+
|
184 |
+
return $priceInOrderCurrency;
|
185 |
}
|
186 |
}
|
app/code/community/Nosto/Tagging/etc/config.xml
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
<config>
|
30 |
<modules>
|
31 |
<Nosto_Tagging>
|
32 |
-
<version>2.6.
|
33 |
</Nosto_Tagging>
|
34 |
</modules>
|
35 |
<global>
|
29 |
<config>
|
30 |
<modules>
|
31 |
<Nosto_Tagging>
|
32 |
+
<version>2.6.13</version>
|
33 |
</Nosto_Tagging>
|
34 |
</modules>
|
35 |
<global>
|
package.xml
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Nosto_Tagging</name>
|
4 |
-
<version>2.6.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Personalization for Magento</summary>
|
10 |
<description>Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.</description>
|
11 |
-
<notes>-
|
12 |
<authors>
|
13 |
<author>
|
14 |
<name>Nosto</name>
|
@@ -16,8 +16,8 @@
|
|
16 |
<email>magento@nosto.com</email>
|
17 |
</author>
|
18 |
</authors>
|
19 |
-
<date>2016-
|
20 |
-
<time>
|
21 |
<contents>
|
22 |
<target name="magecommunity">
|
23 |
<dir name="Nosto">
|
@@ -44,7 +44,7 @@
|
|
44 |
<file name="Data.php" hash="11b848036443a431eafbbd155b72e40d"/>
|
45 |
<file name="Date.php" hash="1a108a4ec8169b73411b6c11b86a1d80"/>
|
46 |
<file name="Oauth.php" hash="9ecbea9e8411501cabe780e0511a1d05"/>
|
47 |
-
<file name="Price.php" hash="
|
48 |
<file name="Url.php" hash="289294904d246c56e4de96798927a7f6"/>
|
49 |
</dir>
|
50 |
<dir name="Model">
|
@@ -108,7 +108,7 @@
|
|
108 |
<dir name="etc">
|
109 |
<file name="adminhtml.xml" hash="7ea210738a77630f299a14b442f3b8d0"/>
|
110 |
<file name="cache.xml" hash="e874fbbf2eb89b325deb1a62afbcfb4d"/>
|
111 |
-
<file name="config.xml" hash="
|
112 |
<file name="system.xml" hash="7deba6544a09d7af8c07e6b5edc0975a"/>
|
113 |
</dir>
|
114 |
<dir name="sql">
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Nosto_Tagging</name>
|
4 |
+
<version>2.6.13</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Personalization for Magento</summary>
|
10 |
<description>Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.</description>
|
11 |
+
<notes>- Bug fixes</notes>
|
12 |
<authors>
|
13 |
<author>
|
14 |
<name>Nosto</name>
|
16 |
<email>magento@nosto.com</email>
|
17 |
</author>
|
18 |
</authors>
|
19 |
+
<date>2016-05-13</date>
|
20 |
+
<time>14:15:56</time>
|
21 |
<contents>
|
22 |
<target name="magecommunity">
|
23 |
<dir name="Nosto">
|
44 |
<file name="Data.php" hash="11b848036443a431eafbbd155b72e40d"/>
|
45 |
<file name="Date.php" hash="1a108a4ec8169b73411b6c11b86a1d80"/>
|
46 |
<file name="Oauth.php" hash="9ecbea9e8411501cabe780e0511a1d05"/>
|
47 |
+
<file name="Price.php" hash="364bb50e9ee5453a4d61bf3e484cd894"/>
|
48 |
<file name="Url.php" hash="289294904d246c56e4de96798927a7f6"/>
|
49 |
</dir>
|
50 |
<dir name="Model">
|
108 |
<dir name="etc">
|
109 |
<file name="adminhtml.xml" hash="7ea210738a77630f299a14b442f3b8d0"/>
|
110 |
<file name="cache.xml" hash="e874fbbf2eb89b325deb1a62afbcfb4d"/>
|
111 |
+
<file name="config.xml" hash="db9d0ac504240cd199d76f3577690a7b"/>
|
112 |
<file name="system.xml" hash="7deba6544a09d7af8c07e6b5edc0975a"/>
|
113 |
</dir>
|
114 |
<dir name="sql">
|