Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I messed up my information boxes.


Guest

Recommended Posts

I was trying to change the name of the information boxes from "conditions" and "Shipping and returns" to "Legal notice" and "Store Policies". I thought I followed the instructions correctly but apparently not. This is my first experience with php so please be kind and speak in simple terms.

 

Here is the link to my test site:

 

http://64.21.161.99/shop/default.php

 

My files have been renamed "store_policies" and "legal_notice".

 

 

The code from the information.php file.

 

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => BOX_HEADING_INFORMATION

);

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="' . tep_href_link(FILENAME_STORE_POLICIES, '', 'NONSSL') . '">' . BOX_INFORMATION_STORE_POLICIES . '</a><br>' .

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

'<a href="' . tep_href_link(FILENAME_LEGAL_NOTICE, '', 'NONSSL') . '">' . BOX_INFORMATION_LEGAL_NOTICE. '</a><br>' .

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

);

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

 

 

And the code from the application_top.php file

 

// define the filenames used in the project

define('FILENAME_ACCOUNT', 'account.php');

define('FILENAME_ACCOUNT_EDIT', 'account_edit.php');

define('FILENAME_ACCOUNT_EDIT_PROCESS', 'account_edit_process.php');

define('FILENAME_ACCOUNT_HISTORY', 'account_history.php');

define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php');

define('FILENAME_ADDRESS_BOOK', 'address_book.php');

define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php');

define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php');

define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php');

define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php'); // This is the bottom of product_info.php (found in modules)

define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php');

define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php');

define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php');

define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php');

define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php');

define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php');

define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php');

define('FILENAME_CONTACT_US', 'contact_us.php');

define('FILENAME_LEGAL_NOTICE', 'legal_notice.php');

define('FILENAME_CREATE_ACCOUNT', 'create_account.php');

define('FILENAME_CREATE_ACCOUNT_PROCESS', 'create_account_process.php');

define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php');

define('FILENAME_DEFAULT', 'default.php');

define('FILENAME_DOWNLOAD', 'download.php');

define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php');

define('FILENAME_LOGIN', 'login.php');

define('FILENAME_LOGOFF', 'logoff.php');

define('FILENAME_NEW_PRODUCTS', 'new_products.php'); // This is the middle of default.php (found in modules)

define('FILENAME_PASSWORD_CRYPT', 'password_funcs.php');

define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php');

define('FILENAME_POPUP_IMAGE', 'popup_image.php');

define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php');

define('FILENAME_PRIVACY', 'privacy.php');

define('FILENAME_PRODUCT_INFO', 'product_info.php');

define('FILENAME_PRODUCT_LISTING', 'product_listing.php');

define('FILENAME_PRODUCT_NOTIFICATIONS', 'product_notifications.php');

define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php');

define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php');

define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php');

define('FILENAME_PRODUCTS_NEW', 'products_new.php');

define('FILENAME_REDIRECT', 'redirect.php');

define('FILENAME_REVIEWS', 'reviews.php');

define('FILENAME_STORE_POLICIES', 'store_policies.php');

define('FILENAME_SHOPPING_CART', 'shopping_cart.php');

define('FILENAME_SPECIALS', 'specials.php');

define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php');

define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); // This is the bottom of default.php (found in modules)

Link to comment
Share on other sites

you just need to add 2 defines to application_top.php:

 

define('BOX_INFORMATION_STORE_POLICIES','Store Policies');

define('BOX_INFORMATION_LEGAL_NOTICE','Legal Notice');

 

that will fix it

Link to comment
Share on other sites

  • 1 month later...

Okay, at least they are linking now but there is no info on one page and an error on the other. Here is the text from my files.

 

Store Policies:

 

 

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Store Policies');

define('HEADING_TITLE', 'Store Policies');

 

