Results 1 to 10 of 96

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Czech Republic
    Posts
    59
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    Quote Originally Posted by Steven300 View Post
    Hi,

    This will work if you use just one currency:

    In includes/templates/your_template/templates/tpl_shopping_cart_default.php

    I think it will be line 243.

    PHP Code:
    <div id="sricTotal"><?php echo SRIC_WORD_TOTAL ":"?> <?php echo $currency_code_opt_total_before $currency_symbol $sric_total $currency_code_opt_total_after?></div>
    Replace with:

    PHP Code:
    <div id="sricTotal"><?php echo SRIC_WORD_TOTAL ":"?> <?php echo $currency_code_opt_total_before $sric_total "Your currency symbol" $currency_code_opt_total_after?></div>
    (change the "Your currency symbol" bit)
    I´ve found better solution. At the beginning of code is command for choosing currency symbol, you just need edit this code:
    PHP Code:
    //Get currency symbol
    $currency_code $_SESSION['currency'];
    switch (
    $currency_code) {
        case 
    "GBP":
            
    $currency_symbol "Ł";
            break;
        case 
    "USD":
            
    $currency_symbol "$";
            break;
        case 
    "EUR":
            
    $currency_symbol "€";
            break;
        default:
            
    $currency_symbol "$";
        break;

    to something like this:
    PHP Code:
    //Get currency symbol
    $currency_code $_SESSION['currency'];
    switch (
    $currency_code) {
        case 
    "GBP":
            
    $currency_symbol "Ł";
            break;
        case 
    "USD":
            
    $currency_symbol "$";
            break;
        case 
    "EUR":
            
    $currency_symbol "€";
            break;
        case 
    "your currency code":
            
    $currency_symbol "your currency symbol";
            break;
        default:
            
    $currency_symbol "default currency symbol";
        break;

    and that is it. It works fine for both multi languages and single language sides.
    If you like to have your currency symbol after price, change this code:
    PHP Code:
    <div id="sricTotal"><?php echo SRIC_WORD_TOTAL ":"?> <?php echo $currency_code_opt_total_before $currency_symbol $sric_total $currency_code_opt_total_after?></div>
    to this:
    PHP Code:
    <div id="sricTotal"><?php echo SRIC_WORD_TOTAL ":"?> <?php echo $currency_code_opt_total_before $sric_total .  $currency_symbol $currency_code_opt_total_after?></div>
    I am so sorry for my yesterday post, I don´t know that solution is so simple. Please, don't bother at my I am PHP beginner. BTW thx for your contribution

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Shipping Rates in Cart [support thread]

    Yeah your solution is better

 

 

Similar Threads

  1. Add Shipping Telephone Support Thread
    By JTheed in forum Addon Admin Tools
    Replies: 31
    Last Post: 4 Sep 2018, 11:14 AM
  2. Multiple Zone Rates Support Thread
    By totalsam in forum Addon Shipping Modules
    Replies: 54
    Last Post: 24 Feb 2015, 03:34 PM
  3. Replies: 29
    Last Post: 24 Sep 2014, 09:59 PM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 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