Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / More Information box

More Information box

Locked

Views: 2,718

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
6 Jul 2006, 5:06 PM
#1
machoman avatar

machoman

New Zenner

Join Date:
Jul 2006
Posts:
34
Plugin Contributions:
0

More Information box

I did a search and could not find my answer (im new at this - so maybe I over looked it).

I would like to edit the titles of the links in the 'More information' box.

And how do I know what version I have? Here is the address http://www.machomanjack.com/cart

Thank you,
Ed
http://www.machomanjack.com

6 Jul 2006, 5:37 PM
#2
lawman avatar

lawman

Zen Follower

Join Date:
Mar 2006
Posts:
102
Plugin Contributions:
0

Re: More Information box

/includes/languages/english.php
change Line #143 : define('BOX_HEADING_MORE_INFORMATION', 'More Information'); to what you want it to say.

In your zen admin goto Tools | Developers Toolkit and you can search for all kinds of things to find where they are hiding.

6 Jul 2006, 6:00 PM
#3
machoman avatar

machoman

New Zenner

Join Date:
Jul 2006
Posts:
34
Plugin Contributions:
0

Re: More Information box

lawman:

/includes/languages/english.php
change Line #143 : define('BOX_HEADING_MORE_INFORMATION', 'More Information'); to what you want it to say.

In your zen admin goto Tools | Developers Toolkit and you can search for all kinds of things to find where they are hiding.

ok - here it what Im looking at -

// information box text in sideboxes/more_information.php - were TUTORIAL_
define('BOX_HEADING_MORE_INFORMATION', 'More Information');
define('BOX_INFORMATION_PAGE_1', 'Page 1');
define('BOX_INFORMATION_PAGE_2', 'Page 2');
define('BOX_INFORMATION_PAGE_3', 'Page 3');
define('BOX_INFORMATION_PAGE_4', 'Page 4');

If I want the Page 1 in the box to say Home, then I can just change the 'Page 1' to 'Home' ? Now I tried this earlier but had all kinds of problems. The index page stopped working - and when I undid the changes I made it still wouldnt work. This is the error I got **Parse error: syntax error, unexpected '%' in /home/rose4713/public_html/test/includes/languages/english.php on line 344
**

I had to reload Zen CArt all over and lost all my previous changes. Like I said - i'm a newbie at this for real!! Very hard to grasp what is going on here.

Ed

6 Jul 2006, 6:26 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: More Information box

All that probably happened was a typo in the language file and would not require a new install ... just fixing the language file ... :cry:

Perhaps next time to save you grief ... post your error and we can help you get it fixed again ... :yes:

6 Jul 2006, 7:02 PM
#5
machoman avatar

machoman

New Zenner

Join Date:
Jul 2006
Posts:
34
Plugin Contributions:
0

Re: More Information box

Ajeh:

All that probably happened was a typo in the language file and would not require a new install ... just fixing the language file ... :cry:

Perhaps next time to save you grief ... post your error and we can help you get it fixed again ... :yes:

Ok - I had the same problem again! How do I fix it?
http://www.machomanjack.com/test

Thanks,
Ed

6 Jul 2006, 7:06 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: More Information box

Would just need to see the exact error message and then the file referenced in the error message to find the typo ...

6 Jul 2006, 7:08 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: More Information box

Peek in the english.php and grab lines 330 to 340 and post them ...

6 Jul 2006, 8:47 PM
#8
lawman avatar

lawman

Zen Follower

Join Date:
Mar 2006
Posts:
102
Plugin Contributions:
0

Re: More Information box

:blush: sorry machoman... I just re-read your post and realized I didn't answer what you were asking.

6 Jul 2006, 9:01 PM
#9
machoman avatar

machoman

New Zenner

Join Date:
Jul 2006
Posts:
34
Plugin Contributions:
0

Re: More Information box

Ajeh:

Peek in the english.php and grab lines 330 to 340 and post them ...
Here is lines 330-345

define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid. Please check the number and try again.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s. If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.');

