ZC v1.53
Is it possible to set a minimum order total for Local Delivery? Local Delivery would only show when the minimum cart total AND postal code are met.
ZC v1.53
Is it possible to set a minimum order total for Local Delivery? Local Delivery would only show when the minimum cart total AND postal code are met.
minimum value
Assuming your minimum order value is $100
In the file includes/modules/shipping/localdelivery.php
insert
right after this linePHP Code:// bof: show local delivery when cart total is $100 or more
if (!IS_ADMIN_FLAG) {
if ($_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() > 100) {
$this->enabled = true;
}
}
// eof: show local delivery when cart total is $100 or more
Put some product in the cart that is not specifically marked as local delivery only and play around with the total cart value.PHP Code:$this->enabled = ((MODULE_SHIPPING_LOCALDELIVERY_STATUS == 'True') ? true : false);
See how this works for you
Cheers / Frank
I think this is the mod I am looking for. To make sure that is what I need is.
I need all my items/products to be sold only in my local city. It has 6 to 8 different zip codes.
So the only ones they can purchase is that is in my city or local area? No one outside of that zip codes, Right?
Principally correct.
But, if your city is the only area you are shipping to (eg by courier), then you would just need to set up a single zone which specifies your local city as the only area. In that case you would not need this mod but you just use the stock ZC shipping method 'Zone Rates'. For how to set up Zone Rates please refer to the FAQ's or the appropriate forum.
Using Zone Rates would save you flagging every single product as *local only*.
Hope this helps.
Frank
Hi frank 18...!~~~
i am using PDP. it is working good. but i need to use Scenario 4...
Do i need to modify some files to use Scenario 4... ?
if you have a soloution please let me know...
thank you and have a good one...
The scenarios (shown under the tab "Functionality" in the help file of the instructions) simply depict a possible sequence of events, course of events, series of developments etc.
PDP allows or prohibits the use of "Local Delivery" depending on the criteria entered by a customer -- so I have to repeat: you don't have to make any changes to the code if you installed PDP correctly.