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?
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?
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 ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Note: you may also wish to change the:
TEXT_PRODUCT_WEIGHT_UNIT
Which shows as the lbs after that weight ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I found where to take out the lbs and it worked.
but i cant find TEXT_TOTAL_WEIGHT
anywhere
Developer's Tool Kit says:
/includes/languages/english/popup_shipping_estimator.php
Line #23 : define('TEXT_TOTAL_WEIGHT', ' Weight: ');Copy those files to your templates and overrides directories if you have not already:/includes/languages/english/shopping_cart.php
Line #25 : define('TEXT_TOTAL_WEIGHT', ' Weight: ');
And change what the defines read .../includes/languages/english/your_template_dir/popup_shipping_estimator.php
/includes/languages/english/your_template_dir/shopping_cart.php
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
any ideas?
can anybody help?
I gave you the files and the defines to change ...
Did you try to change them?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
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
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:
To read:PHP Code:
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;
You will need to adjust the Shipping estimator in a similar manner if you are using that ...PHP Code:
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;
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks