Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Simple question for PHP programmers, hard for me!

    The solution in that case would be to split the constant as noted in post 6 and output its parts before and after the currency output.

  2. #12
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Simple question for PHP programmers, hard for me!

    Thanks Glenn. I understand what you say but don't have any idea how to do it.

    Any hint? I'm willing to try (and have tried a lot since your reply, but in vain).

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Simple question for PHP programmers, hard for me!

    Duplicate the define and give the copy a slightly different name, like
    PHP Code:
    define('TEXT_FREESHIPPING_SIDEBOX''FREE SHIPMENT<br />OF ORDERS OVER<br />');

    define('TEXT_FREESHIPPING_SIDEBOX2''<br /><br />FREE INSURANCE<br />OF ORDERS OVER<br />'); 
    Then make the output file like
    PHP Code:
    $content .= TEXT_FREESHIPPING_SIDEBOX $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) . TEXT_FREESHIPPING_SIDEBOX2 .  $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER); 

  4. #14
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Simple question for PHP programmers, hard for me!

    OK Glenn I followed your yesterday's instructions but delayed answering as I wanted to see how it behaved (i.e. not giving a zero value after some time of inactivity).

    I have now installed it on the live site and, so far, so good. I hope not to bother you again but I will certainly thank you once more for your (always) valuable help.

    Best wishes for the weekend and kind regards.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Simple CSS/PHP AntiSpam solution for a contact form
    By dlg_ie in forum All Other Contributions/Addons
    Replies: 130
    Last Post: 24 Jan 2017, 05:04 PM
  2. v150 Wanted: Simple Capthcha for Forms, Maybe a Random Question or Image
    By jonisolis in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2013, 09:21 PM
  3. A simple question for PHP programmers
    By HTMLGoddess in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Jul 2008, 10:59 AM
  4. Suggestion for you heavy duty Zen programmers
    By mrogowski in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Apr 2008, 08:09 PM

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