Page 5 of 10 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 96
  1. #41
    Join Date
    Jan 2009
    Location
    Czech Republic
    Posts
    59
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    Hi, I don´t know how to get rid of dollars in total listing. Shipping and sub-total work fine and prices are shown in my currency. THX

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

    Default Re: Shipping Rates in Cart [support thread]

    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)

  3. #43
    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

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

    Default Re: Shipping Rates in Cart [support thread]

    Yeah your solution is better

  5. #45
    Join Date
    Feb 2007
    Posts
    819
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    any idea on what's going on with sric on the wamp server? i get the same problem (code in the shipping box and multiple instances of the shipping and total)...

    thanks

  6. #46
    Join Date
    Jan 2008
    Posts
    38
    Plugin Contributions
    1

    Default Re: Shipping Rates in Cart [support thread]

    Steven300,

    Great job on the Shipping Rates in Cart mod. I've got it installed on my client's site and it's perfect for what they need.

    To fulfill another request of my client's, I started working on a hack to show shipping rates on the product pages for each product. I want to be able to show the price to ship a product—based on the current shipping modules and rules. A lot of sites have this simple feature, and it seems to fulfill a basic question many customers would have. Unfortunately, ZenCart has nothing I can find that does anything like this. Instead, you have to get all the way to the shipping page of the checkout—or the cart with your mod—to see the shipping price.

    Would you have any interest in working on a Shipping Price on Product Page mod with me? I think I have a pretty good idea how to do it now, but would like some help vetting my code. I'm a bit of a ZenCart newbie, and you know much more about how the ZC shipping mods and logic work. Seems right up your alley, and would be a very useful mod, I think.

    Excuse me for posting this here...wasn't sure where else to contact you. (Tried sending as a private message through the forum, but you were blocked. Tried finding an email address for you, but couldn't.)

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

    Default Re: Shipping Rates in Cart [support thread]

    Sorry for the late replies.

    Quote Originally Posted by gsdcypher View Post
    any idea on what's going on with sric on the wamp server? i get the same problem (code in the shipping box and multiple instances of the shipping and total)...
    In includes/templates/your_template/templates/tpl_shopping_cart_default.php ...

    Try changing all occurances of <? with <?php

    Quote Originally Posted by capnhairdo View Post
    Would you have any interest in working on a Shipping Price on Product Page mod with me?
    That sounds like a really great mod!

    However I'm not involved with Zen Cart as much as I used to be.

    Good luck.

  8. #48
    Join Date
    Jan 2008
    Posts
    38
    Plugin Contributions
    1

    Default Re: Shipping Rates in Cart [support thread]

    Quote Originally Posted by Steven300 View Post
    That sounds like a really great mod! However I'm not involved with Zen Cart as much as I used to be.
    Bummer. Okay, I'll see if I can muck my way through it myself. If you don't mind, I'm may borrow liberally from SRiC for some of the code and logic, with credit of course!

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

    Default Re: Shipping Rates in Cart [support thread]

    Quote Originally Posted by capnhairdo View Post
    If you don't mind, I'm may borrow liberally from SRiC for some of the code and logic, with credit of course!
    Sure, that's what open source is all about

  10. #50
    Join Date
    May 2007
    Posts
    471
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    I was just searching for this feature myself...capnhairdo if you come up with anything please let us know....I was I could do more programming but that is way over me!

    I think showing the shipping price on the product page is an important feature!!!
    Jill || I Love Zen Cart Templates || 2 Dogs Design
    I Love To Help But Let's Keep It Public Please To Help Others!

 

 
Page 5 of 10 FirstFirst ... 34567 ... LastLast

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

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