Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Front page text


lbhaven

Recommended Posts

Posted

I'm trying to edit the text on my main page.

 

I tried replacing the text that was currently there with some html edited text.

 

 

 

When I made the change it comes up with errors like it doesn't like the html text.

 

Error on Line 13.....

 

 

 

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', <html>

 

 

<head>

 

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

 

<title>New Page 1</title>

 

<style>

 

<!--

 

p.MsoNormal

 

{mso-style-parent:"";

 

margin-bottom:.0001pt;

 

font-size:12.0pt;

 

font-family:"Times New Roman";

 

margin-left:0cm; margin-right:0cm; margin-top:0cm}

 

-->

 

</style>

 

</head>

 

 

<body>

 

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial">Welcome to <b>Longboard Haven!</b>

 

Toronto's premiere on-line Longboard Equipment retailer, supplying Canadians

 

nationwide with quality, high performance parts. </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> Specializing in niche

 

skateboarding equipment, our stock list is full of products built for speed,

 

precision and performance. You're sure to find just what you're looking for,

 

whether it be for the parks, the hills, or anything in between.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> We are constantly bringing in

 

new products here at Longboard Haven. If you're wondering what's in store for

 

the next little while, feel free to contact us and ask. Also, if there is

 

anything in particular that you're looking for, but can't find on the website,

 

please, <b>don't be shy</b>. We're happy to special-order products in on request

 

with a nominal %25 deposit. If you're looking for a product or line of products

 

by a specific company? Please, browse our list of Manufacturers on the left hand

 

side of the screen to view all their available products. If you are interested

 

in any products listed on our site as "Out of Stock", feel free to ask us, there

 

just may be one or two kicking around waiting for someone just like you.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> Also, in a further effort to

 

make longboarding for Canadians just a little bit sweeter, for all orders over

 

$250.00 (before tax) we're offering <b>FREE</b> shipping and a Full Year's

 

subscription to <b>Concrete Wave Magazine</b>.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> We here at Longboard Haven are

 

dedicated to making the learning curve in this sport as smooth as possible,

 

simply by making information about our products readily available to our

 

customers. If you are unsure as to <i>why </i>certain wheels perform better in

 

certain situations, or <i>how </i>a certain truck can have such dynamic

 

differences over another, again, <b>don't be shy</b>. We're more than happy to

 

answer ANY questions regarding the performance and compatibility of our

 

products. If you're looking for the perfect; cruise, speed, carve, pump, or park

 

board, we can dial in the ride feel that you're after.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial">    

 

<a style="color: blue; text-decoration: underline; text-underline: single" href="mailto:[email protected]">

 

[email protected]</a></span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<span style="font-size: 10.0pt; font-family: Arial">( NOTE! For our local

 

shoppers, feel free to arrange a "Local Pickup" to spare shipping charges. )</span></body></html>

');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New at Longboard Haven?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted

You need to take out the tags above and including the <body> tag, styles are set in the stylesheet.css file in the includes directory, and take out the </body></html> tags at the bottom of it for the define('TEXT_MAIN' statement. You should use the define statement for straight text with minimal HTML tags and use the style sheet to handle formating as much as possible if you can.

Posted

I'm not exactly sure how to do this.

 

Which lines do I need to remove / replace?

 

 

 

What do I need to change to the stylesheet page?

Posted

Delete:

 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<style>
<!--
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0cm; margin-right:0cm; margin-top:0cm}
-->
</style>
</head>
<body>

 

And delete:

 

</body></html>

 

at the bottom of the text you inserted.

 

Also, I would highly recommend reading the Wiki and Knowledge Base (see my signature below for links) as they will give you a very good understanding of osCommerce. Then search the forums for help, most likely someone has definitely had the same problem in the past, then post a question. Someone will usually always answer. Not trying to be mean, just trying to help you out in obtaining a better understanding of osCommerce. Also, if you are unfamiliar with PHP or a PHP command you can always search at php.net for help there.

 

