Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    33
    Plugin Contributions
    0

    Default Shipping Based on Zone Name

    Shipping options on our website are based upon date and time.

    We have two delivery options "ASAP" and "Future Date & Time".

    The ASAP option only allows one shipping module. I tried cloning the shipping module and using shipping zones, but i get errors because of date and time restrictions.

    $asapInputName='ship-asap-asap';

    I need an if statement that shows asap when shipping zone Minnesota and shows asapclone when shipping zone South Dakota. I don't know how to create the if statement but I think it would look something like the following.

    if (shipping zone == 'Minnesota') {
    $asapInputName='ship-asap-asap';
    }
    elseif (shipping zone == 'South Dakota') {
    $asapInputName='ship-asapclone-asapclone';
    }

    Any help is greatly appreciated. Thank you

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Shipping Based on Zone Name

    You should be able to create these zones

    Then inb the shipping module configuration set it for the correct zone

    Then the user from that zone will only see methods assigned to their zone
    Zen-Venom Get Bitten

  3. #3

    Default Re: Shipping Based on Zone Name

    I did a grocery store that offers delivery date and times using the comments box at checkout modded to a drop down for delivery times and the order delivery date mod to allow customers to select a date. No core files modified.

    http://www.zen-cart.com/forum/showthread.php?t=169185

    Also use zip ship mod to specify delivery table rate based on zipcode
    History does not repeat itself but it [FONT="Century Gothic"][/FONT]does rhyme - Mark Twain

  4. #4
    Join Date
    Nov 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: Shipping Based on Zone Name

    Quote Originally Posted by kobra View Post
    You should be able to create these zones

    Then inb the shipping module configuration set it for the correct zone

    Then the user from that zone will only see methods assigned to their zone
    kobra,

    I duplicated my shipping module and applied the appropriate shipping zones but still receive an error when the checkout shipping page loads. The reason for the error is that the asap field is null. I had someone develop a date time drop down for me a year ago which requires the asap option to show or disappear based upon the current date and time.

    The asapInputName can only have one shipping module assigned to it. I need to create an if statement that allows me to assign two different asapInputNames based upon the shipping zone or tax zone, either one would work. The reason for this is because we now have multiple locations with different delivery rates.

    Below is how the asap option is assigned to a shipping module.

    $asapInputName='ship-asap-asap';

    asap is the title of the shipping module file.

    Hopefully this makes sense it is kind of confusing.

    Thanks

 

 

Similar Threads

  1. v139h Zone shipping - Can I disable purchase of certain items based on a shipping zone?
    By gsh68 in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 7 Aug 2017, 07:05 PM
  2. Zone based shipping + multiple UK options
    By GTrotter in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 14 Nov 2007, 10:21 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