Forums / Built-in Shipping and Payment Modules / Canada free local ship else flat rate

Canada free local ship else flat rate

Views: 6,478

Results 61 to 67 of 67
3 May 2014, 3:34 PM
#61
plc613 avatar

plc613

Zen Follower

Join Date:
Apr 2014
Location:
Canada
Posts:
249
Plugin Contributions:
0

Canada free local ship else flat rate

I certainly think it would be beneficial to the community. I would do it myself but the point is rather moot since I don't do code. Perhaps yourself or someone else could pick this up and make it official...

6 May 2014, 12:17 PM
#62
plc613 avatar

plc613

Zen Follower

Join Date:
Apr 2014
Location:
Canada
Posts:
249
Plugin Contributions:
0

Re: Canada free local ship else flat rate

Ajeh:

Always a possibility ...

If I were to make this an add-on, I would create a clone of Free Shipping Options freeoptions and add a new key to it for something such as clone it to be:
freeoptionscity.php

and add a new key to the module for:
MODULE_SHIPPING_FREEOPTIONSCITY_CITY

but then customize it to be able to have 1 to many cities, as some might want more than one city to have the Free Shipping ...

Well, I tried to wrap my brain around making the add-on and it's far from straightforward to me. I know you've contributed allot to this already but could you elaborate a bit more?

-The term 'key' is unclear to me. Are you referring to an SQL cell or merely a variable in the new freeoptionscity.php file?
-How would one end up with the options in the admin once enabled? Does all that have to be coded or will it be picked up from the file?

6 May 2014, 12:40 PM
#63
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Canada free local ship else flat rate

I will try to look at this later and see what can be done ...

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!]
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!

2 Jan 2015, 1:56 AM
#64
plc613 avatar

plc613

Zen Follower

Join Date:
Apr 2014
Location:
Canada
Posts:
249
Plugin Contributions:
0

Re: Canada free local ship else flat rate

Ajeh:

I will try to look at this later and see what can be done ...

Hi Ajeh. This has worked flawlessly for quite some time now but for whatever reason the most recent order was presented with both flat rate($5.00) and free shipping despite the persons address not being in the free shipping zone.

Naturally I proceeded to checkout with my test account from non-local city and was also presented with the same options.

Any ideas?

The only thing that has changed is that I moved servers a while back. Everything seems fine however.

2 Jan 2015, 2:19 AM
#65
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Canada free local ship else flat rate

Could you Zip the file with the changed code and add it as an attachment to your reply when you answer the following questions? (click Go Advanced to add attachments)

What version Zen Cart are you using on the new server?
What version php do you have on the new server?
What other plugins are on this site? How is your site different from a brand new fresh uncustomized install?

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!]
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!

2 Jan 2015, 3:25 AM
#66
plc613 avatar

plc613

Zen Follower

Join Date:
Apr 2014
Location:
Canada
Posts:
249
Plugin Contributions:
0

Re: Canada free local ship else flat rate

Nevermind! Your response prompted me to check whether or not your customized code was in the freeoptions.php file as it should be. Turns out it was not. When I noticed that I realized what happened...I made huge efforts to ensure I was 100% inline with the ZC standards so that updates were as easy as possible. I obviously forgot this bit of code when I upgraded to 1.5.3 and assumed nothing was customized. Hopefully I'll remember for 1.5.4!

2 Jan 2015, 2:06 PM
#67
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Canada free local ship else flat rate

Thanks for the update on what happened on your shipping to get it working ... :smile:

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!]
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!