Jump to content
Sign in to follow this  
241

Wolfen Featured Sets SUPPORT

Recommended Posts

Hi

 

I just install this contribution and I received this error message when I press active (product) in the admin section.

 

Fatal error: Call to undefined function: tep_set_product_featured() in /var/www/html/catalog/admin/categories.php on line 42

 

Thanks

Frank

Share this post


Link to post
Share on other sites
I just install this contribution and I received this error message when I press active (product) in the admin section.

 

Fatal error: Call to undefined function: tep_set_product_featured() in /var/www/html/catalog/admin/categories.php on line 42

 

You have not installed properly and are missing an instruction from the admin/includes/functions/general.php


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites
I have marked a category, as well as product in side the catagory as featured, they all have the little green circle, yet I get nothin on my main page. I inserted the code into index.php as per the istructions. no "featured product" section like in the screen shots

 

This is not a quick question, do you have any template systems installed?

 

Have you followed all the instructions for install.

 

which download are you using

 

what version of osCommerce is installed.

 

in the admin are the displays for featured categpory or featured products set to true

 

 

The more initial information given when posting the easier it is to work to reslove the issue.


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites
You have not installed properly and are missing an instruction from the admin/includes/functions/general.php

Thanks, yes I deed forget to add line 719 to 769 in admin/includes/functions/general.php

 

Thanks again for your help

Frank

Share this post


Link to post
Share on other sites

Hi

 

I added a field call products_sortorder in de table products, is there a way of adding a new short order in ?Set the sort order for the feature products.? In the admin, right now we have the chose of

product id,

product name,

product price,

random.

I need to add product_shortorder, any advise how to do wit.

 

Thanks

Frank

Share this post


Link to post
Share on other sites
I added a field call products_sortorder in de table products, is there a way of adding a new short order in  ?Set the sort order for the feature products.? In the admin

 

Alter the configuration tables field configuration, set configuration description and set function


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

I used this and it worked great but I needed to start from scratch if I wanted multi-Stores to work. One question I have is...Is it possible to make the featured products randomized on the front page?

 

I want to have 10 manufacturers featured with a few of each appearing on the front page.

 

Thanks,

 

Brad

Share this post


Link to post
Share on other sites
I used this and it worked great but I needed to start from scratch if I wanted multi-Stores to work. One question I have is...Is it possible to make the featured products randomized on the front page?

 

I want to have 10 manufacturers featured with a few of each appearing on the front page.

 

Your having to start from scratch has nothing to do with this contribution and everything to do with multi-stores contribution with it's structuring not being that of a normal osCommerce setup. You will find that you will have issues with any contribution being installed into the multi-stores due to the structuring.

 

In the admin panel under configuration.

 

Set the sort order for the featured manufacturers. m.manufacturers_id

 

alter this to random

Edited by 241

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Hello!

 

I've installed this great contribution, and all works perfectly.

