The issue you're having around tiered pricing and configurables is quite a common one.
An example of what you're describing is as such:
Configurable A - Has 2 simple products, Simple A and Simple B
Tiered pricing for Configurable A is Buy 2 and save 10%.
But if 1 Simple A and 1 Simple B is bought, no discount is applied.
The very simple solution is to use this free extension: http://www.magentocommerce.com/magento-connect/spranks-configurabletierprices.html
With this you would get the required functionality so:
Configurable A - Has 2 simple products, Simple A and Simple B
Tiered pricing for Configurable A is Buy 2 and save 10%.
1 Simple A and 1 Simple B is bought, system add's 1 & 1 simples within the configurable bought. Discount is applied.
Hope this helps.
I think the key lies in the skip_adjustments
-argument. The whole incl. / excl. tax is handled by other modules that do adjustments (like the Tax, MSRP and WEEE modules).
If you set skip_adjustments
to false
the result will be that the old price is rendered with both including and excluding tax:
echo $block->renderAmount($priceModel->getAmount(), [
'display_label' => __('Regular Price'),
'price_id' => $block->getPriceId('old-price-' . $idSuffix),
'price_type' => 'oldPrice',
'include_container' => true,
'skip_adjustments' => false // <-- see what I did here?
]);
I ran into the same issue. I'm using CSS to effectively hide the old incl. price though.
Edit: Hm, now I'm running into the issue that when you do it like this there is some JavaScript on the product detail page that shows the old price excluding tax as being the new price excluding tax. I'll post an update here if I can find the problem.
Edit #2: Copying Magento_Tax/view/base/templates/pricing/adjustment.phtml
to my own theme and stripping out the ID and some data
-attributes seem to do the trick. However, I don't know what other issues this might cause:
<span data-label="<?php echo $block->escapeHtml(__('Excl. Tax')); ?>"
class="price-wrapper price-excluding-tax">
<span class="price"><?php echo $block->getDisplayAmountExclTax() ?></span>
</span>
It would be nice to see if Magento is going to support this feature out-of-the-box.
Best Answer
JohnyFree,Magento don't save special price to
sales order and sales models
.So you
cannot get special price to invoice
.Magento, sales item price has
been calculated on final price and final price has been save on sales_flat_order_item not saving product price