Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change the link text in the information box??


chfields

Recommended Posts

I have changed the Navbar title and the Header title but can't change the text itself. I am trying to change conditions of use to Why we use Paypal. I tried editing in catalog/includes/boxes but it's not working. Tried to change BOX_INFORMATION_CONDITIONS to BOX_INFORMATION_ WHY WE USE PAYPAL what am I doing wrong???

Link to comment
Share on other sites

If you change the define in catalog/includes/languages/english.php (around line 133) from

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

to

define('BOX_INFORMATION_CONDITIONS', 'Why we use PayPal');

Your text in the Information box should change accordingly

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

This is what I have in the includes/boxes

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS. '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

 

new infoBox($info_box_contents);

 

This is what I have in includes/language/(language)/conditions.php

 

 

define('NAVBAR_TITLE', 'Why we use Paypal');

define('HEADING_TITLE', 'Why we use Paypal');

 

define('TEXT_INFORMATION', '<p><strong><font color="#000066">Who Is Paypal?</font></strong> </p> etc....

Link to comment
Share on other sites

If I change this <a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS. '</a><br>' .

to this BOX_INFORMATION_WHY WE USE PAYPAL I get parse error saying expecting")" And the whole box is gone

If I change it to BOX_INFORMATION_WHY_WE_USE_PAYPAL It shows BOX_INFORMATION_WHY_WE_USE_PAYPAL in the box.

This is driving me nuts

Link to comment
Share on other sites

Are you replacing the "Conditions of Use" with "Why we use PayPal" :?:

 

If so, the only thing you need to change is what I pointed out in my previous post.

 

Your file will still be called conditions, but the title in the Information box will now read "Why we use PayPal" and you enter the text that you want about why you use PayPal in the catalog/includes/languages/english/conditions.php file.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

I already have the text put in. I just can't find where the "conditions for use" text is to edit. If you look at my previous posts it shows what those files have in them. You can see that there is no text saying conditions for use. Am I looking in the wrong place?

Link to comment
Share on other sites

Assuming that you are just going to change the item in the Information box that says Conditions of Use in the stock, unmodified osC install (i.e.: you are not adding an item, you are just changing "Conditions of Use" to read "Who Is PayPal" and then have the page that link goes to explain about PayPal and why you use it).

 

1) in catalog/includes/languages/english.php (around line 133), change

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

to

define('BOX_INFORMATION_CONDITIONS', 'Who is PayPal');

2) in catalog/includes/languages/english/conditions.php (around line 13), change

define('NAVBAR_TITLE', 'Conditions of Use');

define('HEADING_TITLE', 'Conditions of Use');



define('TEXT_INFORMATION', 'Put here your conditions of use');

to

define('NAVBAR_TITLE', 'Who is PayPal');

define('HEADING_TITLE', 'Who is PayPal');



define('TEXT_INFORMATION', 'Whatever it is you want to say about why you use PayPal');

This will change everything that previously related to "Conditions of Use" to "Who is PayPal". Link in information box, breadcrumb trail, page title and whatever text you wish to put in about PayPal.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...