Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jun 2015
    Location
    California
    Posts
    54
    Plugin Contributions
    0

    Default Using Freeshipper alongside fedexwebservices

    Hello,

    I know this has been done before, but I cannot seem to get it to work correctly for us. Basically, I want to allow "always free shipping" products the option to ship with FedEx express if the customer wants to pay the premium.

    I have tried modifying the fedexwebservices php file in a manner similar to what I have seen in other threads (like this one)

    like so:
    Code:
    //    if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_FREE_SHIPPING == 'true' || zen_get_shipping_enabled($this->code)) {
        	if (extension_loaded('soap')) {
          $this->enabled = ((MODULE_SHIPPING_FEDEX_WEB_SERVICES_STATUS == 'true') ? true : false);
          }
    //    }
    I thought this worked. It made the fedex options appear in the cart estimator and in on the checkout page, but it wasn't working fully. If you select one of the fedex options, it changes the order total, but still says that shipping is $0.00. So if you select overnight shipping for $20.00 It would look like:

    Sub-Total: $10.00
    Free Shipping: $0.00
    Total: $30.00

    then if you complete the checkout process, it charges just $10.00


    I feel like I must be missing something, hopefully something simple. php is still pretty much beyond me. The "always" part of the "always free shipping" is more powerful than I.

    Thank you in advance for any help or advice! (This is my first post, because every other question I had was answered by lurking, so you all have already helped me a bunch!)

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using Freeshipper alongside fedexwebservices

    Have you have set the Products for Always Free Shipping with both Product Weight and the setting for Always Free Shipping?

    Do these Products marked as Always Free Shipping with Product Weight set have Always Free Shipping for *everyone* or for a particular Zone?
    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!]
    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!

  3. #3
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Using Freeshipper alongside fedexwebservices

    I had a similar issue last week.

    What I did was set:
    Enable for Always Free Shipping = true
    Allow Always Free Shipping items for = no methods

    Than I added a negative handling fee, to offset the "free shipping"

    Example:
    I sell a Widget for $25.00 and I budget $5.00 for shipping.

    I added "-5.00" to the handling fee and have the module enabled even when free shipping is offered
    So if the FedEx rate is $25.00 they only pay the $20.00 up-charge.

    Hope that helps!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using Freeshipper alongside fedexwebservices

    Edit the files:
    /includes/classes/shipping.php

    and add the code in RED:
    Code:
      function calculate_boxes_weight_and_tare() {
        global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;
    
    // bof: force Always Free Shipping with products_weight
        $total_weight += $_SESSION['cart']->free_shipping_weight;
    // eof: force Always Free Shipping with products_weight
    
        $this->abort_legacy_calculations = FALSE;
    /includes/modules/shipping/fedexwebservices.php
    Code:
        $this->sort_order       = MODULE_SHIPPING_FEDEX_WEB_SERVICES_SORT_ORDER;
        //$this->icon = DIR_WS_IMAGES . 'fedex-images/fedex.gif';
        $this->icon = '';
    
    // Ajeh - force FedEx to always show for Always Free Shipping with products_weight set
        if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_FREE_SHIPPING == 'true' || true || zen_get_shipping_enabled($this->code)) {
            if (extension_loaded('soap')) {
          $this->enabled = ((MODULE_SHIPPING_FEDEX_WEB_SERVICES_STATUS == 'true') ? true : false);
          }
        }
    
        $this->tax_class        = MODULE_SHIPPING_FEDEX_WEB_SERVICES_TAX_CLASS;
    /includes/modules/shipping/freeshipper.php
    Code:
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
          }
    
    // bof: force Always Free Shipping with products_weight
    $this->enabled = true;
    // eof: force Always Free Shipping with products_weight
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREESHIPPER_ZONE > 0) ) {
    Code:
    // class methods
        function quote($method = '') {
          global $order;
    
    // bof: force Always Free Shipping with products_weight
    global $shipping_weight;
    $check_free_weight = $_SESSION['cart']->free_shipping_weight;
    //echo '$shipping_weight: ' . $shipping_weight . '<br>';
    //echo '$check_weight: ' . $check_free_weight . '<br>';
    if ($shipping_weight - $check_free_weight != 0) {
      return false;
    }
    // eof: force Always Free Shipping with products_weight
    
          $this->quotes = array('id' => $this->code,
    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!]
    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!

  5. #5
    Join Date
    Jun 2015
    Location
    California
    Posts
    54
    Plugin Contributions
    0

    Default Re: Using Freeshipper alongside fedexwebservices

    Thanks for your replies!

    Ajeh, am not sure how to answer your first post:
    Have you have set the Products for Always Free Shipping with both Product Weight and the setting for Always Free Shipping?
    I don't see an option for any weight settings in the freeshipper module. But the products marked as "always free shipping" do have weights set as >0 in the product listing. And the freeshipper zone is set to Continental US 48.


    I just tried adding all the code from your second post as well, and it was acting strangely, similar to when I had the basic edit from my initial post. The FedEx shipping options were available to select, but the FREE SHIPPING! option was gone from the selection. However, the sub-total, shipping, and total, were still messed up like so (with a $20 shipping method selected):
    Sub-Total: $10.00
    Free Shipping: $0.00
    Total: $30.00

    and the actual amount charged did not include the shipping cost.


    Also, with your changes to the /includes/classes/shipping.php, the fedex options indicate that the weight of the item is 5 lbs. Without the changes to /includes/classes/shipping.php, but keeping all the other changes the the module php files, the weight for the fedex shipment is indicated at 3 lbs. The item i am testing with is marked as weight 2lbs.


    Thank you so much for your help!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using Freeshipper alongside fedexwebservices

    The thing I wanted you to check is that when you add/edit the Product that the settings for:
    Always Free Shipping: Yes, Always Free Shipping
    And for Product Weight is set to a value other than 0 ...

    Next, check your settings on the Configuration ... Shipping/Packaging ... and set the Tare Rates to 0:0 ...
    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!]
    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!

  7. #7
    Join Date
    Jun 2015
    Location
    California
    Posts
    54
    Plugin Contributions
    0

    Default Re: Using Freeshipper alongside fedexwebservices

    Yes, the product is marked:
    Always Free Shipping: Yes, Always Free Shipping
    Tare rate was set to 0:3. I changed to 0:0. (is this necessary?)

    also, the Order Free Shipping 0 Weight Status = 1 (should i set this to 0?)

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using Freeshipper alongside fedexwebservices

    0 weight can be set at 1 meaning yes that is Free Shipping when there is no weight ...

    Now, with all the changes that I posted are things working correctly?

    If not, have you an URL to one of your Products that is marked Always Free Shipping but has weight set to it?
    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!]
    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!

  9. #9
    Join Date
    Jun 2015
    Location
    California
    Posts
    54
    Plugin Contributions
    0

    Default Re: Using Freeshipper alongside fedexwebservices

    Now, things are still not working correctly. The FREE SHIPPING! option does now show up, but any other shipping amount is not being added to the order total still.

    Here is a link to one of the products with marked as always free shipping and with weight of 2:
    http://www.p o o l g u y s u p p l y.com/Flow-Switch-%28No-Tee%29-HaywardGoldline

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Using Freeshipper alongside fedexwebservices

    What version of Zen Cart are you using?

    What version of FedEx are you using?
    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!]
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Fedexwebservices not splitting packages, Ready to ship
    By jimmie in forum Addon Shipping Modules
    Replies: 18
    Last Post: 11 Aug 2015, 11:16 PM
  2. Replies: 1
    Last Post: 6 Dec 2011, 11:53 PM
  3. Shipping Rate Problems US and Canada using FreeShipper
    By bacibacio in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 1 Apr 2008, 06:19 AM
  4. Im using FreeShipper, Is there a way to. . .
    By bumba000 in forum General Questions
    Replies: 0
    Last Post: 3 Mar 2008, 01:05 AM
  5. image alongside 'information' sidebox
    By mikeeeeeeey in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Sep 2007, 12:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg