Trying to get volume pricing to display correctly on the prod page.
Problem: Volume pricing seems to display correctly until you add the product to the basket. After you add the product to the basket, the volume price on the product page appears to be calculated from the discounted price based on the volume of products in the basket and not the base price. This results in prices being displayed that are too low. The correct price is always shown in the basket. The displayed discount also seems incorrect (see below) as the numbers don't seem to make much sense.
I am guessing/hoping we are missing something simple but just don't know where to look. Any help is appreciated.
Background and information:
Current Miva 9 store using a ReadyTheme and the built in Volume Pricing through Price Groups.
After much frustration and searching, finally found this thread "http://extranet.miva.com/forums/showthread.php?114658-Marketing-gt-Specific-Sale-Price/page2&highlight=checkbox+price" which give some information on how to do the display.
Added the following code to the prod display (taken directly from other thread).
< h3>
Price:
<span id="price-value-additional" style="text-decoration: line-through">
<mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
&mvt:product:formatted_base_price;
</mvt:if>
</span>
<span id="price-value" class="bold">&mvt:product:formatted_price;</span>
<div id="product-discounts"></div>
< /h3>
< div id="product-discounts">
<mvt:foreach iterator="discount" array="product:discounts">
<div class="product-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
</mvt:foreach>
< /div>
Example with Actual Results:
Price Group Name: Test Volume Discount
Pricing Table in Price group:
Quantity Type Amount
5 Fixed 2.00
10 Fixed 4.00
15 Fixed 6.00
--Product display with 0 of this product in basket:
Price: $10.00
Quantity Price
1-4 $10.00
5-9 $8.00
10-14 $6.00
15+ $4.00
--Product display with 4 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $8.00
Test Volume Discount: $10.00
Quantity Price
1-4 $8.00
5-9 $6.00
10-14 $4.00
15+ $2.00
--Product display with 5 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $8.00
Test Volume Discount: $2.00
Quantity Price
1-4 $8.00
5-9 $6.00
10-14 $4.00
15+ $2.00
--Product display with 14 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $4.00
Test Volume Discount: $34.00
Quantity Price
1-4 $4.00
5-9 $2.00
10+ $0.00
--Product display with 15 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $4.00
Test Volume Discount: $6.00
Quantity Price
1-4 $4.00
5-9 $2.00
10+ $0.00
Problem: Volume pricing seems to display correctly until you add the product to the basket. After you add the product to the basket, the volume price on the product page appears to be calculated from the discounted price based on the volume of products in the basket and not the base price. This results in prices being displayed that are too low. The correct price is always shown in the basket. The displayed discount also seems incorrect (see below) as the numbers don't seem to make much sense.
I am guessing/hoping we are missing something simple but just don't know where to look. Any help is appreciated.
Background and information:
Current Miva 9 store using a ReadyTheme and the built in Volume Pricing through Price Groups.
After much frustration and searching, finally found this thread "http://extranet.miva.com/forums/showthread.php?114658-Marketing-gt-Specific-Sale-Price/page2&highlight=checkbox+price" which give some information on how to do the display.
Added the following code to the prod display (taken directly from other thread).
< h3>
Price:
<span id="price-value-additional" style="text-decoration: line-through">
<mvt:if expr="l.settings:product:base_price GT l.settings:product:price">
&mvt:product:formatted_base_price;
</mvt:if>
</span>
<span id="price-value" class="bold">&mvt:product:formatted_price;</span>
<div id="product-discounts"></div>
< /h3>
< div id="product-discounts">
<mvt:foreach iterator="discount" array="product:discounts">
<div class="product-discount">&mvt:discount:descrip;: &mvt:discount:formatted_discount;</div>
</mvt:foreach>
< /div>
Example with Actual Results:
Price Group Name: Test Volume Discount
Pricing Table in Price group:
Quantity Type Amount
5 Fixed 2.00
10 Fixed 4.00
15 Fixed 6.00
--Product display with 0 of this product in basket:
Price: $10.00
Quantity Price
1-4 $10.00
5-9 $8.00
10-14 $6.00
15+ $4.00
--Product display with 4 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $8.00
Test Volume Discount: $10.00
Quantity Price
1-4 $8.00
5-9 $6.00
10-14 $4.00
15+ $2.00
--Product display with 5 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $8.00
Test Volume Discount: $2.00
Quantity Price
1-4 $8.00
5-9 $6.00
10-14 $4.00
15+ $2.00
--Product display with 14 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $4.00
Test Volume Discount: $34.00
Quantity Price
1-4 $4.00
5-9 $2.00
10+ $0.00
--Product display with 15 of this product in basket:
(base price of $10.00 is struck through)
Price: $10.00 $4.00
Test Volume Discount: $6.00
Quantity Price
1-4 $4.00
5-9 $2.00
10+ $0.00
Comment