Hope this helps.

  • 2 weeks later...
Posted

Still getting an error

 

 

Line 15

 

 

 

 

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN',

 

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

 

<title>New Page 1</title>

 

<style>

 

<!--

 

p.MsoNormal

 

{mso-style-parent:"";

 

margin-bottom:.0001pt;

 

font-size:12.0pt;

 

font-family:"Times New Roman";

 

margin-left:0cm; margin-right:0cm; margin-top:0cm}

 

-->

 

</style>

 

</head>

 

 

<body>

 

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial">Welcome to <b>Longboard Haven!</b>

 

Toronto's premiere on-line Longboard Equipment retailer, supplying Canadians

 

nationwide with quality, high performance parts. </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> Specializing in niche

 

skateboarding equipment, our stock list is full of products built for speed,

 

precision and performance. You're sure to find just what you're looking for,

 

whether it be for the parks, the hills, or anything in between.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> We are constantly bringing in

 

new products here at Longboard Haven. If you're wondering what's in store for

 

the next little while, feel free to contact us and ask. Also, if there is

 

anything in particular that you're looking for, but can't find on the website,

 

please, <b>don't be shy</b>. We're happy to special-order products in on request

 

with a nominal %25 deposit. If you're looking for a product or line of products

 

by a specific company? Please, browse our list of Manufacturers on the left hand

 

side of the screen to view all their available products. If you are interested

 

in any products listed on our site as "Out of Stock", feel free to ask us, there

 

just may be one or two kicking around waiting for someone just like you.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> Also, in a further effort to

 

make longboarding for Canadians just a little bit sweeter, for all orders over

 

$250.00 (before tax) we're offering <b>FREE</b> shipping and a Full Year's

 

subscription to <b>Concrete Wave Magazine</b>.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> We here at Longboard Haven are

 

dedicated to making the learning curve in this sport as smooth as possible,

 

simply by making information about our products readily available to our

 

customers. If you are unsure as to <i>why </i>certain wheels perform better in

 

certain situations, or <i>how </i>a certain truck can have such dynamic

 

differences over another, again, <b>don't be shy</b>. We're more than happy to

 

answer ANY questions regarding the performance and compatibility of our

 

products. If you're looking for the perfect; cruise, speed, carve, pump, or park

 

board, we can dial in the ride feel that you're after.</span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial">    

 

<a style="color: blue; text-decoration: underline; text-underline: single" href="mailto:[email protected]">

 

[email protected]</a></span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<p class="MsoNormal" style="text-autospace: none">

 

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

 

<span style="font-size: 10.0pt; font-family: Arial">( NOTE! For our local

 

shoppers, feel free to arrange a "Local Pickup" to spare shipping charges. )</span>

');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New at Longboard Haven?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted

You still need to do some deleting :).

 

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<style>
<!--
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0cm; margin-right:0cm; margin-top:0cm}
-->
</style>
</head>
<body>

 

All needs to come out. Since osCommerce builds the page you do not need to redefine your title or the meta tags. Also the body tag is already included when osCommerce builds the page. You should move the style definition (p.MsoNormal) to your stylesheet.css file.

 

The proper syntax for the line of PHP you are trying to edit is:

 

define('MAIN_TEXT', 'Put Your Text Here');

 

Notice the beginning and ending single quotes around Put Your Text Here. If you have single quotes anywhere else in the text you need to escape them by doing this:

 

\'

 

so for example if you have

 

define('MAIN_TEXT', 'This is the greatest site. It\'s the best place to buy from.');

 

See how the single quote has been escaped out.

 

Hope that helps.

Posted
Still getting an error

Line 15

You can do this. Work it out :)

