Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / how to get rid of the brackets around the shipping method in ot during checkout?

how to get rid of the brackets around the shipping method in ot during checkout?

Locked

Started by lankeeyankee on 13 Feb 2009, 11:48 PM · Views: 1,392

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Feb 2009, 11:48 PM
#1
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Post #1 by lankeeyankee

I've searched the forums and can't find an answer and I have been rooting through all of the relevant files that I can think of without success.

I would like to get rid of the brackets around the shipping method in the order total section during checkout. Currently it says something like:

United Parcel Service (Ground)

and I would like it to be:

United Parcel Service Ground

Which file adds the () to the method? I have spent ages looking through every shipping file I can think of and haven't found it.

Can someone PLEASE help me get rid of these brackets??:smile:


Zen Cart and it's community are the best!!

14 Feb 2009, 1:07 AM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Post #2 by bunyip

those brackets are added in the file includes/modules/pages/checkout_shipping/header_php.php in this section of code (brackets you're looking for highlighted in red):

               $_SESSION['shipping'] = array('id' => $_SESSION['shipping'],
                                'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
                                'cost' => $quote[0]['methods'][0]['cost']);

Neville
An assumption is what you arrive at when you get tired of thinking...

14 Feb 2009, 6:34 AM
#3
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Post #3 by lankeeyankee

Thanks for the reply!

I neglected to mention that we are using the fast and easy checkout mod which is a single page checkout, although this essentially combines all of the functionality of the checkout shipping, checkout payment and checkout process header_php files. I saw in the header_php file where the brackets were but deleting them didn't remove the brackets for some reason even though it was using the same shipping code block.

I found that the file the needed changing is includes/classes/shipping.php. In there was the same array as the header_php file, so I deleted the ' (' and ')' from line 136 in v1.3.7.1 and viola! now it's the way I want.

I had already looked at that file several times and somehow overlooked that line. :blush: Too many late nights in front of a monitor!!:laugh:


Zen Cart and it's community are the best!!