Results 1 to 7 of 7
  1. #1
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default more of the Fun Stuff..

    So, thanks to Great advice from ghj42, I'm on a Euphoric rush. So I coded this to have the text "total" show up in the cart right next to the cartTotals:
    Code:
    '<div class="cartBoxTotal"><span class="textTotal">Totalt</span>' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    Could this also be done a better way??

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: more of the Fun Stuff..

    I'd recommend spelling it without a "t" at the end.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: more of the Fun Stuff..

    I guess that's the better way...

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: more of the Fun Stuff..

    For multi-lingual sites it would be better to define the text in a PHP constant in your language files and then echo the constant,
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: more of the Fun Stuff..

    Sounds great. How do I do that?

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: more of the Fun Stuff..

    You go to the language files for each of pages where you want to use the text, and each of the language on your site and create an override file for your template (there's more on this in the FAQ) and add an additional entry as per the "define" statements already there.

    Then in your code snippet above, instead of
    <span class="textTotal">Totalt</span>
    you'd put
    <span class="textTotal"><?php echo YOUR_NEW_DEFINED_CONSTANT_NAME; ?></span>
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: more of the Fun Stuff..

    Looks cool.. I'll work on this, Thanks!

 

 

Similar Threads

  1. v139h Product download page blank - More fun than it sounds
    By SgtPepper in forum General Questions
    Replies: 6
    Last Post: 7 Nov 2012, 11:23 PM
  2. Can't find the stuff above the top search box to delete or change it.
    By rayl in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Jun 2009, 08:31 PM
  3. Remove stuff in the header
    By Helgera in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Sep 2007, 07:32 PM
  4. Centering the stuff in the side boxes
    By TheIndieMusicShop in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Sep 2007, 11:54 PM
  5. More fun w/ extra pages!
    By oldschoolrocker in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Jul 2006, 05:14 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