<?php
/*
$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
[url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

define('TEXT_MAIN',[s]<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>New Page 1</title>

<style>

<!--

p.MsoNormal

{mso-style-parent:"";

margin-bottom:.0001pt;

font-size:12.0pt;

font-family:"Times New Roman";

margin-left:0cm; margin-right:0cm; margin-top:0cm}

-->

</style>

</head> 
<body> 
<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial">[/s]Welcome to <b>Longboard Haven!</b> Toronto[color="#FF0000"][b]\[/b][/color]'s premiere on-line Longboard Equipment retailer, supplying Canadians nationwide with quality, high performance parts.[s] </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> [/s] 
<p>Specializing in niche skateboarding equipment, our stock list is full of products built for speed, precision and performance. You[color="#FF0000"][b]\[/b][/color]'re sure to find just what you're looking for, whether it be for the parks, the hills, or anything in between.[s]</span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> [/s]
<p>We are constantly bringing in new products here at Longboard Haven. If you[color="#FF0000"][b]\[/b][/color]'re wondering what[color="#FF0000"][b]\[/b][/color]'s in store for the next little while, feel free to contact us and ask. Also, if there is anything in particular that you[color="#FF0000"][b]\[/b][/color]'re looking for, but can[color="#FF0000"][b]\[/b][/color]'t find on the website, please, <b>don't be shy</b>. We[color="#FF0000"][b]\[/b][/color]'re happy to special-order products in on request with a nominal %25 deposit. If you[color="#FF0000"][b]\[/b][/color]'re looking for a product or line of products by a specific company? Please, browse our list of Manufacturers on the left hand side of the screen to view all their available products. If you are interested in any products listed on our site as "Out of Stock", feel free to ask us, there just may be one or two kicking around waiting for someone just like you.[s]</span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> [/s]
<p>Also, in a further effort to make longboarding for Canadians just a little bit sweeter, for all orders over $250.00 (before tax) we[color="#FF0000"][b]\[/b][/color]'re offering <b>FREE</b> shipping and a Full Year[color="#FF0000"][b]\[/b][/color]'s subscription to <b>Concrete Wave Magazine</b>.[s]</span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> [/s]
<p>We here at Longboard Haven are dedicated to making the learning curve in this sport as smooth as possible, simply by making information about our products readily available to our customers. If you are unsure as to <i>why </i>certain wheels perform better in certain situations, or <i>how </i>a certain truck can have such dynamic differences over another, again, <b>don[color="#FF0000"][b]\[/b][/color]'t be shy</b>. We[color="#FF0000"][b]\[/b][/color]'re more than happy to answer ANY questions regarding the performance and compatibility of our products. If you[color="#FF0000"][b]\[/b][/color]'re looking for the perfect cruise, speed, carve, pump, or park board, we can dial in the ride feel that you[color="#FF0000"][b]\[/b][/color]'re after.[s]</span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial">    

[/s]
<p><a [s]style="color: blue; text-decoration: underline; text-underline: single" [/s]href="mailto:[email protected]">

[email protected]</a>[s]</span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<p class="MsoNormal" style="text-autospace: none">

<span style="font-size:10.0pt;font-family:Arial"> </span></p>

<span style="font-size: 10.0pt; font-family: Arial">[/s]
<p>( NOTE! For our local shoppers, feel free to arrange a "Local Pickup" to spare shipping charges. )[s]</span>[/s]');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
define('HEADING_TITLE', 'Let\'s See What We Have Here');
define('TABLE_HEADING_IMAGE', '');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRODUCTS', 'Product Name');
define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
define('TABLE_HEADING_QUANTITY', 'Quantity');
define('TABLE_HEADING_PRICE', 'Price');
define('TABLE_HEADING_WEIGHT', 'Weight');
define('TABLE_HEADING_BUY_NOW', 'Buy Now');
define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
define('TEXT_SHOW', '<b>Show:</b>');
define('TEXT_BUY', 'Buy 1 \'');
define('TEXT_NOW', '\' now');
define('TEXT_ALL_CATEGORIES', 'All Categories');
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
define('HEADING_TITLE', 'What\'s New at Longboard Haven?');
} elseif ($category_depth == 'nested') {
define('HEADING_TITLE', 'Categories');
}
?>

jon

It's all just ones and zeros....

Posted
You should move the style definition (p.MsoNormal) to your stylesheet.css file. ??? I have no idea what this is.

 

 

 

 

If I take out all this coding the text isn't going to be formatted how I had wanted. Picky I know, but shouldn't this be possible?

 

 

 

I took out the coding and updated. Now I'm getting this..

 

Parse error: syntax error, unexpected T_STRING in /home/.honolulu/lbhaven/lbhaven.com/includes/languages/english/index.php on line 13

 

 

 

Here's the coding:

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', Welcome to <b>Longboard Haven!</b>

 

Toronto\'s premiere on-line Longboard Equipment retailer, supplying Canadians

 

nationwide with quality, high performance parts.

 

 

 

<P>Specializing in niche

 

skateboarding equipment, our stock list is full of products built for speed,

 

precision and performance. You\'re sure to find just what you\'re looking for,

 

whether it be for the parks, the hills, or anything in between.

 

<P>We are constantly bringing in

 

new products here at Longboard Haven. If you\'re wondering what\'s in store for

 

the next little while, feel free to contact us and ask. Also, if there is

 

anything in particular that you\'re looking for, but can\'t find on the website,

 

please, <b>don\'t be shy</b>. We\'re happy to special-order products in on request

 

with a nominal 25% deposit. If you\'re looking for a product or line of products

 

by a specific company? Please, browse our list of Manufacturers on the left hand

 

side of the screen to view all their available products. If you are interested

 

in any products listed on our site as "Out of Stock", feel free to ask us, there

 

just may be one or two kicking around waiting for someone just like you.

 

<P>Also, in a further effort to

 

make longboarding for Canadians just a little bit sweeter, for all orders over

 

$250.00 (before tax) we\'re offering <b>FREE</b> shipping and a Full Year\'s

 

subscription to <b>Concrete Wave Magazine</b>.

 

<P>We here at Longboard Haven are

 

dedicated to making the learning curve in this sport as smooth as possible,

 

simply by making information about our products readily available to our

 

customers. If you are unsure as to <i>why </i>certain wheels perform better in

 

certain situations, or <i>how </i>a certain truck can have such dynamic

 

differences over another, again, <b>don\'t be shy</b>. We\'re more than happy to

 

answer ANY questions regarding the performance and compatibility of our

 

products. If you\'re looking for the perfect; cruise, speed, carve, pump, or park

 

board, we can dial in the ride feel that you\'re after.

 

<P><a href="mailto:[email protected]">

 

[email protected]</a>

 

<P>( NOTE! For our local

 

shoppers, feel free to arrange a "Local Pickup" to spare shipping charges. )

 

');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New at Longboard Haven?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Posted

define('TEXT_MAIN', Welcome to <b>Longboard...

 

Should be:

 

define('TEXT_MAIN', 'Welcome to <b>Longboard...

 

You need the single quote before Welcome.

 

You don't have to take out all the formating (i.e. <b>Some text</b> or <span style="MsoNormal">SomeText"</span>). What you do need to do though is move the definition for MsoNormal from this file to stylesheet.css. Where previously you had:

 

<style>
<!--
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0cm; margin-right:0cm; margin-top:0cm}
-->
</style>

 

That portion can be moved to the stylesheet.css file. You will see how the other styles are setup there.

 

Not to sound rude, but you may want to get yourself a HTML book. Just so you can better understand what some of these things are. Believe me been doing this for over 10 years and I still have 5 books sitting on the shelf in front of me at all times :)... They go a long way for quick reference or those long nights where things start running together and even the obvious becomes hard. While an HTML book won't get you far with PHP at least it will help you understand what the PHP code is doing to some point or at least help you understand how the website is laid out with tables and styles.

Posted

Did the quote change.

 

Thanks, all is well now.

 

 

I did the stylessheet update but didn't notice any difference with or without those lines of code.

 

 

 

I'll look into some html training. Thanks again.

 

 

Its always the most simple of mistakes which are the hardest to figure out.

Archived

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

×
×
  • Create New...