Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Remove brackets from shipping text

    Hi - could someone tell me how to remove the brackets which appear around MODULE_SHIPPING_FLAT_TEXT_WAY ( defined in includes\languages\english\modules\shipping) which appears whenever totals are displayed. I've looked everywhere.

    Thanks

  2. #2
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Re: Remove brackets from shipping text

    anyone with any ideas?

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

    Default Re: Remove brackets from shipping text

    I believe the parens that you are looking for are in the
    /includes/classes/shipping.php

    Around line 136:
    PHP Code:
                  'title' => $quotes['module'] . ' (' $quotes['methods'][$i]['title'] . ')'
    Note: there are no overrides for this 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: v1.5.5]
    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!

  4. #4
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Re: Remove brackets from shipping text

    Hi - thanks for your reply. I've just made the code change so that it reads

    'title' => $quotes['module'] . $quotes['methods'][$i]['title'],

    but I am still getting brackets. I've relogged in etc but no luck. Any ideas?

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

    Default Re: Remove brackets from shipping text

    ** EDITED ** dumb thought ...
    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: v1.5.5]
    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!

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

    Default Re: Remove brackets from shipping text

    Note: you did not try to use an override on the /classes did you? There are no overrides for the /classes ...
    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: v1.5.5]
    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 2006
    Location
    Scotland
    Posts
    55
    Plugin Contributions
    0

    Default Re: Remove brackets from shipping text

    No, I updated includes/classes/shipping.php

    It's been driving me mad for ages.

    I actually have no text defined for MODULE_SHIPPING_FLAT_TEXT_WAY and just want MODULE_SHIPPING_FLAT_TEXT_TITLE to be displayed, and currently I'm getting Postage & Package () which doesn't look great

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

    Default Re: Remove brackets from shipping text

    Okay ... I missed a few ...

    Places to remove the parens for shipping ...

    NOTE: use your templates and overrides directories ...

    /includes/modules/shipping_estimator.php
    Line 178:
    PHP Code:
            $order->info['shipping_method'] = $selected_quote[0]['module'].' ('.$selected_quote[0]['methods'][0]['title'].')'
    /includes/templates/templates_default/templates/tpl_modules_shipping_estimator.php
    search for:  (
    Lines 97, 103, 109, 124, 130, 136
    and change the parens on each line

    Example Line 97 looks like this:
    PHP Code:
             <td colspan="2"><?php echo $quotes[$i]['module']; ?>&nbsp;(<?php echo $quotes[$i]['error']; ?>)</td>
    /includes/classes/shipping.php
    Line 136:
    PHP Code:
                  'title' => $quotes['module'] . ' (' $quotes['methods'][$i]['title'] . ')'
    /includes/modules/pages/checkout_shipping/header_php.php
    Line 152:
    PHP Code:
                                    'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' $quote[0]['methods'][0]['title'] . ')'), 
    that should be all of them ...

    Note: this will be reworked in v1.4 for a smoother and cleaner method to make these changes ...
    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: v1.5.5]
    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
    May 2004
    Location
    UK
    Posts
    478
    Plugin Contributions
    0

    Default Re: Remove brackets from shipping text

    thank you - exactly what I was looking for !! perfect title and perfect answer = perfect

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

    Default Re: Remove brackets from shipping text

    Thanks for the update that this worked for you ...
    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: v1.5.5]
    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 3 123 LastLast

Similar Threads

  1. How to Remove brackets around shipping (Best way)?
    By ianhg in forum General Questions
    Replies: 1
    Last Post: 3 Mar 2013, 02:51 PM
  2. Removing brackets from around attributes price
    By g3steve in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 4 Feb 2010, 05:11 AM
  3. How do I remove (Best Way) brackets?
    By 121webconsultancy in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Oct 2008, 06:42 AM
  4. Remove brackets around P&H
    By microbe in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Feb 2008, 05:53 AM
  5. Remove text from categories
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jun 2007, 05:31 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR