Hit Reply and then look for the Go Advanced and you will see the Attached ...
Printable View
Hit Reply and then look for the Go Advanced and you will see the Attached ...
sorry, it won't upload my png file.
if you go to the shipping options page during checkout, do you see the UPS module showing? select a 5.99 kit, go to checkout, and you will see UPS, Store Pickup, 5.99 per kit as options. Store pickup and 5.99 should be the only options showing, eh?
Go change the code in the ups.php to include:
that will teach me always, always test both shipping estimator *and* checkout_shipping, regardless of being in a hurry ... :cool:Code:// bof: seperate item cost 1 category
global $total_count;
if (($chk_cart + $chk_cart_always_free_shipping) == $total_count) {
// skip shipping
return array();
} else {
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost * $shipping_num_boxes) + $extra_shipping_charge + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
}
}
Thanks for the update that this is working for you now ... :smile:
Good luck with your cart!
Linda,
I'm back. I wasn't sure if I should start a new post or continue this one. I've done quite a bit of searching in the forums for what I want to accomplish, and I've found a lot of promising info...just not sure how to apply it. Here's the summary:
I want to offer a flat rate shipping option, regardless of how much a customer spends, but I will need to exclude several products (I've already gathered the product IDs).
- I'm still Using USPS, UPS, Free Shipping (The Gift Card product thing, as well as some new items), Store Pickup, and soon Fed Ex
- I'm looking to simplify this by removing the $5.99 per item beer kit thing, they will just fall under the flat rate fee.
I'm assuming that it's as easy as making modifications to the flat rate module to "exclude" the items I need excluded. The Flat Rate option should not be available if someone buys an "excluded" item.
And all the other shipping modules will continue to show, just incase someone wants an expedited or special shipping option.
This is easy, eh?
Thanks,
Andrew
Customer buys 1 excluded item what is shipping?
Customer buys 2 excluded item what is shipping?
Customer buys 3 excluded item what is shipping?
Customer buys 1 anything *except* excluded item what is shipping?
Customer buys 2 anything *except* excluded item what is shipping?
Customer buys 3 anything *except* excluded item what is shipping?
Customer buys 1 exclude item and 1 NOT excluded item what is shipping?
Customer buys 1 exclude item and 2 NOT excluded item what is shipping?
Customer buys 2 exclude item and 1 NOT excluded item what is shipping?
Customer buys 2 exclude item and 2 NOT excluded item what is shipping?
Customer buys 1 exclude item and 3 NOT excluded item what is shipping?
Customer buys 3 exclude item and 2 NOT excluded item what is shipping?
See if this works for you ...
Edit the file:
/includes/modules/shipping/usps.php
and add the code in RED:
Then edit the code:Code:function quote($method = '')
{
global $order, $shipping_weight, $shipping_num_boxes, $currencies, $shipping;
// bof: Allow individual Products to use Flat disable USPS
// set allowed products_id 12, 13, 15
$chk_cart = 0;
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','13');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','15');
if ($chk_cart == $_SESSION['cart']->count_contents()) {
// allow flat rate only disable USPS
return;
}
// eof: Allow individual Products to use Flat disable USPS
//echo 'USPS function quote BEFORE IF $this->enabled $this->uspsQuote $this->enabled: ' . ($this->enabled ? ' ON' : ' OFF') . ' $shipping_weight: ' . $shipping_weight . '<br>';
$usps_shipping_quotes = '';
/includes/modules/shipping/flat.php
and add the code in RED:
Code:function quote($method = '') {
global $order;
// bof: Allow individual Products to use Flat
// set allowed products_id 12, 13, 15
$chk_cart = 0;
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','12');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','13');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','15');
if ($chk_cart == $_SESSION['cart']->count_contents()) {
// allow flat rate
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_FLAT_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_FLAT_TEXT_WAY,
'cost' => MODULE_SHIPPING_FLAT_COST)));
} else {
// skip flat rate
}
// eof: Allow individual Products to use Flat
if ($this->tax_class > 0) {
Just change the products_id 12, 13, 15 to the products_id values that you need and you can add extra products_id values ...