-
Minimum shipping fee
The store I'm working on uses the UPS and USPS shipping modules. The problem is that we need to set it up with a minimum shipping fee of $7.95. For example, if the quote for USPS Priority Mail comes back as $4.95, a $3.00 charge will automatically be added.
I was hoping that there would be an add-on that would accomplish this, but I appear to be out of luck there. I searched the forum for a solution, but struck out here as well.
Does anyone have a suggestion on how this could be accomplished?
The store uses ZC version 1.3.8.
-
Re: Minimum shipping fee
You can add a handling fee for 3.50 or ... capture the costs and adjust as needed ...
-
Re: Minimum shipping fee
Adding a handling fee would be applied to all orders, including those with shipping that's already over $7.95. That's not what we want. I'm not sure what you mean by capturing the cost.
-
Re: Minimum shipping fee
For example, in the UPS shipping module you will see:
Code:
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
Check the value of $cost and when too little, add more ... :smile:
-
Re: Minimum shipping fee
I already figured that there would have to be some kind of "if" statement in the code saying that if the shipping was less than $7.95 then make it $7.95, but I don't know how to do that. I am only just beginning to figure out how PHP works.
-
Re: Minimum shipping fee
Customize the code from:
Code:
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
to now force the amount ...
Code:
if ($cost < 7.95) {
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => (7.95 + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
} else {
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
}
-
Re: Minimum shipping fee
Thanks. That did the trick, although, after getting the client on the phone, they decided to go a different route with the shipping, so I didn't end up needing this after all. Isn't that the way it is sometimes? :P But thanks for the help anyway.
-
Re: Minimum shipping fee
Thanks for the update that this would have worked for you in another life ... alas, that is the way things go with clients ... :lamo:
-
Re: Minimum shipping fee
Hi Ajeh,
I want to know how this can be implemented in Zones shipping module, please provide the code modification.
I also want to know is it possible that a handling fee ads if product from particular category or particular products adds up to the cart.
For example one of my cart deal in pets and it have pets accessories as well as live pets. Pet accessories can be shipped with standard shipping charges but live pets need special packing so will cost extra.
Any Idea how can be implemented.
Thanking you in advance.
~ Time
-
Re: Minimum shipping fee
Basically you are altering similar code for zones.php ...
Code:
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => $shipping_method,
'cost' => $shipping_cost)));