define('BOX_INFORMATION_GV', TEXT_GV_NAME . ' FAQ');
define('VOUCHER_BALANCE', TEXT_GV_NAME . ' Balance ');
define('BOX_HEADING_GIFT_VOUCHER', TEXT_GV_NAME . ' Account');
define('GV_FAQ', TEXT_GV_NAME . ' FAQ');
define('ERROR_REDEEMED_AMOUNT', 'Congratulations, you have redeemed ');
define('ERROR_NO_REDEEM_CODE', 'You did not enter a ' . TEXT_GV_REDEEM . '.');
define('ERROR_NO_INVALID_REDEEM_GV', 'Invalid ' . TEXT_GV_NAME . ' ' . TEXT_GV_REDEEM);
define('TABLE_HEADING_CREDIT', 'Credits Available');
define('GV_HAS_VOUCHERA', 'You have funds in your ' . TEXT_GV_NAME . ' Account. If you want <br />
                         you can send those funds by
                         <a class="pageResults" href="');define('GV_HAS_VOUCHERB',%20'"><strong>email</strong></a> to someone');
define('ENTRY_AMOUNT_CHECK_ERROR', 'You do not have enough funds to send this amount.');
define('BOX_SEND_TO_FRIEND', 'Send ' . TEXT_GV_NAME . ' ');
7 Jul 2006, 7:02 AM
#10
machoman avatar

machoman

New Zenner

Join Date:
Jul 2006
Posts:
34
Plugin Contributions:
0

Re: More Information box

I have also tried to load a new english.php. But this did not work, and Im still getting the same error code. If I make any changes to english.php i get this error message.

Ed

7 Jul 2006, 7:23 PM
#11
machoman avatar

machoman

New Zenner

Join Date:
Jul 2006
Posts:
34
Plugin Contributions:
0

Re: More Information box

I upgraded to v1.3.0.2 today. Maybe this will help fix some of the issues I have. Thanks for the help - I'm sure I'll be back with more questions.

Ed
http://www.machomanjack.com

7 Jul 2006, 9:52 PM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,829
Plugin Contributions:
17

Re: More Information box

Here is the error in your english.php file > define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid. Please check the number and try again.');

define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s. If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.');

define('BOX_INFORMATION_GV', TEXT_GV_NAME . ' FAQ');
define('VOUCHER_BALANCE', TEXT_GV_NAME . ' Balance ');
define('BOX_HEADING_GIFT_VOUCHER', TEXT_GV_NAME . ' Account');
define('GV_FAQ', TEXT_GV_NAME . ' FAQ');
define('ERROR_REDEEMED_AMOUNT', 'Congratulations, you have redeemed ');
define('ERROR_NO_REDEEM_CODE', 'You did not enter a ' . TEXT_GV_REDEEM . '.');
define('ERROR_NO_INVALID_REDEEM_GV', 'Invalid ' . TEXT_GV_NAME . ' ' . TEXT_GV_REDEEM);
define('TABLE_HEADING_CREDIT', 'Credits Available');
define('GV_HAS_VOUCHERA', 'You have funds in your ' . TEXT_GV_NAME . ' Account. If you want <br />
you can send those funds by
<a class="pageResults" href="');define('GV_HAS_VOUCHERB',%20'"><strong>email</strong></a> to someone');
define('ENTRY_AMOUNT_CHECK_ERROR', 'You do not have enough funds to send this amount.');
define('BOX_SEND_TO_FRIEND', 'Send ' . TEXT_GV_NAME . ' ');
Some editors will put in a %20 for space but php doesn't quite like it.

IF you are wanting a space, the line should probably read> define('GV_HAS_VOUCHERB', ' '"><strong>email</strong></a> to someone');
or...> define('GV_HAS_VOUCHERB', '$nbsp;'"><strong>email</strong></a> to someone');
if you want the space to not break (wrap).

7 Jul 2006, 10:08 PM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,829
Plugin Contributions:
17

Re: More Information box

disregard previous

Your problem is in two lines and they are > define('GV_HAS_VOUCHERA', 'You have funds in your ' . TEXT_GV_NAME . ' Account. If you want <br />

                     you can send those funds by
                     <a class="pageResults" href="');define('GV_HAS_VOUCHERB',%20'"><strong>email</strong></a> to someone');

The first define is broken in that it spans more than one line and is not complete.
The second define needs a carriage return in front of the define (that single line thing again).

For the life of me, I can't figure out where you're headed with this but would like to know.