Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Short Description in products


blr044

Recommended Posts

I installed short desceiption in products The short description appears in left column just fine. Also for whats new. But the product listing on index page, I have a minor error.

 

I do know what the error mean, ( Parse error: syntax error, unexpected '<' in /xxxx/xxxxxxx/xxxxxxxxxxx/includes/modules/new_products.php on line 43. But I just do not see the mistake. Here is the a few lines of includes/modules/new_products.php:

 

$description['products_description'][$desc_len-1] = '.';
$description['products_description'][$desc_len-2] = '.';
$description['products_description'][$desc_len-3] = '.';
   $info_box_contents[$row][$col] = array('align' => 'center',
                                          'params' => 'class="smallText" width="100%" valign="top"',
                                          'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '"><b>' . $new_products['products_name'] . '</b></a><br><br>' . strip_tags($description['products_description']) . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $new_products["products_id"]). '">' . DESCR_READ_MORE . '</a><br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('cart_buy.gif', IMAGE_BUTTON_IN_CART) . '</a> ' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '<br><br>');
                                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td rowspan="3" class="imagelist"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>
                                              <td class="main" valign="top"><strong><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a></strong></td>
                                              <td align="right" class="main" valign="top"><strong>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</strong></td>
                                            </tr>
                                            <tr>

 

Any ideas anyone? Oh, my store is RC2a format and site is located here!

 

Thanks.

 

blr044

Edited by blr044
Link to comment
Share on other sites

Please don`t post with line wrap off, it makes thing v-difficult to read

 

Your missing ?> before the <table

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...