Forums / All Other Contributions/Addons / SplitTaxLines mod support thread

SplitTaxLines mod support thread

Locked

Views: 20,799

Results 21 to 40 of 81
This thread is locked. New replies are disabled.
8 Jan 2008, 6:01 AM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

SplitTaxLines mod support thread

wolflupo:

error: An appropriate representation of the requested resource /admin/sqlpatch.php could not be found on this server.That's a block happening by your hosting company's mod_security rules which block many commonly "forbidden" words from being submitted on a web page. SQL commands can sometimes get caught with those filters if they're really tight.
Talk to your host to relax them, or try uploading the script using the Browse button instead of copy/paste.
Or use phpMyAdmin instead.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Jan 2008, 1:34 PM
#22
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

ljsoroka:

Hi Alan, where is the link that I can get this or should I just search the forum?
thanks for all your hard work :)

You should be able to find it in the downloads area. Go to https://www.zen-cart.com, click on the 'downloads' link at the top of the page and enter SplitTaxLines into the search box. If you click on SplitTaxLines in the Contribution search results, it will show you a list of all available versions of STL. The version you want (1.01) is near the bottom of the list, with a release date of December 18th, 2007

Let us know if it works for you!

Alan

21 Jan 2008, 6:37 PM
#23
jobe avatar

jobe

New Zenner

Join Date:
Aug 2006
Posts:
20
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

Good day all,

Just wondering if anyone has gotten splittax to work with tax exempt and what versions there are using?

Thank You all.

22 Jan 2008, 1:14 PM
#24
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

jObE:

Good day all,

Just wondering if anyone has gotten splittax to work with tax exempt and what versions there are using?

Thank You all.

Hi jObe,
if you read back near the start of this thread you will see a bit of discussion between myself (split tax lines author), numinix (tax exempt author) and pdprenty (nice guy trying to use both mods). The short answer is that STL and CTE play nicely in zencart 1.3.7 but not yet in 1.3.8. What version of zencart are you using?

Alan

22 Jan 2008, 7:06 PM
#25
jobe avatar

jobe

New Zenner

Join Date:
Aug 2006
Posts:
20
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

The online catalog as not gone up yet is as it is still in development.
We were going to use 1.3.8 as the splittax was showing to work with that version, however, we deal with alot of companies that are tax exempt so we will require that module as well.

I had noticed someone put an updated tax exempt mod up after this issue started so I was hoping someone might have tried it and was successful.

Long story short I guess is we'll use the 1.3.7 and see what happens after that.

Thank You very much for the clarifying the versions for me.

One last thing. Does splittaxline setup the taxes for canada or does that need to be configured first?

23 Jan 2008, 2:26 PM
#26
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

Hi jObE,

Here's a short summary of the conflict between STL and CTE in zc1.3.8:
Normally, when calculating taxes, there are two core tax functions used: zen_get_tax_rate and zen_get_tax_description. When STL is turned on, a third core tax function called zen_get_multiple_tax_rates is used instead of the first two.

The root of the conflict is that CTE makes changes to only the first two of these three core tax functions. The third one (zen_get_multiple_tax_rates) is new to zc1.3.8 and must have slipped under the radar when CTE was updated to support zc1.3.8. I'm hoping that numinix (of customer tax exempt fame) will soon make the necessary changes to CTE so that it plays nicely with STL and any other code that uses zen_get_multiple_tax_rates in the future.

It's a shame that you feel you can't use the latest version of zencart because of this issue. The hints above should give you a good idea where to start if you want to try to fix it yourself while we wait for the necessary changes to be made. It shouldn't be very difficult but I'm afraid I don't have time right now to dig around in numinix's code.

jObE:

One last thing. Does splittaxline setup the taxes for canada or does that need to be configured first?

You'll have to set your taxes up normally, SplitTaxLines only splits them out into separate lines.

Here is a good guide:
http://www.zen-cart.com/forum/showthread.php?t=35032

It looks complicated but it's not really that bad once you get into it. Note that the section labelled 'PROBLEMS' is no longer a problem if you are using the SplitTaxLines mod. That's why I created it in the first place!

Good luck, keep us posted on your progress!
Alan

23 Jan 2008, 7:06 PM
#27
jobe avatar

jobe

New Zenner

Join Date:
Aug 2006
Posts:
20
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

Thank you for the reply,

I have seen the tutorial post for Canadian taxes and was setting up that way.
the splittalines install.txt file does not have that much info, so I just wanted to check that incase it attempts at creating tax rates that are already there.

Re-coding his app would be nice but currently we are busy with coding a frontend system to interact with the ZEN database ( process sales, add customers etc ).

I might attempt an install on a dev setup as his website as a version of tax exempt that says its 1.3.8. ( version 1.11 )
http://www.numinix.com/forum/viewtopic.php?t=15

I think if I get time tonight I'm going to get it going and find if there are any errors.

24 Jan 2008, 1:16 AM
#28
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: SplitTaxLines mod support thread

Hi guys, when I have time I will take a look. But more and more jobs keep piling up...

24 Jan 2008, 1:30 PM
#29
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

numinix,
Thanks for stopping by - we all look forward to seeing an update to your Customer Tax Exempt mod in the near future.

Alan

27 Jan 2008, 3:55 PM
#30
zapisto avatar

zapisto

Zen Follower

Join Date:
Aug 2005
Posts:
163
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

will be great , because we are planning move to 1.3.8a and this is a show stopper rigth now.

27 Jan 2008, 4:51 PM
#31
vhjdb avatar

vhjdb

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

We can also use this great module with 1.3.8a and Alan's great module :)

27 Jan 2008, 6:02 PM
#32
zapisto avatar

