New Zenner
- Join Date:
- Feb 2013
- Posts:
- 41
- Plugin Contributions:
- 0
Views: 6,653
New Zenner
Oba-san
Go into the DETAILS for the US FREE SHIPPING and do a screen shot of the first page ...
New Zenner
Ajeh:
While I am looking at this ... add this to your stylesheet.css
.hiddenField {
display: none;
}
.visibleField {
display: inline;
}
>
> Also if you look at your Zone Definition for zone_id 4 ... can you do a screen shoot of the DETAILS on the first page?
Put this in the following?
includes/templates/MY_TEMPLATE/stylesheet.css?
And at what point in that file?
Oba-san
That is one of your stylesheets for your site and you are missing those two so that when in the Shipping Estimator you see the blank input for the State when you should not and it will do other goober things without them on creating accounts etc.
New Zenner
New Zenner
Ajeh:
That is one of your stylesheets for your site and you are missing those two so that when in the Shipping Estimator you see the blank input for the State when you should not and it will do other goober things without them on creating accounts etc.
Do I need to make the additions to the following file? Just not sure if that is the only stylesheet.css and I didn't want to mess anything up. Also, does it matter where I place the additional text into the stylesheet file, or can it just be placed at the bottom or top?
Oba-san
In theory, you have stylesheets in:
/includes/templates/your_templates_dir/css
there is probably one called:
stylesheet.css
just add those additional classes to the bottom of it ...
New Zenner
Ajeh:
In theory, you have stylesheets in:
/includes/templates/your_templates_dir/cssthere is probably one called:
stylesheet.cssjust add those additional classes to the bottom of it ...
In the following directory
/includes/templates/your_templates_dir/css
There are 3 stylesheets. They are
print_stylesheet.css
stylesheet_css_buttons.css
stylesheet_new.css
There is not a stylesheet.css
Oba-san
Add it to the bottom of stylesheet_new.css
New Zenner
Ajeh:
Add it to the bottom of stylesheet_new.css
Done!!!
Oba-san
Back to the shipping ...
So far we have gone in circles on what you really want for your shipping ...
Now it sounds like you want both Free Shipping and USPS quotes for the customer to upgrade their shipping to ...
So how do you want this to work?
Scenario 1:
I have in the Shopping Cart a 1lb Product NOT marked as ALWAYS FREE SHIPPING ... so I should see USPS for 1lb quotes for US and lb quotes Rest of the World ... correct?
Scenario 2:
I have in the Shopping Cart a 1lb Product ALSO marked as ALWAYS FREE SHIPPING ...
For the Rest of the World, there is a USPS 1lb quotes ... correct?
For the US, I should see Free Shipping ...
What should the USPS quote be quoting for the US, 1lbs or Nothing?
Scenario 3:
I have in the Shopping Cart a 1lb Product ALSO marked as ALWAYS FREE SHIPPING ... And, a 2lb Product NOT marked as ALWAYS FREE SHIPPING ...
For the Rest of the World, there is a USPS 3lb quotes ... correct?
What should the USPS quote be quoting for the US, 2lbs or 3lbs?
New Zenner
Ajeh:
Back to the shipping ...
So far we have gone in circles on what you really want for your shipping ...
Now it sounds like you want both Free Shipping and USPS quotes for the customer to upgrade their shipping to ...
So how do you want this to work?
I've not changed my mind since post #8. Like you said we just got off on a "tangent" and we're not understanding each other.
In regards to the other usps quotes showing along side the free shipping....as I said that is of little importance, and don't really care if that shows or not. I just thought that they would show because when I first started playing with this it did show that way on something. Like I said, this is of VERY LITTLE IMPORTANCE if it's not an easy fix. Most people would never be concerned about upgrading, and if someone wanted too they could contact me.
Now to the more important issues.....
Ajeh:
Scenario 1:
I have in the Shopping Cart a 1lb Product NOT marked as ALWAYS FREE SHIPPING ... so I should see USPS for 1lb quotes for US and lb quotes Rest of the World ... correct?
Yes that is correct. There should be quotes showing for shipping for a 1# package for both the U.S. and the rest of the world.
Ajeh:
Scenario 2:
I have in the Shopping Cart a 1lb Product ALSO marked as ALWAYS FREE SHIPPING ...For the Rest of the World, there is a USPS 1lb quotes ... correct?
For the US, I should see Free Shipping ...
What should the USPS quote be quoting for the US, 1lbs or Nothing?
Assuming you ONLY have the 1 item in the cart that is marked 1 lb and ALWAYS FREE SHIPPING.
The quote for the U.S. would show Free shipping and the quote for the rest of the world would show the charge for a 1 lb package
Ajeh:
Scenario 3:
I have in the Shopping Cart a 1lb Product ALSO marked as ALWAYS FREE SHIPPING ... And, a 2lb Product NOT marked as ALWAYS FREE SHIPPING ...For the Rest of the World, there is a USPS 3lb quotes ... correct?
What should the USPS quote be quoting for the US, 2lbs or 3lbs?
The quote for the U.S. would be for a 2# package.
And thank you again for all of your hard work for everyone.
Oba-san
Okay try these changes ...
I am using zone_id 2, you change it to your zone_id
Add the code in RED to:
/includes/modules/shipping/usps.php
$this->tax_basis = MODULE_SHIPPING_USPS_TAX_BASIS;
// disable only when entire cart is free shipping
[B]//[/B] if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
[B]//[/B] }
if ($this->enabled) {
// check if all keys are in configuration table and correct version
$check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_USPS_VERSION'");
$check_version = $check_query->fields['configuration_value'];
if (IS_ADMIN_FLAG) {
$chk_sql = $db->Execute("select * from " . TABLE_CONFIGURATION . " where configuration_key like 'MODULE\_SHIPPING\_USPS\_%' ");
$chk_keys = $this->keys();
if (($check_version != '2013-01-27') || (sizeof($chk_keys) != $chk_sql->RecordCount())) {
$this->title = $this->title . '<span class="alert">' . ' - Missing Keys you should reinstall!' . '</span>';
}
}
}
[B]
// bof: allow 1 zone only for Always Free Shipping
global $db, $order, $cart;
//echo 'I see quantity: ' . ($_SESSION['cart']->in_cart_check('product_is_always_free_shipping', 1)) . '<br>';
$valid_zone_id = 2;
$check_flag = false;
$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . $valid_zone_id . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
while (!$check->EOF) {
if ($check->fields['zone_id'] < 1) {
$check_flag = true;
break;
} elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
$check_flag = true;
break;
}
$check->MoveNext();
}
if ($check_flag == true) {
if ($_SESSION['cart']->count_contents() == $_SESSION['cart']->in_cart_check('product_is_always_free_shipping', 1)) {
$this->enabled = false;
} else {
$this->enabled = true;
}
} else {
$this->enabled = true;
}
// eof: allow 1 zone only for Always Free Shipping
[/B]
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_USPS_ZONE > 0) ) {
Again, change zone_id 2 to your zone_id
/includes/classes/shipping.php
function calculate_boxes_weight_and_tare() {
global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;
[B]// bof: allow 1 zone only for Always Free Shipping
global $db, $order, $cart;
$valid_zone_id = 2;
$check_flag = false;
$check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . $valid_zone_id . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
while (!$check->EOF) {
if ($check->fields['zone_id'] < 1) {
$check_flag = true;
break;
} elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
$check_flag = true;
break;
}
$check->MoveNext();
}
if ($check_flag == false) {
$total_weight += $_SESSION['cart']->free_shipping_weight;
}
// bof: allow 1 zone only for Always Free Shipping
[/B]
if (is_array($this->modules)) {
Now make sure you have installed the Shipping modules for:
FREE SHIPPING! freeshipper and set the Zone to your US Free Shipping
USPS (no zone should be set)
Try this and see if it works for you ...
New Zenner
I have Good News and GREAT NEWS!!
:smile::smile:IT SEEMS TO BE WORKING CORRECTLY:smile::smile:
I just had time to get things installed, and do a few quick tests, but it seems to be working perfectly. I'll do a few more comprehensive tests in a couple hours and report back.
I really think this would be a fantastic MOD to make available, since you've done all the work already. I think alot of people want something very similar
Thank You, Thank You, Thank You.
I'm also sending you a private message.
Oba-san
You are most welcome ... glad that all is working for you now! :cool:
New Zenner
OK, everything seems to be working correctly and the prices are all calculating correctly with the tare's and handling fees setup. I do have one further question though. configuration/shipping-packaging/Display Number of Boxes and Weight Status....I have this set to 0 (zero) to not display the weight. The weight is still showing on the estimator, and also the shopping cart.
The problem is this......
The weight that is showing is ONLY the weight for items that ARE NOT free shipping. The costs are figuring correctly though.
Example: One free shipping item with a weight .2, and one item with NO FREE SHIPPING and a weight of 1#. The weight showing is 1#. The is fine for the U.S. shipping, but it shows the same for international shipping, so someone might question their weight/costs. As mentioned the costs are figuring correctly, it is just not showing the weight correctly on the international shipping.
Oba-san
Go to the Configuration ... Layout Settings ...
Shopping Cart - Show Totals
Show Totals Above Shopping Cart?
0= off
1= on: Items Weight Amount
2= on: Items Weight Amount, but no weight when 0
3= on: Items Amount
New Zenner
One final question (I think).
Is there a way to make the "free shipping" icon/logo show up on the items marked as always free shipping? Mine is not showing up for some reason. If so I can re-design the logo to show "free U.S. shipping", or something appropriate.
Oba-san
And if you peek in the Catalog ... Product Types ... EDIT ...
Product Free Shipping Image Status - Catalog
Show the Free Shipping image/text in the catalog?
Tell staff why this post should be reviewed.