Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing text on Privacy.PHP


Guest

Recommended Posts

Posted

Where is <?php echo TEXT_INFORMATION; ?>

 

The text shows up as " Insert your privacy policy here... etc. etc"

 

TIA

Posted
Where is <?php echo TEXT_INFORMATION; ?>

 

The text shows up as " Insert your privacy policy here... etc. etc"

 

TIA

Hi Marc,

 

The file is in catalog/includes/languages/english/privacy.php

 

When you open the file delete only the sentence 'Put here your Privacy Notice information. ' leaving only the two ' ' then paste your text between the ' ', save and upload via your ftp program.

 

If you have other languages on your site make sure to do it in each of there respective files.

 

Kind Regards,

Michelle.

Posted
Hi Marc,

 

The file is in catalog/includes/languages/english/privacy.php

 

When you open the file delete only the sentence 'Put here your Privacy Notice information. ' leaving only the two ' ' then paste your text between the ' ', save and upload via your ftp program.

 

If you have other languages on your site make sure to do it in each of there respective files.

 

Kind Regards,

Michelle.

 

EVERYTIME I change a pagein ROOT or ADD a page in ROOT...it works fine...as soon as I copy that page over to the english folder it @#$%'s up! this is killing me!

 

When I create a new page, eg. Aboutus.php and save it to root...do I also have to copy this page to my /english folde that appears to have identical pages in it?

 

thanks

Posted
EVERYTIME I change a pagein ROOT or ADD a page in ROOT...it works fine...as soon as I copy that page over to the english folder it @#$%'s up! this is killing me!

 

When I create a new page, eg. Aboutus.php and save it to root...do I also have to copy this page to my /english folde that appears to have identical pages in it?

 

thanks

Hi again Marc,

 

I'm a bit confused:

 

1. How did you edit this file before?

 

2. What do you mean by "ROOT"?

 

3. Do you mean the public_html folder?

 

If you have another set of files in your root folder maybe you are confusing the direction of the www to the one in your sites catalog folders.

 

PM me your answer and your site address.

 

Kind Regards,

Michelle.

Posted

HI, I have a similar problem, have read your postings, but am still unsure what to do...

When I click on the Information box for the Privacy Notice, I get a url line that reads:

... /FILENAME_PAGES?page=privacy

 

and a web page that reads:

Not Found

The requested URL /catalog/FILENAME_PAGES was not found on this server.

 

Apache/ Server at ... Port 80

 

~

My new privacy file is in the

catalog/includes/languages/english

 

However there is also an old one in

/catalog/

 

Please...what am I doing wrong here, please?

Note, I have a lot of languages installed, including Thai, but few problems. Now just polishing things

Many many thanks! :lol:

Posted
HI, I have a similar problem, have read your postings, but am still unsure what to do...

When I click on the Information box for the Privacy Notice, I get a url line that reads:

... /FILENAME_PAGES?page=privacy

 

and a web page that reads:

Not Found

The requested URL /catalog/FILENAME_PAGES was not found on this server.

 

Apache/ Server at ... Port 80

 

~

My new privacy file is in the

catalog/includes/languages/english

 

However there is also an old one in

/catalog/

 

Please...what am I doing wrong here, please?

Note, I have a lot of languages installed, including Thai, but few problems. Now just polishing things

Many many thanks! :lol:

Hi CPRG,

 

What is your site address? So I can take a look at it.

 

Kind Regards,

Michelle.

Posted
Hi again Marc,

 

I'm a bit confused:

 

1. How did you edit this file before?

 

2. What do you mean by "ROOT"?

 

3. Do you mean the public_html folder?

 

If you have another set of files in your root folder maybe you are confusing the direction of the www to the one in your sites catalog folders.

 

PM me your answer and your site address.

 

Kind Regards,

Michelle.

 

Michelle,

 

Here's a play by play as to what EXACTLY I did last night -

 

I have added the follwoing pages - ABOUT | CONTACT | FRAUD PREVENTION

 

I initially created the about.php by copying the PRIVACY.PHP and renaming it "aboutus.php".

 

