Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Removing free shipping text from virtual product total

    Hi-

    90% of the products (actually services) on the cart I'm building are virtual (but not downloads) and configured as such. Checkout works fine, skipping shipping method and address. However, in the order confirmation e-mail and order history page on the site, "Shipping Method" shows up with "f" underneath it. I've searched all over for a way to remove this and was only able to find a post recommending an install of the order total shipping module. Now that I've added this, the "Shipping Method" heading still shows up, albeit with "Free Shipping" underneath it instead of simply "f". There's also a "Free Shipping: $0.00" as part of the order total.
    I'd like to remove any mention of shipping for these virtual products, in the order total, the confirmation e-mails and order history page.
    Any ideas?

    I'm using 1.3.8a

    Let me know if you need more info, and thanks in advance!

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

    Default Re: Removing free shipping text from virtual product total

    Sounds like a problem with the configuration or the templates ...

    How do you have the Products setup?

    Products should be marked as:
    Product is Virtual: Yes, Skip Shipping Address
    Product is Always Free Shipping: No, Normal Shipping Rules

    What shipping modules do you have installed?

    Clean install or an Upgrade?
    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
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Removing free shipping text from virtual product total

    Hi Ajeh, thanks for the response.

    My product configuration (for the virtual products) is as you mentioned:
    Product is Virtual: Yes, Skip Shipping Address
    Product is Always Free Shipping: No, Normal Shipping Rules

    I have the flat rate, free shipping options and FREE SHIPPING! modules installed. As I said, there are several products that do require shipping. The default for these is free shipping, with expedited shipping available using the flat rate module. These all work/look fine in checkout and in the emails, etc.

    This is a clean install of Zen Cart.

    Thanks again in advance.

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

    Default Re: Removing free shipping text from virtual product total

    Is this a Clean install or an Upgrade?

    Can you reproduce this any time?

    What happens if you switch to the Classic Template?

    What Add-ons do you have installed?
    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
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Removing free shipping text from virtual product total

    This is a clean install.

    I can reproduce this every time.. it happens everytime I attempt to checkout with a virtual product.
    Here's a link to the products I'm talking about:
    http://www.resumepower.com/cart/inde...=index&cPath=1
    On step 2 of 3 of checkout you can see it lists Free Shipping as part of the order total. I'd like to remove that.
    This is a live site, so please don't checkout.

    If I switch to the classic template this happens as well. If I remove the FREE SHIPPING! module this happens as well.

    I have the cross sell, column grid layout, module manager and archive email add-ons installed.
    Last edited by itsjosh; 23 Oct 2008 at 05:14 PM. Reason: live site disclaimer

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

    Default Re: Removing free shipping text from virtual product total

    Okay I tested an order and it does complete ...

    The Free Shipping shows as there is no shipping to be charged ...

    So you don't want to see the words Free Shipping on one of these Virtual Orders, correct?

    That define is in the ot_shipping.php language file ...
    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
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Removing free shipping text from virtual product total

    Hi Ajeh

    Thanks. I'd like to remove the entire line. If I change the language file ot_shipping, I can only remove the "Free Shipping" part, it still shows "$0.00". If I edit the ot_shipping module file (using the template override system, of course), is there a way to have it not display any of the line if the product is virtual?

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

    Default Re: Removing free shipping text from virtual product total

    The module itself for ot_shipping doesn't have an override ... just the language file ...

    You can alter the code if you like, but be sure you are altering the display and not something that actually affects calculations or data updates ...
    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
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Removing free shipping text from virtual product total

    Great, thanks. I'll let you know how successful I am.

  10. #10
    Join Date
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Removing free shipping text from virtual product total

    Ajeh-
    I've edited/added this at line 80 on the ot_shipping module
    PHP Code:
        function process() {
          global 
    $order$currencies;
         if (
    $_SESSION['shipping'] == 'free_free') {
            
    $this->output[] = array('value' => $order->info['shipping_cost']);
                                    }
         else {
             
    $this->output[] = array('title' => $order->info['shipping_method'] . ':',
                                    
    'text' => $currencies->format($order->info['shipping_cost'], true$order->info['currency'], $order->info['currency_value']),
                                    
    'value' => $order->info['shipping_cost']);
                                    }
        } 
    and it's done the trick. I know enough PHP to do this, but not enough to definitively say it's safe. I've tested it using every shipping method and all seems copacetic, but perhaps you can tell me if anything sticks out to you?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 22
    Last Post: 12 Jan 2015, 09:45 PM
  2. Replies: 18
    Last Post: 28 Aug 2012, 02:24 PM
  3. Removing free shipping from multiple products
    By Kromak in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 1 Feb 2011, 06:08 PM
  4. Excluding gift certs from order total for free shipping
    By KTNaturals in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 18 Feb 2007, 03:49 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