Zen Cart Logo
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Zen Developers - Surely this is easy?

Zen Developers - Surely this is easy?

Locked

Views: 3,165

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
9 Sep 2006, 7:25 PM
#1
rob28870 avatar

rob28870

New Zenner

Join Date:
Jan 2006
Location:
East Preston, West Sussex, United Kingdom
Posts:
24
Plugin Contributions:
0

Zen Developers - Surely this is easy?

I'm not a programmer or a web-designer but can anyone who is tell me if this right?

  1. In zencart admin you can toggle prices to be displayed with or without VAT.

  2. In programming terms this is a TRUE or FALSE condition (or 1 or 0).

  3. It should be easy to add a button to any zencart site that can be pressed by the shopper which toggles the same code between this TRUE or FALSE condition giving them the option to view prices with or without VAT.

If this is wrong or vastly over simplifying then please excuse my ignorance.

If this is correct then can someone please tell me where I can find the relevant code that changes this condition so I can pass it on to my developer?

Many Thanks
Rob

9 Sep 2006, 7:58 PM
#2
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Zen Developers - Surely this is easy?

so I can pass it on to my developer?Your developer? If he really is a developer, as in "PHP programmer" he should not have that much trouble finding this out himself.

And yes, there is an easy way to switch the taxes on and off, but I do not have it at hand atm. Maybe later ...

11 Sep 2006, 7:44 PM
#3
rob28870 avatar

rob28870

New Zenner

Join Date:
Jan 2006
Location:
East Preston, West Sussex, United Kingdom
Posts:
24
Plugin Contributions:
0

Re: Zen Developers - Surely this is easy?

I would very much appreciate it if you could.

Thanks

Robin

11 Sep 2006, 8:57 PM
#4
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Zen Developers - Surely this is easy?

Oops, I should have kept my big mouth shut. I guess I have to give it shot now. ;-)

I do not have a ready made solution for you, but I think I can point you in the right direction. Some time ago I wanted to create a tax free shopping module that uses the customer groups to allow customers (belonging to a "taxfree" group) to buy taxfree. I never really finished it but the basic idea does work, and I attached the files to this thread. Of course it is not exactly the same as what you asked for, but I think converting it to a taxfree button (i.s.o. a taxfree group) should not be difficult.

Basicly I would:

1: Add a taxfree true/false form button somewhere.

2: Check if the button has been pressed ($_POST value)

  1. If the $_POST value isset, save the taxfree true/false value into the $_SESSION array.

  2. Depending on the $_SESSION value disable taxes in includes\functions\functions_taxes.php by letting it return a value of 0.

So, the zip does not include al of the above, but it does include some code to save the taxfree tue/false value to the session, and switch the tax on and off accordingly.

I hope this helps. It may sound complicated? But it really isn't :smartass:

11 Sep 2006, 8:59 PM
#5
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Zen Developers - Surely this is easy?

Oops again, I forgot the attachement. Here it is....

12 Sep 2006, 7:23 AM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Zen Developers - Surely this is easy?

Ah, the joys of the English language and its usage! Thank goodness I never called myself a web "developer", otherwise I'd be having a serious falling out with my client this morning!! :D :D

But what should he call me as I am indeed "developing" his website from the basic ZC? Perhaps I should be a "zenhancer" :wink2:

But thanks for the solution - I'm surprised that if it really is that simple that it isn't part of the core code.

12 Sep 2006, 7:54 AM
#7
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Zen Developers - Surely this is easy?

:laugh:

The "Surely this is easy?" combined with "so I can pass it on to my developer" inspired me, but English in not my native language so maybe it is just me. :-)

I'm surprised that if it really is that simple that it isn't part of the core code.Really? Many simple solutions are not part of the Zen Cart core code :P

But seriously: I am sure it really removes tax form the products while shopping, but I only tested it briefly so I am not 100% that there will be no glitches. And maybe just setting tax to 0 is not enough??

(I do not really have a purpose for it myself right now, so it's somewhere on the bottom of my todo list to test it extensively)

12 Sep 2006, 7:58 AM
#8
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Zen Developers - Surely this is easy?

I'll let you know how we get on with it.

12 Sep 2006, 8:19 AM
#9
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Zen Developers - Surely this is easy?

Ryk:

I'll let you know how we get on with it.Please do!

Although I do not need it atm, I am very curious if it is of any practical use.

Oops, while writing this I think I already found an issue. What i was after was taxfree shopping, but that is not the same as only showing prices excluding tax. Hmm..... the tax on the invoices will be 0 too (or at least that is what my intention was, never really tested that part).

12 Sep 2006, 8:25 AM
#10
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Zen Developers - Surely this is easy?

So, i.s.o hacking includes\functions\functions_taxes.php, I think you would need to hack classes/currencies.php in this case.

12 Sep 2006, 1:03 PM
#11
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Zen Developers - Surely this is easy?

The practical use is that, certainly in the UK, it is usual for the public to want to know the final price, and the "trades" want to see the pre-tax price.

14 May 2007, 2:31 AM
#12
darkgamer avatar

darkgamer

New Zenner

Join Date:
May 2007
Posts:
14
Plugin Contributions:
0

Re: Zen Developers - Surely this is easy?

paulm:

Some time ago I wanted to create a tax free shopping module that uses the customer groups to allow customers (belonging to a "taxfree" group) to buy taxfree. I never really finished it but the basic idea does work, and I attached the files to this thread. Of course it is not exactly the same as what you asked for, but I think converting it to a taxfree button (i.s.o. a taxfree group) should not be difficult.

Paul, I have a client asking me for very much the same thing. He wants the store to show prices with tax for everyone except those put in the "reseller " group. I was surprised that I could not find such a module. Could you please post your files again?

What kind of issues did you come up against when trying to implement this module?

Thanks in advance!