Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Removing free shipping text from virtual product total

Removing free shipping text from virtual product total

Locked

Views: 3,451

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
22 Oct 2008, 7:52 PM
#1
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

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!

22 Oct 2008, 10:06 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

23 Oct 2008, 3:32 AM
#3
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

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.

23 Oct 2008, 1:56 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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?

23 Oct 2008, 4:12 PM
#5
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

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/index.php?main_page=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.

23 Oct 2008, 4:30 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

23 Oct 2008, 4:48 PM
#7
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

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?

23 Oct 2008, 4:57 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

23 Oct 2008, 5:04 PM
#9
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

Re: Removing free shipping text from virtual product total

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

23 Oct 2008, 5:34 PM
#10
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

Re: Removing free shipping text from virtual product total

Ajeh-
I've edited/added this at line 80 on the ot_shipping module

    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?

23 Oct 2008, 5:37 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing free shipping text from virtual product total

Nothing that jumps out at me ... just be sure to test several orders and combinations to ensure all is right in the world ... :smile:

23 Oct 2008, 5:39 PM
#12
itsjosh avatar

itsjosh

New Zenner

Join Date:
Oct 2008
Posts:
12
Plugin Contributions:
0

Re: Removing free shipping text from virtual product total

Great. Thanks for all your help!

23 Aug 2009, 3:25 PM
#13
ladyink avatar

ladyink

Zen Follower

Join Date:
Oct 2007
Posts:
105
Plugin Contributions:
0

Re: Removing free shipping text from virtual product total

itsjosh:

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!

I'm having a similar problem with the "f" showing up in the order history. It just looks unprofessional. I've removed the "Shipping Method" and the "Shipping Address" text but this one little "f" is a difficult one to track down.

I'd also like to add a link to write a review on the order history page- I've seen this suggested but haven't located any hints on how to do it!

Nancy

Any thoughts on either of these, would be awesome!

24 Aug 2009, 1:47 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing free shipping text from virtual product total

This is most likely the result of removing the Order Total for Shipping ot_shipping as it now cannot fill the information completely and you see the: f