Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    442
    Plugin Contributions
    1

    Default Custom minimum values based on country

    I would like to have a set of minimum values for USA and a different set of minimum values of all other countries. I would like to set USA postal code minimum value to 5 and state to 2 but doing this does not work well for International customers as those values are not the same in all countries.

    I have used the work around discussed in other posts and have these values currently set to 0 which works pretty good but I do get addresses from within the USA occasionally that are incomplete which creates delays in processing an order.

    Can this be done fairly easily without too much modification to the code?

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,541
    Plugin Contributions
    19

    Default Re: Custom minimum values based on country

    If I understood the question correctly, you just want the minimum values for US, and all other countries can continue using the 0 that you have set in admin. If so, you can try uploading the attached files and see if it works for you. No files affected.
    The observer sets new minimums for US only so it's the only file you'd need to edit.
    Attached Files Attached Files

  3. #3
    Join Date
    May 2008
    Posts
    442
    Plugin Contributions
    1

    Default Re: Custom minimum values based on country

    Quote Originally Posted by balihr View Post
    If I understood the question correctly, you just want the minimum values for US, and all other countries can continue using the 0 that you have set in admin. If so, you can try uploading the attached files and see if it works for you. No files affected.
    The observer sets new minimums for US only so it's the only file you'd need to edit.
    That worked! Thank you!

 

 

Similar Threads

  1. v156 ADMIN_NAME_MINIMUM_LENGTH missing from Admin Minimum Values
    By torvista in forum Bug Reports
    Replies: 4
    Last Post: 16 Sep 2019, 04:30 PM
  2. v151 Send low stock email based on value in custom minimum field for individual products
    By jpietrowiak in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Aug 2015, 07:12 AM
  3. Minimum Order by Country?
    By glamourdolleyes in forum Addon Payment Modules
    Replies: 0
    Last Post: 22 Mar 2011, 11:14 PM
  4. minimum values doesnt change
    By procella in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Aug 2008, 04:13 PM
  5. Linking attribute values to to product values (for custom gift baskets)
    By peaceviddie in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 13 Jul 2008, 09:22 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