Ajeh:
Can you try starting with this USPS shipping module, customized for you, and see if the Custom Days work better for you?
Ajeh,
This works, but the only thing is that after adding the modification below, the First-Class only shows "Varies by destinations." I also would like to see the days "7-12 days" as you customized. I'm sure that you have a solution to this...
Ajeh:
Edit the file:
/includes/modules/shipping/usps.php
and add the code in RED:
[B]// bof: check Product Qty in categories_id 25
$chk_cat = 0;
$chk_cats = $_SESSION['cart']->in_cart_check('master_categories_id','25');
// eof: check Product Qty in categories_id 25
[/B] for ($i=0; $i<$PackageSize; $i++) {
>
> ```
if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue;
[B]// bof: only show First Class/First-Class when entire cart is categories_id 25
if ($chk_cats != $_SESSION['cart']->count_contents() && preg_match('#First\-Class#i', $type)) {
// echo 'USPS skip $type: ' . $type . '<br>';
// skip First Class
} else {
// echo 'USPS DO NOT skip $type: ' . $type . '<br>';
[/B] $methods[] = array('id' => $type_rebuilt,
'title' => $title,
'cost' => $cost,
);
[B]}
// eof: only show First Class/First-Class when entire cart is categories_id 25
[/B]