- Copy function showprice() (located in functions.inc.php) into shownettoprice() and remove all VAT calculatings.
Then you can output this value anywhere like showprice() does now.
- You include Netto-price creation into function showprice(). But then both price are visible also in product overview and so on. I don't now, if you need this.
- Output the result of SQLquery "SELECT price.value FROM price WHERE price.itemID='$art' AND price.curID='$curID'" directly in detail.php somewhere. I think that' not so nice, because you have the value only in detail.php. Perhaps you need Netto-price next month somewehere else ;-)
First way is recommended.
Greetings,
Andreas.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to show both bruto price (including VAT) and netto price (no VAT) in "detail.php" line 46 ?
Different ways are possible:
- Copy function showprice() (located in functions.inc.php) into shownettoprice() and remove all VAT calculatings.
Then you can output this value anywhere like showprice() does now.
- You include Netto-price creation into function showprice(). But then both price are visible also in product overview and so on. I don't now, if you need this.
- Output the result of SQLquery "SELECT price.value FROM price WHERE price.itemID='$art' AND price.curID='$curID'" directly in detail.php somewhere. I think that' not so nice, because you have the value only in detail.php. Perhaps you need Netto-price next month somewehere else ;-)
First way is recommended.
Greetings,
Andreas.
The second part is the best thing, with the Netto)price creation into function showprice.
As you like it ;-)
But show_item* uses also showprice().