chrometweaks.org

Im looking for a really good iPage web host any help?

Click Here To View All Answers...


Got a question... Im looking for a really good iPage web host any help? Thanks in advance for any answer or 2. 2nd question I got is.. Hi guys!.

I have seen many webstores that lets their visitor choose to either see all prices including or excluding VAT/TAX...but I havent found any contribution here that lets me offer that service to my oscommerce visitors.....is there a contribution that I have missed offering this.

Thanks.

Prince Tom..

Comments (5)

That's a good question. I'm not sure what is the right answer to your question. I'll do some poking around and get back to you if I bump into an anything. You should email the people at iPage as they probably could assist you..

Comment #1

Hmm...then it is not the function that I am looking for coz at all the webstores I have seen the visityor can choose to either see all prices with or without tax. However thank you very much for replying !!.

Take care.

// Prince Tom..

Comment #2

I would not have thought it would be too difficult to do..

Just need to find the variable that is set by admin and code up a button to toggle it..

I have seem some stores that give both prices. That looks quite nice if you have enough screen real estate...

Comment #3

If I were doing this, I would start by installing the Quantity Price Break contribution (which centralizes the pricing display code). Then I would make changes in the tep_add_tax function in includes/functions/general.php and the display_prices function in includes/classes/currencies.php.

Btw, it's not a variable, it's a constant: DISPLAY_PRICE_WITH_TAX.

Hth,.

Matt..

Comment #4

Yes showing both prices is no problem, just make a nother function in general.php I will check as soon is I get back home..

About the switch, well I have seen 100000 of osc sites but never one where the customer can chose... seen one though where the customer could chose stylesheet, have you maybe got a sample link ???!!?!?!?!?!?!.

Greetz john..

Comment #5

So it's in includeds/classes/currencies.php add.

Function display_price_two($products_price, $products_tax, $quantity = 1) {.

Return $this->format(tep_add_tax($products_price, $products_tax) * $quantity).'<br><font face="Verdana"><span style="font-size:8pt;">( exkl. MwSt.:&nbsp;'. $this->format($products_price, $products_tax * $quantity).')</span></font>';.

}.

Where ever you would like to view the price with and without vat.

Simply change.

$currencies->display_price_two.

Thats it.....

Greetz john.

This post has been edited by.

RobinsonDixon.

: 18 October 2004, 14:38..

Comment #6


This question was taken from a support group/message board and re-posted here so others can learn from it.