Jump to content

Recommended Posts

define('TEXT_MAIN', 'The LoveBazaar is a place for Couples to explore and enjoy their sexuality.  We will ALWAYS respect your privacy, and it is our goal that you are 100% satisfied, both with us and within yourself. <b>Any products that you want but do not see can be requested by emailing us at requests@thelovebazaar.net</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Shipping</b><br><br>Most of our products ship within 24 hours provided that you get your order to us before 1PM EST.  Orders placed after 1PM EST will be included in the following day's shipments.<br><br></td></tr>

<td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Paying for Your Order</b><br><br>We accept MasterCard, VISA, American Express, Discover, PayPal, checks and money orders.  Your order will be processed for shipment as soon as your payment clears.  As soon as that occurs, we will contact you by email to let you know when you should expect your shipment.<br><br>br><br><tr><td class="main" valign="top">')

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 Here?');

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

  define('HEADING_TITLE', 'Categories');

}

?>

 

You can not have a function call in the middle of defining a constant. You also forgot the ";" at the end of that line. Just assign that string to a variable instead:

<?php
$'TEXT_MAIN = 'The LoveBazaar is a place for Couples to explore and enjoy their sexuality.  We will ALWAYS respect your privacy, and it is our goal that you are 100% satisfied, both with us and within yourself. <b>Any products that you want but do not see can be requested by emailing us at requests@thelovebazaar.net</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Shipping</b><br><br>Most of our products ship within 24 hours provided that you get your order to us before 1PM EST.  Orders placed after 1PM EST will be included in the following day's shipments.<br><br></td></tr>
<td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Paying for Your Order</b><br><br>We accept MasterCard, VISA, American Express, Discover, PayPal, checks and money orders.  Your order will be processed for shipment as soon as your payment clears.  As soon as that occurs, we will contact you by email to let you know when you should expect your shipment.<br><br>br><br><tr><td class="main" valign="top">';
?>

 

Ken

When the '=' is added, I get:

 

 

Parse error: syntax error, unexpected '=' in /misc/42/000/153/504/4/user/web/thelovebazaar.net/catalog/includes/languages/english/index.php on line 13

 

Thanks for your patience... when I said novice... I'm speaking 3 to 4 hours into php....

$TEXT_MAIN = 'The LoveBazaar is a place for Couples to explore and enjoy their sexuality.  We will ALWAYS respect your privacy, and it is our goal that you are 100% satisfied, both with us and within yourself. <b>Any products that you want but do not see can be requested by emailing us at requests@thelovebazaar.net</b>.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Shipping</b><br><br>Most of our products ship within 24 hours provided that you get your order to us before 1PM EST.  Orders placed after 1PM EST will be included in the following day\'s shipments.<br><br></td></tr>
<td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Paying for Your Order</b><br><br>We accept MasterCard, VISA, American Express, Discover, PayPal, checks and money orders.  Your order will be processed for shipment as soon as your payment clears.  As soon as that occurs, we will contact you by email to let you know when you should expect your shipment.<br><br>br><br><tr><td class="main" valign="top">';

 

you also needed to escape the single quote

and i assume tep_image is a function !

Okay... looks like it's worse... I've got ->

 

 

Fatal error: Call to a member function add_current_page() on a non-object in /misc/42/000/153/504/4/user/web/thelovebazaar.net/catalog/includes/application_top.php on line 312

 

 

 

I'm going to restore my backup & try this again.  I'll let you know how this turned out.  Thank you for your time...

Okay... looks like it's worse... I've got ->

 

 

Fatal error: Call to a member function add_current_page() on a non-object in /misc/42/000/153/504/4/user/web/thelovebazaar.net/catalog/includes/application_top.php on line 312

 

 

 

I'm going to restore my backup & try this again.  I'll let you know how this turned out.  Thank you for your time...

 

Don't give up!  Why don't you rollback the backup on the live/production server and test it out on a local web server (unless that's what you're on)?

 

Anyway, at least you got past the first part (line 13), now you're all the way down to 312!

 

Side note, please use [.code] tags.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.