Searching the code in this new aboutus.php page, I found first <TD> tag below the first <table> tag and inserted, as a test," askdfj akjbf aksbf".

 

This "test" text showed up when I reposted it and so I proceeded to replace it with "about us" text.

 

I repeated this process and created the pages above (contact, fruad etc.etc.)

 

Each time I saved these new pages into my catalogue folder or "top level" in my instance since, no subdomian in use.

 

I DID NOT save them to any /includes/english. I added links to these on the bottom of my index page.

 

Everything appeared to work fine (navigation wise), I was able to click on the links and it would render these pages just fine.

 

THEN I edited the specials.php page. NOT altering any pre-existing code - just insterting text after the first <td> tag - (did usual check to make sure it was the correct tag within body of page)

 

I then uploaded this to the catalogue and it worked fine.

 

I then travelled to this forum to check a previous post and read (for the 3rd time) the following (summarized):

 

"When you create a new page/edit the code of an existing page, you should save it to the catalog folder AND the english folder AND any other language folders you have"

 

Soooooo, this being the third time I've read it I thought I should perhaps take this advice.

 

I proceded to copy the new and "currently working" page of specials.php to my inlcudes/english folder (I only have two languages - english and spanish)

 

I went to reload the page and !BLAM! - FATAL ERROR - went over to my new aboutus.php and !BLAM! FATAL ERROR.

 

I will now have to "back out" all these changes and begin again....remember...all of the above page additions were working fine (appearance and navigation wise) BEFORE I copied anything to the includes/english folder.

 

 

 

 

When I say Root I meant the /catalouge folder where OSC is coming form...It happens to be the only thing installed in this hosting account and hence is in what i would call the "top level" or root level. potato - potatoe

 

when I copy it into my /english folder I get an error:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/content/t/h/e/theijacket/html/includes/functions/database.php:13) in /home/content/t/h/e/theijacket/html/includes/functions/database.php on line 13

Posted

Let's use the English files as an example here, just duplicate for any other languages installed.

 

Upload a copy of the original files that came bundled with your osC to their default location.

 

Find your includes/languages/english directory. Open the shipping.php up and edit the following information that is in bold/blue...

 

define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.');

 

Save the modified file in it's original location (includes/languages/english directory). DO NOT UPLOAD TO ANY OTHER LOCATION.

 

Go click the appropriate link in your cart and see if that does the trick. If it does, then repeat for the conditions.php and the privacy.php

If it doesn't, then it is possible a contrib mod you added may be coming into play here.

 

Since the original configuration works, this takes you all the way back to default and then steps it along. It's what I do when something goes "ka-BOOOM" on me.

Posted

"Save the modified file in it's original location (includes/languages/english directory). DO NOT UPLOAD TO ANY OTHER LOCATION."

 

SO, DO NOT save the changes in /catalog? ONLY make the changes in the /includes/languages/english directory?

 

just want to be clear on this..thanks!

Posted
SO, DO NOT save the changes in /catalog? ONLY make the changes in the /includes/languages/english directory?

Exactly! The only file you would want to change at this point is the includes/languages/english/shipping.php file.

 

Once you get that uploaded, it should appear when you click the "shipping & returns" link in the bottom left box (default postion).

 

The vast majority of the files in the root folder/directory call upon files in other directories, depending on what it is they are for. The shipping.php in the root has the following line in it..

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING);

This tells root/shipping.php to go get includes/languages/english/shipping.php and POP that puppy in the page.

 

I came across this by trial and error. Seems I forgot to read the really important part of the default index page information. The part that says that I needed to edit the language index, not the main one. Surprize! had the world's most messed up PHP tossed salad ever made :D. When I put the original back in place, that's when I noticed that little "require" line up at the top. Deleted that "required" file and came up with a whole new version of salad.

Posted

Marc has double posted this query in this same forum. Double posting is against forum rules - and wastes people's time.

 

Vger

Posted
Marc has double posted this query in this same forum. Double posting is against forum rules - and wastes people's time.

 

Vger

 

my mistake.... sorry...

 

won't happen again

 

:blush:

Archived

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

×
×
  • Create New...