Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Text on the shopping cart

Text on the shopping cart

Locked

Views: 2,240

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
1 Apr 2007, 11:02 PM
#1
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Text on the shopping cart

Total Items: 1 Weight: 19.5lbs Amount: $189.99

above is the way my shopping cart displays. the weight is actually the shipping cost, is there any way to change the word weight to shipping price and take out the lbs?

1 Apr 2007, 11:58 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text on the shopping cart

The text is built from the constant:
TEXT_TOTAL_WEIGHT

This is in the main language file ...

You will want to copy that to your templates and overrides directory, if you have not already done it before for other changes, and you can change the define statement for this ...

NOTE: providing you do not reference weight on shipping anywhere you can change this to anything you like ...

A search in the Tools ... Developer's Tool Kit ... in the bottom input box for:
TEXT_TOTAL_WEIGHT

Select Catalog and hit Search ... will show you all files that would be effected by this change ... :smile:

1 Apr 2007, 11:59 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text on the shopping cart

Note: you may also wish to change the:
TEXT_PRODUCT_WEIGHT_UNIT

Which shows as the lbs after that weight ... :cool:

2 Apr 2007, 1:19 AM
#4
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Text on the shopping cart

I found where to take out the lbs and it worked.
but i cant find TEXT_TOTAL_WEIGHT
anywhere

2 Apr 2007, 1:44 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text on the shopping cart

Developer's Tool Kit says:

/includes/languages/english/popup_shipping_estimator.php
Line #23 : define('TEXT_TOTAL_WEIGHT', '  Weight: ');

/includes/languages/english/shopping_cart.php
Line #25 : define('TEXT_TOTAL_WEIGHT', '  Weight: ');

Copy those files to your templates and overrides directories if you have not already:

/includes/languages/english/your_template_dir/popup_shipping_estimator.php
/includes/languages/english/your_template_dir/shopping_cart.php

And change what the defines read ...

2 Apr 2007, 5:51 PM
#6
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Text on the shopping cart

any ideas?

3 Apr 2007, 1:36 AM
#7
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Text on the shopping cart

can anybody help?

3 Apr 2007, 1:43 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text on the shopping cart

I gave you the files and the defines to change ...

Did you try to change them? :unsure:

3 Apr 2007, 1:49 AM
#9
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Text on the shopping cart

ok i finally got it now. but it looks like this
Total Items: 1 Shipping Price: $ 19.5 + Item Price: $349.99

anyway to have is display $19.50 instead of $19.5

3 Apr 2007, 1:56 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text on the shopping cart

You will need to touch the code that builds that ...

There is no override for this so save the original and your changes ... edit the file:
/includes/modules/pages/shopping_cart/header_php.php

Change line 42 - 44 from:

  case (SHOW_TOTALS_IN_CART == '1'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
  break;

To read:

  case (SHOW_TOTALS_IN_CART == '1'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $currencies->format($shipping_weight) . TEXT_PRODUCT_WEIGHT_UNIT . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
  break;

You will need to adjust the Shipping estimator in a similar manner if you are using that ...

3 Apr 2007, 2:08 AM
#11
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Text on the shopping cart

Total Items: 3 Shipping Price: $0.00 + Item Price: $649.97

it doesn't calculate now

whats your email for paypal?

3 Apr 2007, 2:09 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Text on the shopping cart

How about drop me a PM and let's see what we can do to fix you up ...

3 Apr 2007, 2:15 AM
#13
collinntspb avatar

collinntspb

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Text on the shopping cart

check your pm