define('TEXT_INFORMATION', '

 

<p align="left"><b><span lang="en-us">Scrapper Gal is owned and operated by:</span></b></p>

 

<p align="left"><b>

 

<span lang="en-us">Renee L. Fink</span><br>

<span lang="en-us">RR 1 Box 324</span><br><span lang="en-us">Palisade, NE 

69040</span><br>(308) <span lang="en-us">285-3680</span><br>

<span lang="en-us">e-mail:  [email protected]</span><br> </font></b></p>

 

<u><b><span lang="en-us">Ordering Options</span></b></u><ul>

<li><span lang="en-us">You can order from Scrapper Gal by adding items to your

shopping cart and completing the checkout procedure.  </span></li>

<li><span lang="en-us">You may also phone an order to the phone number listed

above or print your shopping cart information and fax it to the same number. 

</span></li>

</ul>

<p><u><b><span lang="en-us">Payment Methods</span></b></u></p>

<ul>

<li><span lang="en-us">Scrapper Gal accept VISA,  Mastercard and Paypal. 

If you pay by credit card your card will not be charged until your order is

ready to ship.</span></li>

<li><span lang="en-us">Residents of Nebraska must pay applicable state sales

tax.</span></li>

</ul>

<p>

 

<br><u><b>Shipping Policy</b></u></p>

<ul>

<li>We offer a flat rate of $.99 shipping on all orders shipped in the U.S.</li>

<li>Actual postage will be charged on all Canadian and Overseas orders.</li>

<li><span lang="en-us">Most orders are shipped within 48 hours.  If we

anticipate a delay in shipping your order you will be notified via e-mail. 

</span> </li>

</ul>

<p><u><b><span lang="en-us">Re</span>turn Policy</b></u></p>

<ul>

<li>If you are not completely satisfied with your purchase, return your

unopened product within 15 days for a refund. Product must be in its original

packaging. There will be a 15% restocking fee on all returned merchandise.

Postage is not refundable.</li>

<li>If a product is damaged at the time of delivery, return it within 15 days.

We will exchange it for the same item or refund your money including all

postage paid by you. </li>

<li>Sales, clearance and discontinued items cannot be returned. All sales are

final.</ul>

<p><u><b><span lang="en-us">Backorders and Out of Stock Items</span></b></u></p>

<ul>

<li><span lang="en-us">Scrapper Gal strives to maintain an adequate supply of

all items on our website.  </span>However, out of stock conditions do

exist occasionally. If an item is out of stock, it will be removed from your

order and the order shipped. We do not backorder. If you want to notified if a

product is out of stock, please let us know in the comments section of your

order.</li>

</ul>

 

 

 

');

?>

 

 

 

Legal Notices

 

<?php

/*

$Id: conditions.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

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

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

 

define('TEXT_INFORMATION', '<p><font face="Arial, Helvetica, sans-serif">LEGAL NOTICE</font> </p>

<p><font face="Arial, Helvetica, sans-serif">The images of products displayed on

this website are copyrighted and trademarked by their respective owners and are

displayed with the express permission of the copyright and trademark owners. Any

reproduction without express permission from the copyright or trademark owner is

a violation of law and is prohibited. This site or any portion of this site may

not be reproduced, duplicated, or copied for any purpose without express written

consent from <span lang="en-us">Scrapper Gal</span>. Scrap<span lang="en-us">per

Gal</span> and the developers of this site disclaim all liability related to the

unauthorized copying, reproduction or other misuse of the images and products

displayed.</font></p>

<p><font face="Arial, Helvetica, sans-serif">DISCLAIMER OF WARRANTIES and

LIMITATION OF LIABILITY</font></p>

<p><font face="Arial, Helvetica, sans-serif">Although we carry many different

manufacturer's products, we do not directly represent any manufacturer and act

only as a reseller of the manufacturer's products. We consider all the products

we sell to be of the highest quality and safe for your scrapbook, but we must

note that this is per the manufacturers specifications only. Scrap<span lang="en-us">per

Gal</span> makes no representations or warranties of any kind, express or

implies, as to the quality or <span lang="en-us">archival quality</span> of any

products shown on our website. </font></p>

<p><font face="Arial, Helvetica, sans-serif">Under no circumstances, including

negligence, shall Scrap<span lang="en-us">per Gal</span> be responsible for any

damages or loss that result from the use of, or inability to use any of the

products sold or distributed by Scrap<span lang="en-us">per Gal.  </span> If

any legal action arises out of copyright infringement, Scrap<span lang="en-us">per

Gal </span>shall be indemnified and held harmless of any and all costs or

damages that you or Scrap<span lang="en-us">per Gal</span> incurs.<br>

 </font></p>

</font>

 

<p align="left"> </p>

on.');

?>

Link to comment
Share on other sites

ok, i went to your link and clicked on 'legal notices' and got a parse error

 

at the bottom of your listing you have

 

<p align="left"> </p>

on.');

?>

 

what is that middle line????

 

as for store policies, that comes up as a blank page, which usually indicates you have an includes or requires statement somewhere calling a non-existent file or the syntax of the statement could be wrong... 8)

Link to comment
Share on other sites

Thank you for your response. That all sounds great but it is all Greek to me as I don't even have a clue what to do to correct it. Any more help...(or perhaps a translation) ;) Thanks!

Link to comment
Share on other sites

Php is kinda picky when it comes to single quote marks...Go through all of the text you are adding and escape any single quotes.

 

What that "translates to is: You can't display can't without escaping the single quote with a backslash.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...