Zen Cart Logo
Forums / Addon Shipping Modules / Shipping Rates in Cart [support thread]

Shipping Rates in Cart [support thread]

Views: 30,243

Results 41 to 60 of 96
11 Jul 2009, 5:09 PM
#41
neboztik avatar

neboztik

New Zenner

Join Date:
Jan 2009
Location:
Czech Republic
Posts:
59
Plugin Contributions:
0

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

11 Jul 2009, 9:33 PM
#42
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

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.

<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:

<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)

12 Jul 2009, 6:23 PM
#43
neboztik avatar

neboztik

New Zenner

Join Date:
Jan 2009
Location:
Czech Republic
Posts:
59
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

Steven300:

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.

<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 <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 //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 //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 <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 <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
12 Jul 2009, 6:28 PM
#44
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Shipping Rates in Cart [support thread]

Yeah your solution is better :smile:

27 Nov 2009, 8:02 PM
#45
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

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

1 Dec 2009, 9:05 PM
#46
capnhairdo avatar

capnhairdo

New Zenner

Join Date:
Jan 2008
Posts:
38
Plugin Contributions:
1

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.)

6 Dec 2009, 9:53 PM
#47
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Shipping Rates in Cart [support thread]

Sorry for the late replies.

gsdcypher:

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

capnhairdo:

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.

7 Dec 2009, 5:25 PM
#48
capnhairdo avatar

capnhairdo

New Zenner

Join Date:
Jan 2008
Posts:
38
Plugin Contributions:
1

Re: Shipping Rates in Cart [support thread]

Steven300:

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!

7 Dec 2009, 6:05 PM
#49
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Shipping Rates in Cart [support thread]

capnhairdo:

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 :smile:

19 Dec 2009, 6:02 PM
#50
jill8026 avatar

jill8026

Totally Zenned

Join Date:
May 2007
Posts:
461
Plugin Contributions:
0

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!!!

21 Dec 2009, 7:00 PM
#51
capnhairdo avatar

capnhairdo

New Zenner

Join Date:
Jan 2008
Posts:
38
Plugin Contributions:
1

Re: Shipping Rates in Cart [support thread]

Great. Yeah, surprised more people haven't asked for this or come up with a mod for it yet!

Probably won't be able to get started on this until the new year. Have some ideas about how to implement, just no time right now to do it.

27 Dec 2009, 9:17 PM
#52
pablo1719 avatar

pablo1719

New Zenner

Join Date:
Nov 2008
Posts:
33
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

I am using the UPS module for shipping as my main method of shipping. I want the shipping in the cart to show the least expensive method through UPS (Ground). I seem to be able to get it to work but only if I turn off all other available choices in the UPS module ie no Next Day Air or Second Day Air. Is there a way to have those options enabled and have this module work. I think it is a very useful thing to have shipping in the cart but I would also like to be able to offer expanded choices when the customer goes to checkout.

Thank You
Paul

8 Jan 2010, 4:07 PM
#53
russell_sprout avatar

russell_sprout

New Zenner

Join Date:
Dec 2009
Posts:
7
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

I am using this mod on a customers web site and on the shopping cart page i seem to have lost the currencie symbol for the total, Url for the site is www.rhythmkingz.com any ideas why this is doing this would be great :-) as I'am kind of new to php :-)

25 Jan 2010, 4:39 AM
#54
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

Just wanted to say a HUGE THANKS for this mod. My checkout looks HEAPS better now, hopefully will increase conversion rates too...lol

This should come standard with Zen Cart......

4 Feb 2010, 4:39 AM
#55
zcjdc avatar

zcjdc

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

Steven300:

Sorry for the late replies.

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

Try changing all occurances of <? with <?php

Steven, I've finished the install and the SRIC shows up perfectly in the sidebox but not in the cart. When I replace the .../templates/tpl_shopping_cart_default.php page with the page from the download I get the code block just like the previous posts. I checked the code for instances of <? and they all appear to have <?php. Any suggestions for a Zen Cart newbie?

BTW: thanks for a great add on!

5 Feb 2010, 8:25 PM
#56
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Shipping Rates in Cart [support thread]

Again, sorry for the late replies, I have been in hospital for the last 5 weeks!

I still believe this to be an issue with replacing <? with <?php.

One of the reasons for this is because you mentioned the sidebox working perfectly. Well the sidebox code uses no <? and only <?php.

I have attached a copy of tpl_shopping_cart_default.php with all occurrences changed.

Hopefully this will work for you. If it does, I will update the mod accordingly.

Attachment #7020

10 Apr 2010, 1:21 PM
#57
zcjdc avatar

zcjdc

New Zenner

Join Date:
Feb 2010
Posts:
2
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

Stephen, thanks for that file. I had created a workaround that wasn't functioning quite right. I had to do a new install to fix another problem and happened to check this post again. I loaded this file instead and it works great. We only offer a one price shipping charge and this is exactly what we needed. Thanks again.

13 Apr 2010, 2:53 AM
#58
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

Hi Steven,

I am running Zen-Cart 1.3.8 and have just installed your shipping rates in cart add on except for the side box sections as aI do not use the shopping cart side box.

However I have go a big problem. I merged the following file as described by you in your read me file.

includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

But when I uploaded the file I lost some of my cart information. I have lost the subtotal heading & text, continue shopping button, confirm order button and more.

If you take a look at my website you will see what I mean: http://passionsignite.com.au/zen-cart-v1.3.8a-full-fileset-12112007/

Can you tell me what I am doing wrong and how I can fix this. I need to have my site up by early tomorrow and would like to have this problem fixed before I do.

Thank you.

13 Apr 2010, 9:31 AM
#60
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Shipping Rates in Cart [support thread]

I run the debug untility and this is what it came up with. I have no idea what I'm looking at. Sorry coding is not my strong point; at all. lol

[13-Apr-2010 19:26:27] PHP Warning: require_once(includes/modules/shipping_rates_in_cart.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/passions/public_html/zen-cart-v1.3.8a-full-fileset-12112007/includes/templates/mytemplate/templates/tpl_shopping_cart_default.php on line 151

[13-Apr-2010 19:26:27] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/modules/shipping_rates_in_cart.php' (include_path='.:/usr/lib/php

Do you know what all this means?

Do you know what I have to do to fix it?