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
![]()
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
![]()
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.
Replace with: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>
(change the "Your currency symbol" bit)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>
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
I´ve found better solution. At the beginning of code is command for choosing currency symbol, you just need edit this code:
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;
default:
$currency_symbol = "$";
break;
}
and that is it. It works fine for both multi languages and single language sides.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;
}
If you like to have your currency symbol after price, change this code:
to this: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>
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 contributionPHP 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>
Yeah your solution is better![]()
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
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
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.)
Sorry for the late replies.
In includes/templates/your_template/templates/tpl_shopping_cart_default.php ...
Try changing all occurances of <? with <?php
That sounds like a really great mod!
However I'm not involved with Zen Cart as much as I used to be.
Good luck.
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
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!
Bookmarks