Do the subdirectories contain Products or subdirectories?
Do the subdirectories contain Products or subdirectories?
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!
products...
IF the Categories that actually hold the Products use those Categories as their master_categories_id then you could customize the
/includes/modules/shipping/usps.php
with something like:
where you can use the code:Code:$cost = preg_replace('/[^0-9.]/', '', $cost); // bof: do not show MEDIA MAIL for master_categories_id 10, 12 and 22 $chk_nonmedia_cat = 0; $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '10'); $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '12'); $chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '22'); if ($type == 'MEDIA' && $chk_nonmedia_cat > 0) { $skip_it = true; } else { $skip_it = false; } if (!$skip_it) { $methods[] = array('id' => $type, 'title' => $title, 'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) ); } // eof: do not show MEDIA MAIL for master_categories_id 10, 12 and 22 } $this->quotes['methods'] = $methods;
for each of the Categories with the NON-Media Mail Products ...Code:$chk_nonmedia_cat += $_SESSION['cart']->in_cart_check('master_categories_id', '10');
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!
Hi Ajeh! Sorry it took me forever to get back to you, got caught up in a bunch of stuff and just now got a chance to try this out...I do appreciate your help!
When I try add the code to the usps.php it is making my shipping estimator disappear completely, no matter what I add to the cart, media mail items or not. Is there a specific place I need to add the code? What do you think I'm doing wrong? Thanks again!
Look in your /cache and see what the debug logs read ...
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!
hmmm...really don't really know where to find that?
If you look with FTP at your server, you will see the main directory, you will see:
/includes
/images
your should also see:
/cache
that should be set to 777 and your should be able to trip your error, then refresh your FTP and you will see the debug logs if any are generated ... and if you read the debug log(s) that should give you a clue on the problem ...
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!
I'm still not sure how to "trip your error, then refresh your FTP " Where will I find this error log?
I do get this error when looking at my shipping modules within Zen cart if that helps any?
syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/######/public_html/includes/modules/shipping/usps.php
I've been trying different things I still can't figure out how to get the error logs...please help!
If you are getting errors, look in the directory:
/cache
and you will see the files by date that end in .log ...
If you view the files you will see the error ...
Do you have the USPS module working or are you getting errors right now?
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!
Bookmarks