Is it possible to change shipping price automatically day and night different? For example an additional charge after 10:00 o'clock at night ...
Is it possible to change shipping price automatically day and night different? For example an additional charge after 10:00 o'clock at night ...
You could create COPIES (clones) of your shipping modules, and configure the CLONE modules to indicate that they apply to NIGHT deliveries (you will edit the LANGUAGE PHP files for the cloned modules to change the title and descriptions of the shipping option).
Then you insert the RATES for night delivery.
When the customer checks out they will be offered BOTH options - Day delivery, and Night delivery. Whichever they choose will add the required rate to their order total.
20 years a Zencart User
What shipping module(s) are you using and what is the extra charge that you want to add?
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: v1.5.5]
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!
Per item ore flat shipping modules. Ore any shipping module which works. I just want, after 10:00am add 1.5€ to normal shipping price. Possible automatically.
To me it seems Cenkki wants to give shoppers the opportunity to choose between TWO different delivery windows:
1. Normal Hours
2. After 10pm
So you would want these two options available to the shopper at checkout as radio button selections.
If the delivery methodology and procedure is the SAME for either option (the only difference being TIME), then I think the easiest solution is to CLONE the module being used, and then to price one module differently from the other. The TEXT DESCRIPTIONS are easily edited in the modules' language files.
If Cenkki chooses to use FLAT RATE shipping, then use TWO flat_rate modules.
20 years a Zencart User
You could add something like the code in RED, for example in Per Item item:
/includes/modules/shipping/item.php
Code:// adjusted count for free shipping $item_total_count = $total_count - $_SESSION['cart']->free_shipping_items(); // bof: charge extra for after 10pm $hour = 22; if (date('H') >= $hour) { $prehour = true; } else { $prehour = false; } if ($prehour) { $extra_charge = 5.00; } else { $extra_charge = 0.00; } //echo 'Is it after ' . $hour . '?' . ($prehour ? ' YES!' : ' NO!') . ' Extra Charge: ' . $extra_charge . '<br>'; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_ITEM_TEXT_WAY, 'cost' => (MODULE_SHIPPING_ITEM_COST * $item_total_count) + MODULE_SHIPPING_ITEM_HANDLING + $extra_charge))); // eof: charge extra for after 10pm if ($this->tax_class > 0) {
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: v1.5.5]
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!
Nifty, eh?
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: v1.5.5]
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!
thanks :)
is it between 22:00 - 02:00. or? must turn back day time normally shipping price. normal shipping price 3.50€. night (22:00-02:00) 5.00€
Bookmarks