Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2006
    Posts
    7
    Plugin Contributions
    0

    Default Customize Product-Line Based on Customer's Country

    How do you customize product lines by country? For example, how do I hide products for customers in the US that are visible to customers in Canada?

  2. #2
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: Customize Product-Line Based on Customer's Country

    How good are you at programming?

    This is possible, but not a simple tweak.

  3. #3
    Join Date
    Feb 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Customize Product-Line Based on Customer's Country

    Yeah, I thought I might have to go in and do some coding. I was just hoping that there was a quick and easy solution that I hadn't noticed yet.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Customize Product-Line Based on Customer's Country

    You'll have to start by sorting out who's in the US and who's in Canada, and for that the best technique is IP GeoLocation

    There is a mySQL database of IP addresses here

    Then you'll need some PHP to read that data, and say to your zencart shop...

    "If IP address (address range) =XXX.XXX.XXX then products in category ID's 123 and 234 are available, else..."

    The challenge will be writing php to render some products inactive for some IP addresses and not for others.
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Customize Product-Line Based on Customer's Country

    Another technique could be the following, and while it's a bit "clunky", it would work.

    Install 2 sets of zencart in separate directories on your server:

    www.mywebsite.com/usa (this houses only the US products)
    www.mywebsite.com/canada (this houses only the Canada products)

    then in the root directory, use IP GeoLocation to identify the visitor's IP address and then auto redirects to either the US shop or the Canada shop.
    20 years a Zencart User

  6. #6
    Join Date
    Feb 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Customize Product-Line Based on Customer's Country

    My client would like the customer to select their country upon entering the site, and then they will see products and prices that are specific to that chosen country, so there doesn't need to be any automation. I was just hoping to avoid having two different stores, which just makes all the edits later on twice as much work.

 

 

Similar Threads

  1. Handling charges based on product and destination country in USPS
    By Arunachala in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 16 Oct 2011, 07:33 PM
  2. Personalised Greeting based on Customer's Registered Country
    By robsnowden in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 29 May 2009, 05:29 PM
  3. Customer-Based Product Listing
    By mtriviso in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 29 Jan 2008, 05:38 PM
  4. Customize order receipt based on product purchased
    By murphysr in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 Aug 2007, 07:07 AM
  5. Hide products based on country
    By devdude51 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Jan 2007, 12:52 AM

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