However (There's always one...), I use an OS template that presents the products in a different way than in feature sets.

as I'd like to maintain my current look, I'd like to merge the feature set code with my template. I've made some attempts, and succeeded to get the graphics right, but not to get data from database.

 

Can anyone help?

 

Here's my template file:

 

<?php
/*
$Id: new_products.php,v 1.34 2003/06/09 22:49:58 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

$side = '_center';

?>
<!-- new_products //-->
<?php
//  $info_box_contents = array();
//  $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

//  new contentBoxHeading($info_box_contents);

if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
  $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
} else {
  $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
}

$row = 0;
$col = 0;
$info_box_contents = array();
while ($new_products = tep_db_fetch_array($new_products_query)) {
  $new_products['products_name'] = tep_get_products_name($new_products['products_id']);
  $info_box_contents[$row][$col] = array('align' => 'center',
                                         'params' => 'class="smallText" width="50%" valign="top"',
                                         'text' => '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="182" STYLE="background: url(images/design/bg_center_product.gif) repeat-y left top;">
                                                                                 <TR><TD COLSPAN="3" HEIGHT="26" ALIGN="center" VALIGN="middle" STYLE="background: url(images/design/bg_top_product.gif) no-repeat left top; padding-left: 20px; padding-right: 18px;">
                                                                                 <a class="productTitle" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a>
                                                                                 </TD></TR>
                                                                                 <TR><TD COLSPAN="3" ALIGN="center" VALIGN="top"><br>
                                                                                 <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><br>
                                                                                 </TD></TR>
                                                                                 <TR>
                                                                                 <TD ALIGN="center" VALIGN="middle" WIDTH="80" HEIGHT="30">
                                                                                 <a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY) . '</a>
                                                                                 </TD>
                                                                                 <TD ALIGN="center" VALIGN="middle" WIDTH="96" HEIGHT="30" STYLE="background: url(images/design/bg_price_product.gif) no-repeat left top; color: #8A3410; font-size: 17px; font-family: Tahoma;">
                                                                                 <b>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</b>
                                                                                 </TD>
                                                                                 <TD WIDTH="6" HEIGHT="30"> </TD>
                                                                                 </TR>
                                                                                 <TR><TD COLSPAN="3"><img src="images/design/bg_bottom_product.gif"></TD></TR>
                                                                                 </TABLE>');

  $col ++;
  if ($col > 1) {
    $col = 0;
    $row ++;
  }
}

new contentBox($info_box_contents);
?>
<!-- new_products_eof //-->

Test site is here..

You can see the template at the top, and the featured sets at the bottom.

Share this post


Link to post
Share on other sites

The contribution does not use the contents box used by new products except to show new products, instead it replaces this with the seperate layouts.

 

You may be better with one of the other more standard featured products contributions that does use the contents box.

 

The page that you have posted is for the new products box, which is not used with this contribution unless the featured sets are set to false, whereby it then shows the new products box.

 

The link posted goes nowhere.

Edited by 241

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites
The contribution does not use the contents box used by new products except to show new products, instead it replaces this with the seperate layouts.

 

You may be better with one of the other more standard featred products contributions that does use the contents box.

 

The page that you have posted is for the new products box, which is not used with this contribution unless the featured sets are set to false, whereby it then shows the new products box.

 

The link posted goes nowhere.

 

new working link

I am using the 'new products' page above. you can see it in action in the link above...

first come new products, and then featured sets products...

Share this post


Link to post
Share on other sites

Hi, I have installed this great contribution but i have some errors. But it's not realy a big error. The description don't show.

 

In featured_products.php file, in include/modules directory, they are wrong condition:

 

In this configuration,

 

<?php
 if ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '1')) { 
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td></tr><tr><td width="25%" align="center" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div></td></tr><tr><td valign="top" class="main" width="25%">';
 if ($featured_products_array[$i]['shortdescription'] != '') { 
     echo $featured_products_array[$i]['shortdescription']; 
 } else { 
  $bah = explode(" ", $featured_products_array[$i]['description']); 
  for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++) 
     { 
     echo "$bah[$desc] "; 
     }  
 } 
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td></tr><tr><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>';
 }
?>

The description is displaying....

 

<?php
 if ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '2')) {
    $info_box_contents = array();
    $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td></tr><tr><td width="25%" align="center" valign="top" class="main"><div align="left"><b><a href="' . 
tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div></td></tr><tr><td valign="top" class="main" width="25%">' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . 
'</font></a> </td></tr><tr><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
 new infoBox($info_box_contents);  
 }
?>

The description not displaying, they ONLY display a short description but if you enter nothing in short description the boxes are empty. It missing a condition for displaying a description when a short description is not written.

 

Anybody can correct this bug?

 

Thx

Share this post


Link to post
Share on other sites

Let me take the time to correct you on something, this is not a bug, in order for this to be a bug there would need to be code written that did not work. i.e. having code in place for an if short description not written and that code not working but as that code is not there then this is not a bug.

 

Have you read through the support pages before posting?.....No

Had you read through the support pages you would not have made the post. :D


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Hi

 

I am currently runnning this contribution on my testsite, but have a few problems.

 

As uurbana just above i also have problems with the short description but only when using:

Layout 3

Style 4

 

If I added the short description it shows but if noting is added nothing is shown.

 

 

Another problem is the table whitch is changing size when using featured products.

Featured products is the only one active !

When using 2 collums the the left and right collum is not the same width and they differ from time to time. the pictures shown is same size and small_image_width og hight are set to blank.

I read all comments and others have the same problems, but I found no fix.

Only thing that seems to work is to increase number og collums to 3 or 4.

 

Hope someone have a sollution so i can get this up and running.

 

Great mod

 

Christian

Share this post


Link to post
Share on other sites
If I added the short description it shows but if noting is added nothing is shown.

 

I think you have already answered this one yourself, how can you expect something to show if it is not added.

 

Another problem is the table whitch is changing size when using featured products.

When using 2 collums the the left and right collum is not the same width and they differ from time to time. the pictures shown is same size and small_image_width og hight are set to blank.

I read all comments and others have the same problems, but I found no fix.

Only thing that seems to work is to increase number og collums to 3 or 4.

 

If you have read all the comments then you will know that the tables are set by percentage.

 

You will also know that this means that the tables can expand or shrink depending on the content.

 

Content is more that just an image, it is text, which includes the title, description, price.

 

These are all factors in determining the size of the table needed to contain the information.

 

If you have read all the comments then you will have noticed that this has alll been explained before and that this is the case for all the featured products contributions.


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Hi Steve

 

To start with your last comment - yes I read the earlyer comments on design and the change in collum width. But I still have a design problem when it changes size from time to time.

I know is it set to 100% fine - but what I' am looking for is another way to get around this. So i hoped that someone had a good sollution.

Fixed size - tryed that with no succes as the shop is'nt fixed

So something dynamic that is fixed in width :-)

 

As to the first of your reply i must learn to explain what i mean a little better.

 

The optional short text is blank (nothing entered)

Then the text should be taken from product description truncated to 25 words (default)

It is this last part that does not show when using layout 3 and style 4.

 

Christian

Share this post


Link to post
Share on other sites

Everything seemed to be working after Steve's last bit of advice (thanks...), but I just noticed another, rather more serious problem!

 

If I add a category, I don't get any 'featured' or 'featured until' input and when I try to confirm adding the category, I get the error:

 

1054 - Unknown column 'categories_featured' in 'field list'

 

If I edit an existing category, again, there's on 'featured' or 'featured until' input, but any changes I make can be saved OK.

 

Products and manufactureers all work OK.

 

What have I missed??!!??

 

Cheers

Share this post


Link to post
Share on other sites
new working link

I am using the 'new products' page above. you can see it in action in the link above...

first come new products, and then featured sets products...

 

 

Let's try one more time:

 

I'd like to maintain my website looks, and to use the featured sets contribute.

I need to merge the code of my new products page with the featured sets page.

I attach the files. If anyone has an idea....

 

new productes page:

 

<?php
/*
?$Id: new_products.php,v 1.34 2003/06/09 22:49:58 hpdl Exp $

?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/

$side = '_center';

?>
<!-- new_products //-->
<?php
// ?$info_box_contents = array();
// ?$info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

// ?new contentBoxHeading($info_box_contents);

?if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
? ?$new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
?} else {
? ?$new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);
?}

?$row = 0;
?$col = 0;
?$info_box_contents = array();
?while ($new_products = tep_db_fetch_array($new_products_query)) {
? ?$new_products['products_name'] = tep_get_products_name($new_products['products_id']);
? ?$info_box_contents[$row][$col] = array('align' => 'center',
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'params' => 'class="smallText" width="50%" valign="top"',
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="182" STYLE="background: url(images/design/bg_center_product.gif) repeat-y left top;">
? ? ? ? ? ? <TR><TD COLSPAN="3" HEIGHT="26" ALIGN="center" VALIGN="middle" STYLE="background: url(images/design/bg_top_product.gif) no-repeat left top; padding-left: 20px; padding-right: 18px;">
? ? ? ? ? ? <a class="productTitle" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a>
? ? ? ? ? ? </TD></TR>
? ? ? ? ? ? <TR><TD COLSPAN="3" ALIGN="center" VALIGN="top"><br>
? ? ? ? ? ? <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><br>
? ? ? ? ? ? </TD></TR>
? ? ? ? ? ? <TR>
? ? ? ? ? ? <TD ALIGN="center" VALIGN="middle" WIDTH="80" HEIGHT="30">
? ? ? ? ? ? <a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY) . '</a>
? ? ? ? ? ? </TD>
? ? ? ? ? ? <TD ALIGN="center" VALIGN="middle" WIDTH="96" HEIGHT="30" STYLE="background: url(images/design/bg_price_product.gif) no-repeat left top; color: #8A3410; font-size: 17px; font-family: Tahoma;">
? ? ? ? ? ? <b>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</b>
? ? ? ? ? ? </TD>
? ? ? ? ? ? <TD WIDTH="6" HEIGHT="30"> </TD>
? ? ? ? ? ? </TR>
? ? ? ? ? ? <TR><TD COLSPAN="3"><img src="images/design/bg_bottom_product.gif"></TD></TR>
? ? ? ? ? ? </TABLE>');

? ?$col ++;
? ?if ($col > 1) {
? ? ?$col = 0;
? ? ?$row ++;
? ?}
?}

?new contentBox($info_box_contents);
?>
<!-- new_products_eof //-->

 

 

featured sets page:

 

<?php
/*
?$Id: featured_products.php v1.0 03/10/2004 dd/mm/yyyy 10:00:00 wolfen Exp $

?Wolfen Featured Products Sets 1.01 MS2 products listing module
?241@wolfens.com

Made for:
?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com
?Copyright (c) 2004 osCommerce
?Released under the GNU General Public License

*/
?>
<?php
/* if ((FEATURED_PRODUCTS_DISPLAY == 'true') && (FEATURED_MANUFACTURERS_DISPLAY == 'true')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="4"><tr><td>';
?}*/
?>
<?php
echo '<table border="0" width="100%" cellspacing="2" cellpadding="4"><tr>';
?if (sizeof($featured_products_array) <> '0') {
? $col = 0;
? ?for($i=0; $i<sizeof($featured_products_array); $i++) {
? ? ?if ($featured_products_array[$i]['specials_price']) {
? ? ? ?$products_price = '<s>' . ?$currencies->display_price($featured_products_array[$i]['price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($featured_products_array[$i]['specials_price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id'])) . '</span>';
? ? ?} else {
? ? ? ?$products_price = $currencies->display_price($featured_products_array[$i]['price'], tep_get_tax_rate($featured_products_array[$i]['tax_class_id']));
? ? ?}
? $col++;
echo '<td valign="top" align="center">';
?>
<?php
?if ((FEATURED_SET == '1') && (FEATURED_SET_STYLE == '1')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>';
?if ($featured_products_array[$i]['shortdescription'] != '') {
? ? ?echo $featured_products_array[$i]['shortdescription'];
?} else {
? $bah = explode(" ", $featured_products_array[$i]['description']);
? for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++)
? ? ?{
? ? ?echo "$bah[$desc] ";
? ? ?}
?}
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>';
}
?>
<?php
?if ((FEATURED_SET == '1') && (FEATURED_SET_STYLE == '2')) {
? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' .
tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO .
'</font></a> </td><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
?new infoBox($info_box_contents);
}
?>
<?php
?if ((FEATURED_SET == '1') && (FEATURED_SET_STYLE == '3')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>';
?if ($featured_products_array[$i]['shortdescription'] != '') {
? ? ?echo $featured_products_array[$i]['shortdescription'];
?} else {
? $bah = explode(" ", $featured_products_array[$i]['description']);
? for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++)
? ? ?{
? ? ?echo "$bah[$desc] ";
? ? ?}
?}
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="right" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . ('pixel_' . VLINE_IMAGE_COLOUR . '.gif'), '', '1', VLINE_IMAGE_HEIGHT) . '<td></tr></table>';
}
?>
<?php
?if ((FEATURED_SET == '1') && (FEATURED_SET_STYLE == '4')) {
? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' .
tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO .
'</font></a> </td><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
?new infoBox($info_box_contents);
echo '<IMG SRC="images/info_box_' . FEATURED_SET_STYLE_SHADOW . '_shadow.gif" WIDTH=100% HEIGHT=13>';
}
?>
<?php
?if ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '1')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td></tr><tr><td width="25%" align="center" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div></td></tr><tr><td valign="top" class="main" width="25%">';
?if ($featured_products_array[$i]['shortdescription'] != '') {
? ? ?echo $featured_products_array[$i]['shortdescription'];
?} else {
? $bah = explode(" ", $featured_products_array[$i]['description']);
? for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++)
? ? ?{
? ? ?echo "$bah[$desc] ";
? ? ?}
?}
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td></tr><tr><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>';
?}
?>
<?php
?if ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '2')) {
? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td></tr><tr><td width="25%" align="center" valign="top" class="main"><div align="left"><b><a href="' .
tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div></td></tr><tr><td valign="top" class="main" width="25%">' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO .
'</font></a> </td></tr><tr><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
?new infoBox($info_box_contents);
?}
?>
<?php
?if ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '3')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div><br>';
?if ($featured_products_array[$i]['shortdescription'] != '') {
? ? ?echo $featured_products_array[$i]['shortdescription'];
?} else {
? $bah = explode(" ", $featured_products_array[$i]['description']);
? for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++)
? ? ?{
? ? ?echo "$bah[$desc] ";
? ? ?}
?}
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> <br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="right" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . ('pixel_' . VLINE_IMAGE_COLOUR . '.gif'), '', '1', VLINE_IMAGE_HEIGHT) . '<td></tr></table>';
?}
?>
<?php
?if ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '4')) {
? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td></tr><tr><td width="25%" align="center" valign="top" class="main"><div align="left"><b><a href="' .
tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div></td></tr><tr><td valign="top" class="main" width="25%">' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO .
'</font></a> </td></tr><tr><td align="left" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
?new infoBox($info_box_contents);
echo '<IMG SRC="images/info_box_' . FEATURED_SET_STYLE_SHADOW . '_shadow.gif" WIDTH=100% HEIGHT=13>';
?}
?>
<?php
?if ((FEATURED_SET == '3') && (FEATURED_SET_STYLE == '1')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>';
?if ($featured_products_array[$i]['shortdescription'] != '') {
? ? ?echo $featured_products_array[$i]['shortdescription'];
?} else {
? $bah = explode(" ", $featured_products_array[$i]['description']);
? for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++)
? ? ?{
? ? ?echo "$bah[$desc] ";
? ? ?}
?}
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td></tr></table>';
}
?>
<?php
?if ((FEATURED_SET == '3') && (FEATURED_SET_STYLE == '2')) {

? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' .
tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td></tr></table>');
?new infoBox($info_box_contents);
}
?>
<?php
?if ((FEATURED_SET == '3') && (FEATURED_SET_STYLE == '3')) {

echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>';
?if ($featured_products_array[$i]['shortdescription'] != '') {
? ? ?echo $featured_products_array[$i]['shortdescription'];
?} else {
? $bah = explode(" ", $featured_products_array[$i]['description']);
? for($desc=0; $desc<MAX_FEATURED_WORD_DESCRIPTION; $desc++)
? ? ?{
? ? ?echo "$bah[$desc] ";
? ? ?}
?}
echo '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td><td align="right" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . ('pixel_' . VLINE_IMAGE_COLOUR . '.gif'), '', '1', VLINE_IMAGE_HEIGHT) . '<td></tr></table>';
}
?>
<?php
?if ((FEATURED_SET == '3') && (FEATURED_SET_STYLE == '4')) {

? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="' . (SMALL_IMAGE_WIDTH + 25) . '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' .
tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="left" valign="top" class="main"><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div>' . $featured_products_array[$i]['shortdescription'] . '  <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><font color="#FF0000">' . TEXT_MORE_INFO . '</font></a> </td></tr></table>');
?new infoBox($info_box_contents);
echo '<IMG SRC="images/info_box_' . FEATURED_SET_STYLE_SHADOW . '_shadow.gif" WIDTH=100% HEIGHT=13>';
}
?>
<?php
?if ((FEATURED_SET == '4') && (FEATURED_SET_STYLE == '1')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div><br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>';
}
?>
<?php
?if ((FEATURED_SET == '4') && (FEATURED_SET_STYLE == '2')) {
? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') .
'<br><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div><br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
?new infoBox($info_box_contents);
}
?>
<?php
?if ((FEATURED_SET == '4') && (FEATURED_SET_STYLE == '3')) {
echo '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td width="'; SMALL_IMAGE_WIDTH + 25;
echo '" align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div><br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td><td align="right" valign="top" class="main">' . tep_image(DIR_WS_IMAGES . ('pixel_' . VLINE_IMAGE_COLOUR . '.gif'), '', '1', VLINE_IMAGE_HEIGHT) . '<td></tr></table>';
}
?>
<?php
?if ((FEATURED_SET == '4') && (FEATURED_SET_STYLE == '4')) {
? ? $info_box_contents = array();
? ? $info_box_contents[] = array('text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td align="left" valign="top" class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $featured_products_array[$i]['image'], $featured_products_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') .
'<br><div align="left"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '"><u>' . $featured_products_array[$i]['name'] . '</u></a></b></div><br>' . TABLE_HEADING_PRICE . ': ' . $products_price . '<br><a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>');
?new infoBox($info_box_contents);
echo '<IMG SRC="images/info_box_' . FEATURED_SET_STYLE_SHADOW . '_shadow.gif" WIDTH=100% HEIGHT=13>';
}
?>
<?php
?if (($col / FEATURED_PRODUCTS_COLUMNS) == floor($col / FEATURED_PRODUCTS_COLUMNS)) {
? ? if (((FEATURED_SET == '1') && (FEATURED_SET_STYLE == '3')) or ((FEATURED_SET == '2') && (FEATURED_SET_STYLE == '3')) or ((FEATURED_SET == '3') && (FEATURED_SET_STYLE == '3')) or ((FEATURED_SET == '4') && (FEATURED_SET_STYLE == '3'))){
echo '</td></tr><tr><td colspan="' . FEATURED_PRODUCTS_COLUMNS . '" align="center" valign="top" class="main"><hr color=#' . HORIZONTAL_LINE_COLOUR . '></td></tr><tr>';
?}else{
echo '</td></tr><tr><td colspan="' . FEATURED_PRODUCTS_COLUMNS . '" class="main"></td></tr><tr>';
?}
?}
if (($i+1) != sizeof($featured_products_array)) {
? ? ?}
? ?}
?}
echo '</table>';
?>

 

