Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems when I change My shipping info and privacy notice


becky

Recommended Posts

Hi,

 

I have been having problems setting up my info boxes documents. I tried to change my shipping and return policies but I can only get a few paragraphs of text in. I shortened each section from my old site and now it appears but the shipping section repeats on the page. Could someone please look at my code and see why it would repeat?

 

<?php

/*

$Id: shipping.php,v 1.3 2001/12/20 14:14:15 dgw_ Exp $

 

The Exchange Project - Community Made Shopping!

http://www.theexchangeproject.org

 

Copyright © 2000,2001 The Exchange Project

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', 'Shipping & Returns');

 

define('TEXT_INFORMATION', '<font SIZE="2"><p><font color="#306898">Shipping </font></p>

<p><font color="#306898">All shipping charges for destinations within the 48

contiguous United States, Alaska, Hawaii, Puerto Rico, US territories are

automatically calculated in the Pacific Outpost payment processing system.

Shipping is calculated by weight.</font></p>

<p><font color="#306898">Shipping Options We offer various shipping options to

our customers and use several courier services to deliver our products. These

include Federal Express, United Parcel Service and the United States Postal

Service.</font></p><font SIZE="2"><p><font color="#306898">Shipping </font></p>

<p><font color="#306898">All shipping charges for destinations within the 48

contiguous United States, Alaska, Hawaii, Puerto Rico, US territories are

automatically calculated in the Pacific Outpost payment processing system.

Shipping is calculated by weight.</font></p>

<p><font color="#306898">Shipping Options We offer various shipping options to

our customers and use several courier services to deliver our products. These

include Federal Express, United Parcel Service and the United States Postal

Service.</font></p>

<p><font color="#306898">Delivery times vary from 2 to 10 business days for in

stock products, depending on your location. Out of stock products could take

from 5 to 20 business days. </font></p>

<p><font color="#306898">We want you to be completely satisfied with your online

purchase. If for any reason you are not, please contact us. Products returned without an RMA number will be refused.</font></p>

<p><font color="#306898">The following information will be required to process

your request:  * Name * Order ID - Invoice Number * Item Number *

Reason for return</font></p>');

?>

 

QUESTION #2

I found this code on a forum

 

$privacy_txt = implode ('', file ('http://<your domain>/privacy_body.txt'));

define('TEXT_INFORMATION', $privacy_txt);

 

 

So I copied my old sites html privacy policy and made a privacy.txt doc and FTP it to my server. It is sitting at mydomain.com/privacy.txt

 

I then changed my privacy at catalog/catalog/includes/languages/english/privacy.php to this

 

<?php

/*

$Id: privacy.php,v 1.3 2001/12/20 14:14:15 dgw_ Exp $

 

The Exchange Project - Community Made Shopping!

http://www.theexchangeproject.org

 

Copyright © 2000,2001 The Exchange Project

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Privacy Notice');

define('HEADING_TITLE', 'Privacy Notice');

 

$privacy_txt = implode ('', file ('http://<MYDOMAIN.com>/privacy_body.txt'));

define('TEXT_INFORMATION', $privacy_txt);');?>

 

 

But this doesn't work either.

 

Please tell me if you spot something wrong.

 

Thank You,

Becky

Link to comment
Share on other sites

Hi Becky:

 

I'm brand new to this, and I was having similar problems. I put my HTML between the single quotes, just like you did, and found that I was getting errors. Fortunately, there were php debug notes at the top of the page (new feature in 2.2?) telling me what lines to look at. It turns out that I had a few single quote characters in my HTML that messed up the parsing of the file. So, after a couple of tries, I was able to weed those suckers out (inserted a immediately in front of them), and it worked. I don't see any single quotes in your HTML, but maybe there are other PHP operators in there that are causing problems.

 

BTW, instead of setting the text attributes with <font> tags, I used class attributes in <span> tags and existing css styles. Worked pretty well.

 

Don't know if this helps, but good luck.

 

Jason

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...