Forums / General Questions / Show certain content for for a specific zone definition only

Show certain content for for a specific zone definition only

Views: 422

Results 1 to 2 of 2
26 Nov 2014, 8:10 PM
#1
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Show certain content for for a specific zone definition only

Hi!

Been tampering with this one for a while now, but I simply can't figure out the solution myself. I hope some kind person has a minute to spare for me :). I'm familiar with the file structure of zen cart and know tiny bits of php but... apparently not enough :).

My store is located in Sweden, and we get a lot of international orders. Some within the European Union, and some from countries outside the EU. I've obviously solved this by defining one zone for EU and another one for outside EU (to get the tax calculations right).

So for example, I'd like to show some info regarding import tax for customers outside EU only. My current "solution" would be something like this :

Attachment 14729

The link takes to you an EZ-page with info about import taxes.

I would much rather hide this line completely unless the order is actually gonna be shipped to my "outside EU" defined zone.

Or, even better, be able to show 1 specific line for the "outside of EU" zone, and another one for the "within EU" zone, and maybe a third one for my "Sweden" zone :).

I would truly appreciate some hints on how a code example for this would look like! There are several other places I want to do this as well, so it's an important matter to me. Once I've learned how to solve this one I can easily work it out myself on the other places though (at least that's what I believe) :)

Many thanks in advance!

Peter

28 Nov 2014, 1:38 AM
#2
bislewl avatar

bislewl

Totally Zenned

Join Date:
Dec 2011
Location:
Wisconsin, USA
Posts:
674
Plugin Contributions:
12

Re: Show certain content for for a specific zone definition only

You couldn't use one ez page for all, but you could use the $_SESSION['customer_zone_id'] to find out what their zone is.