Hi Zen gurus!
Just wondering how I get rid of the words "best way" in reference to shipping on various pages including the invoice.
I am using the price per item shipping method.
Thanks!
Hi Zen gurus!
Just wondering how I get rid of the words "best way" in reference to shipping on various pages including the invoice.
I am using the price per item shipping method.
Thanks!
Check your language files and use your templates and overrides for:
/includes/languages/english/modules/shipping/item.php
and copy to:
/includes/languages/english/modules/shipping/your_template_dir/item.php
for your customizations ...
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!
sorry should have expanded on that somewhat...
(and added "speak slowly and use little words as I'm new to this" ;) )
As I am only using one type of shipping I don't want to offer the choice of one option "per item (best way)", and I don't want it to say "best way" on the invoice, or on the shopping cart process, or anywhere.
I just want it to say: "shipping" - meaning "here it is, deal with it. thats the shipping cost for these items."
It comes up with a radio button, almost like an attribute, on the shipping details page (amongst others), even when you change the define code in "item.php" to '' rather than 'best way'
How good are you at editing code?
In the shipping class, there is a section where the parens are hard coded:
You can set the Text in the language file to be blank and then remove the parens in the code so that they do not show ...PHP Code:
if (isset($quotes['methods'][$i]['cost'])){
$rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'],
'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')',
'cost' => $quotes['methods'][$i]['cost'],
'module' => $quotes['id']
);
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!
Hmmm... have done my fair share of editing whilst setting this up, but had done none before. A lot of trial and error... ;)
So are you suggesting I can remove everything you've shown in red in that particular section, and my cart won't get confused and freak out? :)
I have set the text in the language file (item.php) to be blank but it doesn't seem to have made any difference...?
No, what shows in red is just forum PHP syntax highlighting.
RemovePHP Code:
'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')',
' (' .
and
. ')'
PHP Code:
'title' => $quotes['module'] . $quotes['methods'][$i]['title'],
Hmmm thanks for the help, but... well... that seems to make no difference. The checkout process and shipping estimator, etc. still says per unit best way everywhere :)
Am I missing something?
Sorry to be a pain...
Now change the language file for the shipping module and change:
'Best Way'
to just be:
''
the two single quotes will produce nothing where you were seeing the Best Way ...
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!
You should just need to change it in the language file for:
The original file is in:PHP Code:
define('MODULE_SHIPPING_ITEM_TEXT_WAY', 'Best Way');
/includes/languages/english/modules/shipping/item.php
Your template and override file should be in:
/includes/languages/english/modules/shipping/your_template_dir/item.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!
Bookmarks