Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default New line or Add a Space in CSS Shipping Estimator

    If you look at my shipping estimator page:

    http://www.limelites.co.uk/index.php...ping_estimator

    You'll notice that there is no space between these fields:

    Items in Cart: 1Weight: 0.2kgsAmount: £14.99

    How do I either put each of those on a new line, or at least add a space between them?

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    Limey,
    Looks great to me in firefox..

    This is what I see:
    http://www.limelites.co.uk/index.php...r_of_uploads=0

    Items in Cart: 1 Weight: 0.8kgs Amount: £49.99

  3. #3
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    I noticed that the other day (in firefox)

    There should be spaces in the language defines...

    \includes\languages\CUSTOM\english\popup_shipping_estimator.php

    define('HEADING_SEARCH_HELP', 'Shipping Estimator:');
    define('TEXT_TOTAL_ITEMS', 'Total Items: ');
    define('TEXT_TOTAL_WEIGHT', '  Weight: ');
    define('TEXT_TOTAL_AMOUNT', '  Amount: ');
    ~Steve~

  4. #4
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    Quote Originally Posted by haredo View Post
    Limey,
    Looks great to me in firefox..

    This is what I see:
    http://www.limelites.co.uk/index.php...r_of_uploads=0

    Items in Cart: 1 Weight: 0.8kgs Amount: £49.99
    That's odd, I'm using FF Mozilla/5.0 and I don't get those spaces. This is what I get:



    No spaces.

    Quote Originally Posted by s_t_e_v_e View Post
    I noticed that the other day (in firefox)

    There should be spaces in the language defines...

    \includes\languages\CUSTOM\english\popup_shipping_estimator.php

    define('HEADING_SEARCH_HELP', 'Shipping Estimator:');
    define('TEXT_TOTAL_ITEMS', 'Total Items: ');
    define('TEXT_TOTAL_WEIGHT', '  Weight: ');
    define('TEXT_TOTAL_AMOUNT', '  Amount: ');
    Hi Steve! I took a look in my popup_shipping_estimator.php and it is now identical to that you posted above. Unfortunately, still don't get any spaces. I'll try and add some tags to drop each onto a new line.

  5. #5
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    hmmm... To test to see if this file is being used for the shipping estimator... I would change one of the defines to something else;

    define('TEXT_TOTAL_WEIGHT', '  Weight: ');

    to

    define('TEXT_TOTAL_WEIGHT', '  TEST Weight TEST : ');
    ~Steve~

  6. #6
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    That's strange.... doesn't seem to be generated from popup_shipping_estimator.php........ I just changed those defines to these test values to see if I could force a new line, but the text, 'test' does not show up at all?

    PHP Code:
    define('HEADING_SEARCH_HELP''TESTTESTTESTShipping Estimator:<dt>test</dt>');
    define('TEXT_TOTAL_ITEMS''Total Items: <dt>test</dt>');
    define('TEXT_TOTAL_WEIGHT''&nbsp;&nbsp;Weight: <dt>test</dt>');
    define('TEXT_TOTAL_AMOUNT''&nbsp;&nbsp;Amount: <dt>test</dt>'); 
    Either I have this file in the wrong place or it's coming from some place else?

    I checked my overrides folder but my file is not in the folder you said Steve. My file is in /includes/languages/english

    So, it's not being overridden?

  7. #7
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    I was actually doing that, just as you were advising me to do it.... I must be learning

  8. #8
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    I just tried placing the same file in \includes\languages\CUSTOM\english\popup_shipping_estimator.php but still not generating the test text.

  9. #9
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    OK, so it gets stranger. I just searched the text, "Estimate Shipping Costs" form the title in the popup page and the only file developers toolkit finds this text in is english.php

    Why is DTK not finding it in popup file?

  10. #10
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: New line or Add a Space in CSS Shipping Estimator

    Have you changed the shipping estimator template? May be the template is not using the Defines...



    \includes\templates\custom\templates\tpl_modules_shipping_estimator.php

    line 22

    <?php if (!empty($totalsDisplay)) { ?>
    <div class="cartTotalsDisplay important"><?php echo $totalsDisplay; ?></div>
    <?php } ?>
    ~Steve~

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v151 Shipping Estimator Questions for Popup and In-Line Cart Views
    By DBB1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Nov 2012, 12:52 AM
  2. Add line space between catagory listings
    By btman in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Aug 2011, 03:59 PM
  3. CSS for Shipping Estimator
    By davidandrews in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 20 Mar 2009, 03:20 AM
  4. CSS for shipping estimator
    By CandleMan in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 18 Feb 2009, 09:33 AM
  5. shipping estimator breaks at line 8?
    By tvadpro in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 30 Nov 2006, 02:06 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