Version Notes
Fixed wrong price display on detail page
Download this release
Release Info
| Developer | Simon Sprankel |
| Extension | Spranks_ConfigurableTierPrices |
| Version | 1.0.0 |
| Comparing to | |
| See all releases | |
Code changes from version 0.4.0 to 1.0.0
app/code/community/Spranks/ConfigurableTierPrices/Model/Product/Type/Configurable/Price.php
CHANGED
|
@@ -13,6 +13,11 @@ class Spranks_ConfigurableTierPrices_Model_Product_Type_Configurable_Price exten
|
|
| 13 |
public function getFinalPrice($qty = null, $product)
|
| 14 |
{
|
| 15 |
$finalPrice = parent::getFinalPrice($qty, $product);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
// if tier prices are defined, also adapt them to configurable products
|
| 17 |
// example: if a shirt is available in red and black and if you buy
|
| 18 |
// three or more the price is eight euro, you can also buy one red and
|
| 13 |
public function getFinalPrice($qty = null, $product)
|
| 14 |
{
|
| 15 |
$finalPrice = parent::getFinalPrice($qty, $product);
|
| 16 |
+
// do not calculate tier prices based on cart items on product page
|
| 17 |
+
// see https://github.com/sprankhub/Spranks_ConfigurableTierPrices/issues/14
|
| 18 |
+
if (Mage::registry('current_product')) {
|
| 19 |
+
return $finalPrice;
|
| 20 |
+
}
|
| 21 |
// if tier prices are defined, also adapt them to configurable products
|
| 22 |
// example: if a shirt is available in red and black and if you buy
|
| 23 |
// three or more the price is eight euro, you can also buy one red and
|
app/code/community/Spranks/ConfigurableTierPrices/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Spranks_ConfigurableTierPrices>
|
| 5 |
-
<version>0.
|
| 6 |
</Spranks_ConfigurableTierPrices>
|
| 7 |
</modules>
|
| 8 |
<global>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Spranks_ConfigurableTierPrices>
|
| 5 |
+
<version>1.0.0</version>
|
| 6 |
</Spranks_ConfigurableTierPrices>
|
| 7 |
</modules>
|
| 8 |
<global>
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Spranks_ConfigurableTierPrices</name>
|
| 4 |
-
<version>0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>This module changes the way Magento calculates tier prices of configurable products.</summary>
|
| 10 |
<description>This Magento module changes the way Magento calculates tier prices of configurable products. You can now add different variants of a configurable product to the cart and you will get the tier price for the total quantity of all variants in the cart.</description>
|
| 11 |
-
<notes>
|
| 12 |
<authors><author><name>Simon Sprankel</name><user>spranks</user><email>simonsprankel@gmail.com</email></author></authors>
|
| 13 |
-
<date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Spranks"><dir name="ConfigurableTierPrices"><dir name="Helper"><file name="Admin.php" hash="7ec6839ca9c1fa032d493eaba60e391a"/></dir><dir name="Model"><dir name="Product"><dir name="Type"><dir name="Configurable"><file name="Price.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Spranks_ConfigurableTierPrices</name>
|
| 4 |
+
<version>1.0.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>This module changes the way Magento calculates tier prices of configurable products.</summary>
|
| 10 |
<description>This Magento module changes the way Magento calculates tier prices of configurable products. You can now add different variants of a configurable product to the cart and you will get the tier price for the total quantity of all variants in the cart.</description>
|
| 11 |
+
<notes>Fixed wrong price display on detail page</notes>
|
| 12 |
<authors><author><name>Simon Sprankel</name><user>spranks</user><email>simonsprankel@gmail.com</email></author></authors>
|
| 13 |
+
<date>2014-03-12</date>
|
| 14 |
+
<time>13:21:42</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Spranks"><dir name="ConfigurableTierPrices"><dir name="Helper"><file name="Admin.php" hash="7ec6839ca9c1fa032d493eaba60e391a"/></dir><dir name="Model"><dir name="Product"><dir name="Type"><dir name="Configurable"><file name="Price.php" hash="c4abb3058d158f0ca8bf1483e3fb4bbc"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="570f31c351a32e5fccb69ccf7cf4c2ee"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Spranks_ConfigurableTierPrices.xml" hash="8a3f62990ce094cb7e7e6313b66d5d51"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
