Ajeh, that is perfect - thank you so much for your help.
Dave
Ajeh, that is perfect - thank you so much for your help.
Dave
Thanks for the update that this is now working for you ...![]()
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Hi my name is John and i am useing Zencart for a while now but dont know anyting about PHP or any other web language.
My Problem is when i setup Zencart first i was able to add a weight to a product for chargeing then i tried to setup zones and since that my charge by weight will not work.
Can you please tell me how to make the charge by weight work again.?
Thanks.......John
What is the weight that you are using?
What are your settings in Configuration ... Shipping/Packaging ...
What are your settings on your Zone Rate zones shipping module?
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Hi, I am new to ZenCart, having inherited this project in it's present state - although I have several years of web-design experience and can figure out most coding eventually, PHP is not my forte (I appreciate that one of the contributors to this forum acknowledged coding is about 90-some% cut and paste). Anywho...we are currently using v1.3.9h. I spent all day yesterday reading all 46 pages of this thread, I now have the gist of what needs to happen however, I am not finding the solution to our particular issue.
Product "87" MUST ship UPS 2nd Day Air or can be picked up in store.
One of two solutions would be ideal:
#1: When Product "87" is in the shopping cart (regardless of what else might be in there) disable Per Unit, 3 Day Select & Ground shipping methods (leaving only 2nd Day Air and Store Pickup enabled). *International orders only ship Per Unit - so Product "87" must be disabled for all International Zones.
OR
#2: If shopping cart contains products in addtion to Product "87", shipment is automatically split shipped and alternate shipping methods are enabled for these items. If this is a huge coding issue, we're okay with option #1.
Shipping Modules Insatalled:
FREE SHIPPING! freeshipper
Per Unit perweightunit
Store Pickup storepickup
United Parcel Service ups
If this scenario has already been addressed in this thread, I must have missed it. Just send me the link.
Thanks in advance for your assistance.![]()
Painted Hills:
You should take a look at Conor's Ceons Advance Shipping module. Conor now has support for zencart 1.5 and has also added FedEx shipping rates. It's affordable (like $70 US) and incredibly flexible.
The only Con is that is doesn't support Google Checkout (unless he's added that since I've last looked)!
To turn off the Per Unit perweightunit when products_id is in the cart, customize the code in:
/includes/modules/shipping/perweightunit.php
with the code:
You can customize UPS with this code in RED:Code:// disable only when entire cart is free shipping if (zen_get_shipping_enabled($this->code)) { $this->enabled = ((MODULE_SHIPPING_PERWEIGHTUNIT_STATUS == 'True') ? true : false); } // bof: turn off if products_id 87 is in the cart if (!IS_ADMIN_FLAG) { $chk_product = 0; $chk_product += $_SESSION['cart']->in_cart_check('products_id','87'); if ($chk_product > 0) { $this->enabled = false; } } // eof: turn off if products_id 87 is in the cart
to replace the code:Code:$cost = preg_replace('/[^0-9.]/', '', $cost); // bof: turn off if products_id 87 is in the cart echo 'UPS TYPE: ' . $type . ' Title: ' . $this->types[$type] . '<br>'; $chk_product = 0; $chk_product += $_SESSION['cart']->in_cart_check('products_id','87'); if ($chk_product > 0) { if ($type == '2DA') { $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) ); } else { // skip shipping } } else { $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) ); } // eof: turn off if products_id 87 is in the cart } $this->quotes['methods'] = $methods;
NOTE: the echo line for:Code:$methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) );
can be commented out with:Code:echo 'UPS TYPE: ' . $type . ' Title: ' . $this->types[$type] . '<br>';
after you are done testing and sure of the $type that you want to use in this code ...Code:// echo 'UPS TYPE: ' . $type . ' Title: ' . $this->types[$type] . '<br>';
Last edited by Ajeh; 30 May 2012 at 08:01 PM. Reason: fix shipping method type to 2DA
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Thank you ever so much for your quick reply, Linda! The code is perfect and all seems well with one exception, how do I identify the $type? Rigth now Store Pick-up is the only shipping method showing.
Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou
"fix shipping method type to 2DA"
Oh yeah!!! This is me doing my Happy Dance!
Thank you, oh great goddess of PHP!!!![]()
Christine
"I believe the most important single thing, beyond discipline and creativity is daring to dare." ~Maya Angelou
You should see echoed on the screen something like:
Look for the $type next to the words:UPS TYPE: 1DM Title: Next Day Air Early AM
UPS TYPE: 1DA Title: Next Day Air
UPS TYPE: 1DP Title: Next Day Air Saver
UPS TYPE: 2DA Title: 2nd Day Air
UPS TYPE: 3DS Title: 3 Day Select
UPS TYPE: GND Title: Ground
UPS TYPE:
such as what I have highlighted in RED ...
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.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Bookmarks