zapisto

Zen Follower

Join Date:
Aug 2005
Posts:
163
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

vhjdb:

We can also use this great module with 1.3.8a and Alan's great module :)

do you made STL and CTE in zc1.3.8a work together ?

27 Jan 2008, 8:10 PM
#33
vhjdb avatar

vhjdb

New Zenner

Join Date:
Dec 2007
Posts:
19
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

I am using STL in 1.3.7.1 and it works fine. I am in the process of upgrading it to 1.3.8a. STL is must for my site, I could use CTE if it is compatible with STL in 1.3.8a.

2 Feb 2008, 5:34 PM
#34
imak avatar

imak

New Zenner

Join Date:
Feb 2007
Posts:
24
Plugin Contributions:
0

Re: SplitTaxLines mod support thread

Still with ZC 1.3.7.
Is the STL version 1.1 working with ZC 1.3.7 or only with 1.3.7.1 ?

5 Feb 2008, 2:08 PM
#35
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

imak,

I haven't tested this mod with 1.3.7 but I would expect it to work as I don't think that any of the differences between 1.3.7 and 1.3.7.1 will affect it.

Just be certain that you are using the right version of split tax lines. Version 1.1 is for the 1.3.8 series of zen-cart. For zen-cart 1.3.7 the one that you need is STL v1.01

Let us know if you have success with it!
Alan

7 Feb 2008, 3:45 AM
#36
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: SplitTaxLines mod support thread

Alan, you could use PRODUCT_VERSION_MAJOR and PRODUCT_VERSION_MINOR to distinguish 1.3.7 from 1.3.8 and have one version for all versions of Zen Cart.

7 Feb 2008, 2:16 PM
#37
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

numinix:

Alan, you could use PRODUCT_VERSION_MAJOR and PRODUCT_VERSION_MINOR to distinguish 1.3.7 from 1.3.8 and have one version for all versions of Zen Cart.

Hi numinix,
I looked into this a bit but unfortunately, the 1.3.7-based STL has a different file structure compared to the 1.3.8-based STL due to core changes in the tax calculations between the two zen-cart versions. I felt (and still feel) that the safest way was to have two separate versions. The unfortunate side effect is that there is a greater risk of confusion to the user.

If you have come up with a way to manage this type of thing using the internal version numbers please let me know and I will re-examine my approach. I would like to simplify but I just can't see a way.

By the way - have you had a chance to extend your customer tax exempt functionality into the new core tax functions in 1.3.8? STL and CTE will play nicely once you have completed this, and we're all looking forward to that day :-)

Alan

8 Feb 2008, 2:13 AM
#38
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: SplitTaxLines mod support thread

alanhigg:

Hi numinix,
I looked into this a bit but unfortunately, the 1.3.7-based STL has a different file structure compared to the 1.3.8-based STL due to core changes in the tax calculations between the two zen-cart versions. I felt (and still feel) that the safest way was to have two separate versions. The unfortunate side effect is that there is a greater risk of confusion to the user.

If you have come up with a way to manage this type of thing using the internal version numbers please let me know and I will re-examine my approach. I would like to simplify but I just can't see a way.

By the way - have you had a chance to extend your customer tax exempt functionality into the new core tax functions in 1.3.8? STL and CTE will play nicely once you have completed this, and we're all looking forward to that day :-)

Alan

No I haven't had time. Very busy building sites and writing new mods for clients. If someone would like to sponsor an upgrade, I can make it a priority. I wrote this mod when Numinix sold computer hardware and as we no longer need to set some customers as exempt, I haven't had to use the mod myself.

Alan, specifically, which files have moved and to what folders?

8 Feb 2008, 1:26 PM
#39
alanhigg avatar

alanhigg

New Zenner

Join Date:
Nov 2007
Posts:
31
Plugin Contributions:
1

Re: SplitTaxLines mod support thread

numinix:

Alan, specifically, which files have moved and to what folders?

Hi numinix,

Nothing has moved in zc, it's mainly just the STL installation process that differs by one file:

stl1.01 for zc-1.3.7 - ships with extra tax functions defined in "includes>functions>extra_functions>functions_splittaxlines.php"
stl1.1 for zc-1.3.8 - does not need this file as the core zc tax functions have been upgraded to provide the functionality needed.

I could ask the user to copy (or not ) this extra file depending on the zc version being used but I feel this really increases the likelihood that someone may leave it out when it is needed and bring his cart crashing to the ground, so I have avoided that until now.

I will be sending you a pm shortly with a few thoughts that are more about CTE than STL and therefore don't really need to be on this support thread.

Alan

8 Feb 2008, 3:06 PM
#40
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: SplitTaxLines mod support thread

alanhigg:

Hi numinix,

Nothing has moved in zc, it's mainly just the STL installation process that differs by one file:

stl1.01 for zc-1.3.7 - ships with extra tax functions defined in "includes>functions>extra_functions>functions_splittaxlines.php"
stl1.1 for zc-1.3.8 - does not need this file as the core zc tax functions have been upgraded to provide the functionality needed.

I could ask the user to copy (or not ) this extra file depending on the zc version being used but I feel this really increases the likelihood that someone may leave it out when it is needed and bring his cart crashing to the ground, so I have avoided that until now.

I will be sending you a pm shortly with a few thoughts that are more about CTE than STL and therefore don't really need to be on this support thread.

Alan

That folder still exists in 1.3.8 so at the very beginning of your custom function file, you can add

 
if (PROJECT_VERSION_MAJOR != '1' && substr(PROJECT_VERSION_MINOR, 0, 3) != '3.8') {

I've read your PM and have responded. I will set aside a little time this weekend.