Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    64
    Plugin Contributions
    0

    Default Using the URL to apply Zone definitions

    Is it possible to use the URL to load Zone definitions on product prices?

    Imagine on Admin > Locations > Zones Definitions I have:
    Zone 1 - Hungary - Tax 25%
    Zone 2 - Europe - Tax 16%
    Zone 3 - Tax-Free - Tax 0%

    Can I use something like:

    http://www.mysite.com/index.php?main_page=index&zID=1

    and it would show prices with the 25% tax included

    http://www.mysite.com/index.php?main_page=index&zID=2

    and it would show prices with the 16% tax included, etc.

    Thank you!

  2. #2
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    64
    Plugin Contributions
    0

    Default Re: Using the URL to apply Zone definitions

    Does anyone know if this is possible?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using the URL to apply Zone definitions

    If you are displaying prices with tax, the Prices will display with the customer's matching Zone when they login ...

    What are you trying to do that is different?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    64
    Plugin Contributions
    0

    Default Re: Using the URL to apply Zone definitions

    Thanks Ajeh for the reply.

    I want to show the zone definitions before they login.

    If I can have
    http://www.mysite.com/index.php?main_page=index&zID=1
    http://www.mysite.com/index.php?main_page=index&zID=2
    http://www.mysite.com/index.php?main_page=index&zID=3

    I can register:
    www.mysite.hu and redirect to http://www.mysite.com/index.php?main_page=index&zID=1
    www.mysite.eu and redirect to http://www.mysite.com/index.php?main_page=index&zID=2
    www.mysite.us and redirect to http://www.mysite.com/index.php?main_page=index&zID=3

    and use www.mysite.com to display a page with "Chose your country" and redirect to each website.

    That way I can use the same database for the different sites, using stock information. Otherwise I would have to create several sites with several databases and it looks very difficult to syncronyze stocks between different sites/databases.

    Any idea? Thanks again!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using the URL to apply Zone definitions

    You could try editing the function file functions_taxes.php and see if using this in each of the functions as needed works:
    Code:
    if ($_SESSION['customer_zone_id'] == 0 && $_GET['zID'] != 0) {
      // use paramater
      $zone_id = $_GET['zID'];
    }
    You would really need to test this out ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jul 2010
    Location
    Italy
    Posts
    64
    Plugin Contributions
    0

    Default Re: Using the URL to apply Zone definitions

    I will install a clean Zen Cart to try that. Thanks for the suggestion will report asap

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using the URL to apply Zone definitions

    Note: if you keep losing the zID after first click, then you will want to store that to something like:
    $_SESSION['zID']

    when it is found and then use that when either the $_SESSION['customer_zone_id'] is 0 or the $_SESSION['customer_id'] is 0 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Zones/Zone Definitions
    By rocket291054 in forum General Questions
    Replies: 6
    Last Post: 24 Jul 2010, 08:42 PM
  2. What's the difference between Zone Definitions and Zone Rate Shipping?
    By Sevenhelmets in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 30 Nov 2009, 05:25 PM
  3. What URL do I apply the SSL certificate too?
    By gaffettape in forum General Questions
    Replies: 3
    Last Post: 13 Nov 2009, 03:49 PM
  4. Setting up Zone Definitions
    By jabbah in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 22 Oct 2009, 07:40 AM
  5. Custom Zone Definitions, ISO Code, and the Zone Rate Module
    By coffeefan in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Jul 2009, 10:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR