Forums / General Questions / Time-based shipping...

Time-based shipping...

Locked

Started by alex_clarke on 21 Oct 2006, 10:36 AM · Views: 849

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Oct 2006, 10:36 AM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Time-based shipping...

Is it possible to offer a flat rate shipping option but limit it to orders placed before 2:15pm (or any other time)?

I've had a quick search in the downloads section and the forum, but found nothing yet.

My Contributions: Zen Lightbox | Best Sellers Reloaded

21 Oct 2006, 2:02 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Time-based shipping...

As with any other conditional display with the Shipping Modules ... controlling the $this->enabled is the key ...

If $this->enabled in the Shipping Module does not evaluate as true ... then the Shipping Module does not display ...

This is best done via a function so that you can have a function for the Admin that always evaluates as true for the Modules ... Shipping ... so you can install, remove, configure etc. the Shipping Modules ...

Then, a separate function for the Catalog that evaluates your condition ... in this case, the time ...

Using the Developer's Tool Kit, do a search on:
function zen_get_shipping_enabled

In both the Catalog/Admin ... look to see how these functions are setup as a guide to things that can be done to show/hide the Shipping Module even when the Shipping Module is installed in order to hide or disable it ...

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!