I'm using FEATURED_SET == '4') && (FEATURED_SET_STYLE == '4')) , so you can disregard the rest...

 

Thanks!!! :thumbsup:

Edited by knokenet

Share this post


Link to post
Share on other sites

The main reason for using this contribute, is ofcourse, to have control over products displayed in the front page.

Can anyone suggest another contribution that can do the same thing???

different kind of products sorting???

Share this post


Link to post
Share on other sites
You may be better with one of the other more standard featured products contributions that does use the contents box.

 

Try searching contributions area using featured as the search word. :thumbsup:

 

It is not my position of supporting this contribution to make code changes to fit every individual users template as the work of supporting this contribution is done for free as is the contribution. :D

Edited by 241

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Don't hate me if this has already been id'd but I can't find it anywhere...

 

I'm trying to create a new category & I get this error.

 

1054 - Unknown column 'categories_featured' in 'field list'

insert into categories_description (categories_name, categories_id, language_id, categories_featured, categories_featured_until) values ('test', '157', '1', '0', '')

[TEP STOP]

 

got a suggestion?


Joel Gallant

Share this post


Link to post
Share on other sites
1054 - Unknown column 'categories_featured' in 'field list'
1054 - Unknown column 'categories_featured' in 'field list'

insert into categories_description (categories_name, categories_id, language_id, categories_featured, categories_featured_until) values ('test', '157', '1', '0', '')

[TEP STOP]

 

I need to know which version both of you used was it the full pack:

 

22 Jul 2004 - Wolfen Featured Sets v1.00

 

or

 

3 Oct 2004 - Wolfen Featured Sets v1.01 for default osCommerce

 

you should be using:

 

3 Oct 2004 - Wolfen Featured Sets v1.01 for default osCommerce

 

as this is the latest version, if you are not using:

 

3 Oct 2004 - Wolfen Featured Sets v1.01 for default osCommerce

 

but are using

 

22 Jul 2004 - Wolfen Featured Sets v1.00

 

then that is the reason for your issues and the resolves are in the thread.


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites
Ok, fine, I'll upgrade... LOL!!!!

 

I'll let you know if the problem persist!

 

when using the upgrade pack you will need to do a file compare using something like beyond compare.

 

or check out the thread and apply the fixes.


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×