Post by cruiz » Sat Jan 08, 2011 4:13 pm

I managed to rename Free shipping description to say Free Shipping (5-8 business days) in...
catalog/language/english/shipping/free.php
e.g.
Free Shipping
FREE Standard Shipping (5-8 business days)

I'm trying to do the same with Flat shipping to say for description 'Standard Shipping (3-5 business days) in...
catalog/language/english/shipping/flat.php
e.g.
Flat Rate
Standard Shipping (3-5 business days)

but when I change the flat.php file it only changes the title but not the description...is there another file somewhere for this???

New member

Posts

Joined
Thu Dec 09, 2010 4:11 am

Post by Johnathan » Sat Jan 08, 2011 11:49 pm

flat.php should have two lines of text, the title and the description:

Code: Select all

$_['text_title']       = 'Flat Rate';
$_['text_description'] = 'Flat Shipping Rate'; 
You need to change both.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by cruiz » Sun Jan 09, 2011 1:20 am

Johnathan wrote:flat.php should have two lines of text, the title and the description:

Code: Select all

$_['text_title']       = 'Flat Rate';
$_['text_description'] = 'Flat Shipping Rate'; 
You need to change both.

I did that....when I change both the title and description change... e.g.

Standard Shipping (3-5 business days) <-- title
Standard Shipping (3-5 business days) <-- second line right under title

but when I change just
$_['text_description'] = 'Flat Shipping Rate';

nothing happens ??? ???

New member

Posts

Joined
Thu Dec 09, 2010 4:11 am

Post by Johnathan » Sun Jan 09, 2011 9:17 am

Congratulations! You've found a bug in 1.4.9.3. ;D The Flat Rate shipping file is pulling the title and description from the text_title wording. Here's the fix:

IN:

Code: Select all

/catalog/model/shipping/flat.php
REPLACE:

Code: Select all

$quote_data['flat'] = array(
    'id'           => 'flat.flat',
    'title'        => $this->language->get('text_title'), 
WITH:

Code: Select all

$quote_data['flat'] = array(
    'id'           => 'flat.flat',
    'title'        => $this->language->get('text_description'), 

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Johnathan » Sun Jan 09, 2011 9:22 am

I guess my congratulations were premature. Someone else beat you to it:

http://forum.opencart.com/viewtopic.php ... 20#p121645

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 16 guests