Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Remove MODULE_SHIPPING_TABLE_TEXT_WAY from checkout steps 2 & 3

    I would like to remove the MODULE_SHIPPING_TABLE_TEXT_WAY element from Checkout steps 2 & 3 in the order total sections.

    This is NOT a case of editing the language file ...my language file contains
    Code:
    define('MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION', 'Special Delivery Next Day');
    define('MODULE_SHIPPING_TABLE_TEXT_WAY', 'Orders received by 2pm, Mon-Thurs will be delivered by 1.00pm the next working day Mondays to Fridays (except public and bank holidays)');
    and the output generated is
    Special Delivery Next Day (Orders received by 2pm, Mon-Thurs will be delivered by 1.00pm the next working day Mondays to Fridays (except public and bank holidays)):
    which I DO need at step 1, but steps 2 & 3 only need "Special Delivery Next Day".

    Any advice would be welcome.

    I should mention that I have several other lengthy "MODULE_SHIPPING_somename_TEXT_WAYS" that require the same treatment.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Remove MODULE_SHIPPING_TABLE_TEXT_WAY from checkout steps 2 & 3

    ad this to the tale rate module folder
    define('MODULE_SHIPPING_TABLE_TEXT_WAY_EXTRA', '');


    and change the define from
    MODULE_SHIPPING_TABLE_TEXT_WAY
    to
    MODULE_SHIPPING_TABLE_TEXT_WAY_EXTRA

    in the other pages ( remember to add these to your over rides) .... LOL had to add it
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Remove MODULE_SHIPPING_TABLE_TEXT_WAY from checkout steps 2 & 3

    Now why didn't I think of that! Thanks!
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Remove MODULE_SHIPPING_TABLE_TEXT_WAY from checkout steps 2 & 3

    Ummm....so how do I get the differentiation between step 1 where I want the full text and steps 2 & 3 where I want the short version?

    I've put the defines in the language files, but the only other reference I can find to MODULE_SHIPPING_TABLE_TEXT_WAY is in includes/modules/shipping/table.php and replacing that with MODULE_SHIPPING_TABLE_TEXT_WAY_EXTRA applies the change to all checkout steps.

    It's been a long day so I probably need it spelling out for me.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  5. #5
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Remove MODULE_SHIPPING_TABLE_TEXT_WAY from checkout steps 2 & 3

    I've still not been able to figure this out, so I'm still looking for advice.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Remove MODULE_SHIPPING_TABLE_TEXT_WAY from checkout steps 2 & 3

    Eureka! Not sure if my method was what Merlinpa intended, but I have solved my problem thanks to that suggestion. This was what I did:

    1. Created the MODULE_SHIPPING_TABLE_TEXT_WAY_EXTRA define as suggested in includes/languages/english/modules/shipping/YOUR_TEMPLATE/table.php, and placed most of the text in there.

    2. Edited includes/modules/shipping/table.php and in function quote(), changed this:
    Code:
    $this->quotes = array('id' => $this->code,
        'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
        'methods' => array(array('id' => $this->code,
        'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
        'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
    to

    Code:
    $this->quotes = array('id' => $this->code,
        'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE . $show_box_weight,
        'extrainfo'=>MODULE_SHIPPING_TABLE_TEXT_WAY_EXTRA,
        'methods' => array(array('id' => $this->code,
        'title' => MODULE_SHIPPING_TABLE_TEXT_WAY,
        'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
    3. Edited includes/templates/YOUR_TEMPLATE/tpl_checkout_shipping_default.php, adding
    Code:
    <?php echo $quotes[$i]['extrainfo'] ; ?>
    just before the closing [/fieldset] statement somewhere near line 115.

    The result is as in the attached screenshot, and all the "additional" info does NOT appear in steps 2 & 3.
    Attached Images Attached Images  
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

 

 

Similar Threads

  1. Remove Header Links & Breadcrumbs From Checkout
    By games4gamers in forum General Questions
    Replies: 10
    Last Post: 1 Apr 2010, 08:42 PM
  2. How to remove steps from checkout process?
    By Jordin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 May 2009, 12:50 PM
  3. Replies: 3
    Last Post: 9 May 2008, 03:59 PM
  4. Removing [help?] from checkout steps
    By mooncavecrystals in forum General Questions
    Replies: 4
    Last Post: 21 Oct 2007, 02:18 AM

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