Hi,

I am currently using the price table module for displaying prices and adding discounts for purchasing in larger quantities and have set up a VAT tax but the client would like all prices displayed excluding VAT. I have achieved this anywhere prices are displayed in views with use of the Commerce price by components module to display only the base price but I cannot see any way to have the price table itself display prices excluding VAT.

Am i missing something or is this not possible currently? I don't know much PHP but have managed to hack the module and comment out the code that calls the rule to add the taxes but obviously this is a route I really don't want to go down. The feature I would like is something like a checkbox at the place where I edit the quantity and price labels where I can also set whether taxes are included in the displayed price or not. Is this possible at all?

Thanks

Comments

pcambra’s picture

Status: Active » Fixed

The price table is displaying the price as the normal price system would do so there's no reason for commerce price by components not to work there if you make it to, meaning that the module is a setting on the formatter and the price table formatter probably is not affected by it.

So either you alter the price by components module to expose the price components in the price table formatter settings or you just create a new formatter commenting out the line where the price is calculated:
rules_invoke_event('commerce_product_calculate_sell_price', $line_item);

Note that in this second case you won't get any price modifications there, discounts or anything.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

spelling

summit’s picture

Issue summary: View changes

Hi,
I open this, if this is ok. Because I do not want to use another formatter to not calculate the price.
The best solution is I think to add a "exclusive tax" option on the price table input form.

With these solutions (thanks to nwpullman2) I have the "inclusive tax" option there. Are you please willing to add the "exclusive tax" option also?
---
1. Replace the stable module code with the dev code from 7.x-1.x-dev (available from the download page)
2. Modify the dev code:
https://drupal.org/files/issues/commerce_price_table_1886080_15_2_compon...
3. Create a new module called custom_commerce_price_table, all code is available here:
https://drupal.org/files/issues/commerce_price_table_1886080_15_1_tax_su...
----
Sorry if I opened this issue, while you still think it would be closed, then I make a new issue for it.
Greetings, Martijn

summit’s picture

Status: Closed (fixed) » Active
maxplus’s picture

Thanks,

I have chosen to use the solution to comment out "rules_invoke_event('commerce_product_calculate_sell_price', $line_item);" inside the price table module

No problem for me that discounts and other calculation are left out by doing this.

andyg5000’s picture

geek-merlin’s picture

#2918686: Allow formatting table prices adds table price formatters.