Zen Cart Logo
Forums / General Questions / Shipping Based on Zone Name

Shipping Based on Zone Name

Views: 719

Results 1 to 4 of 4
16 Feb 2011, 6:17 PM
#1
fooddudes avatar

fooddudes

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

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

16 Feb 2011, 6:41 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

16 Feb 2011, 10:39 PM
#3
igofresh avatar

igofresh

Zen Follower

Join Date:
Oct 2010
Posts:
149
Plugin Contributions:
0

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

17 Feb 2011, 4:34 PM
#4
fooddudes avatar

fooddudes

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Shipping Based on Zone Name

kobra:

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