snubbr.com

Is it right to use a PayPal button without an Verisign SSL certificate?

Get a Verisign SSL certificate for 30 days FREE. Click here to use coupon...

Get a free trial of Verisign SSL certificates. Click here for this special deal...
My first question is Is it right to use a PayPal button without an Verisign SSL certificate? Thanks for any answer. Another question... Hi,.

In the featured_products.php, the product-listing is like below.

Item 1.

Item 2.

Item 3.

Item 4.

Item 5.

Item 6.

But I would like to change the listing style to below.

Item 1 Item 2 Item 3.

Item 4 Item 5 Item 6.

So how should I modift the script???.

(below is the original script of the featured_products.php:).

<?php.

/*.

$Id: featured_products.php,v 1.5.8 2003/06/09 22:35:33 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_FEATURED_PRODUCTS);.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FEATURED_PRODUCTS));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<?php.

// BOF: Header Tag Controller v2.6.3.

If ( file_exists(DIR_WS_INCLUDES'header_tags.php') ) {.

Require(DIR_WS_INCLUDES'header_tags.php');.

} else {.

?>.

<title><?php echo TITLE; ?></title>.

<?php.

}.

// EOF: Header Tag Controller v2.6.3.

?>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<table cellpadding="0" cellspacing="0" border="0" width="830" align="center"><tr><td style="background:url(images/bg.gif) left top repeat-x;">.

<table cellpadding="0" cellspacing="0" border="0" align="center">.

<tr><td>.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_products_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

///// To random featured products.

// list($usec, $sec) = explode(' ', microtime());.

// srand( (float) $sec + ((float) $usec * 100000) );.

// $mtm= rand();.

//////.

$featured_products_array = array();.

$featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from "TABLE_PRODUCTS" p left join "TABLE_MANUFACTURERS" m on p.manufacturers_id = m.manufacturers_id left join "TABLE_PRODUCTS_DESCRIPTION" pd on p.products_id = pd.products_id and pd.language_id = '"$languages_id"' left join "TABLE_SPECIALS" s on p.products_id = s.products_id left join "TABLE_FEATURED" f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by p.products_date_added DESC, pd.products_name";.

// to random// $featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from "TABLE_PRODUCTS" p left join "TABLE_MANUFACTURERS" m on p.manufacturers_id = m.manufacturers_id left join "TABLE_PRODUCTS_DESCRIPTION" pd on p.products_id = pd.products_id and pd.language_id = '"$languages_id"' left join "TABLE_SPECIALS" s on p.products_id = s.products_id left join "TABLE_FEATURED" f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by rand($mtm)";.

$featured_products_split = new splitPageResults($featured_products_query_raw, MAX_DISPLAY_FEATURED_PRODUCTS);.

If (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) {.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRODUCTS); ?> </td>.

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE' '$featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td> <! Featured Products Main Page Box >.

<table bgcolor="ffffff" border="0" width="100%" cellspacing="0" cellpadding="2">.

<?php.

If ($featured_products_split->number_of_rows > 0) {.

$featured_products_query = tep_db_query($featured_products_split->sql_query);.

While ($featured_products = tep_db_fetch_array($featured_products_query)) {.

If ($new_price = tep_get_products_special_price($featured_products['products_id'])) {.

$products_price = '<s>'$currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id']))'</s> <span class="productSpecialPrice">'$currencies->display_price($new_price, tep_get_tax_rate($featured_products['products_tax_class_id']))'</span>';.

} else {.

$products_price = $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id']));.

}.

?>.

<tr>.

<td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$featured_products['products_id'])'">'tep_image(DIR_WS_IMAGES$featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a>'; ?></td>.

<td valign="top" class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$featured_products['products_id'])'"><b><u>'$featured_products['products_name']'</u></b></a><br>'TEXT_DATE_ADDED' 'tep_date_long($featured_products['products_date_added'])'<br>'TEXT_MANUFACTURER' '$featured_products['manufacturers_name']'<br><br>'TEXT_PRICE' '$products_price; ?></td>.

<td align="right" valign="middle" class="main"><?php echo '<a href="'tep_href_link(FILENAME_FEATURED_PRODUCTS, tep_get_all_get_params(array('action'))'action=buy_now&products_id='$featured_products['products_id'])'">'tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART)'</a>'; ?></td>.

</tr>.

<tr>.

<td colspn="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

} else {.

?>.

<tr>.

<td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

</table>.

</td>.

</tr>.

<?php.

If (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) {.

?>.

<tr>.

<td>.

<table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRODUCTS); ?></td>.

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE' '$featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>.

</tr>.

</table>.

</td>.

</tr>.

<?php.

}.

?>.

</table></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</td></tr>.

</table>.

</td></tr></table>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>..

Comments (88)

Ye, but... you might wanna make sure and wait for another member to confirm it as I am not very confident. Better yet, why don't you give a call to the Verisign guys because they can give you an answer better...

Comment #1

Hi lindsayanng, thx for your help first..

Yes I have installed the addon before and successfully change the product listing style of catalog page..

But I am going to change the product listing style of "FEATURED_PRODUCTS.PHP"..

I have used windiff to compare the two files but honestly, I can't figure it out cause actually I know.

Nothing about script writing..

And I have compared the original catalog page and modified catalog page (page afer installing addon), in order to find.

Those sentences that change the listing style, yet again I failed..

So pls help me or show me which parts of script dominate the product listing style in featured_products.php, thx!..

Comment #2

The contribution has very complete instructions on how to make it work for your products_new.php, but i'm not sure what you are talking about with featured_products.php - is that an addon that you added?..

Comment #3

I am using version "oschub1_8".

In this version, there is a page called "featured_products.php".

We can manage the featured products in the control panel as well.

So what I need is to change the product listing style of this page..

Comment #4

Thats more complicated than you think because you can manage the look of featured products in the admin side.. I would post in the Thumbnail Listing Enhancement support thread. Spooks (the maker of that contribution) is very good at supporting his own code....

Comment #5

Hi Lindsa,.

Sorry, I can't change the outlook or style of the product listing is the admin side, I just can assign which products to.

Be the featured one....soorry to mislead you..

Actually the listing style is fixed for the featured products, i.e. just 1 column..

Comment #6

It still is a little more involved than just calling for a class I believe.. I would still go to the support thread.. Someone also might have already asked this, as I think I remember seeing it....

Comment #7

Thz a lot.

And hope we will figure it out very soon......

Comment #8

Hi,.

In the featured_products.php, the product-listing is like below.

Item 1.

Item 2.

Item 3.

Item 4.

Item 5.

Item 6.

But I would like to change the listing style to below.

Item 1 Item 2 Item 3.

Item 4 Item 5 Item 6.

So how should I modift the script???.

(below is the original script of the featured_products.php:).

<?php.

/*.

$Id: featured_products.php,v 1.5.8 2003/06/09 22:35:33 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_FEATURED_PRODUCTS);.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FEATURED_PRODUCTS));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<?php.

// BOF: Header Tag Controller v2.6.3.

If ( file_exists(DIR_WS_INCLUDES'header_tags.php') ) {.

Require(DIR_WS_INCLUDES'header_tags.php');.

} else {.

?>.

<title><?php echo TITLE; ?></title>.

<?php.

}.

// EOF: Header Tag Controller v2.6.3.

?>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<table cellpadding="0" cellspacing="0" border="0" width="830" align="center"><tr><td style="background:url(images/bg.gif) left top repeat-x;">.

<table cellpadding="0" cellspacing="0" border="0" align="center">.

<tr><td>.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_products_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

///// To random featured products.

// list($usec, $sec) = explode(' ', microtime());.

// srand( (float) $sec + ((float) $usec * 100000) );.

// $mtm= rand();.

//////.

$featured_products_array = array();.

$featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from "TABLE_PRODUCTS" p left join "TABLE_MANUFACTURERS" m on p.manufacturers_id = m.manufacturers_id left join "TABLE_PRODUCTS_DESCRIPTION" pd on p.products_id = pd.products_id and pd.language_id = '"$languages_id"' left join "TABLE_SPECIALS" s on p.products_id = s.products_id left join "TABLE_FEATURED" f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by p.products_date_added DESC, pd.products_name";.

// to random// $featured_products_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from "TABLE_PRODUCTS" p left join "TABLE_MANUFACTURERS" m on p.manufacturers_id = m.manufacturers_id left join "TABLE_PRODUCTS_DESCRIPTION" pd on p.products_id = pd.products_id and pd.language_id = '"$languages_id"' left join "TABLE_SPECIALS" s on p.products_id = s.products_id left join "TABLE_FEATURED" f on p.products_id = f.products_id where p.products_status = '1' and f.status = '1' order by rand($mtm)";.

$featured_products_split = new splitPageResults($featured_products_query_raw, MAX_DISPLAY_FEATURED_PRODUCTS);.

If (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) {.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRODUCTS); ?> </td>.

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE' '$featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td> <! Featured Products Main Page Box >.

<table bgcolor="ffffff" border="0" width="100%" cellspacing="0" cellpadding="2">.

<?php.

If ($featured_products_split->number_of_rows > 0) {.

$featured_products_query = tep_db_query($featured_products_split->sql_query);.

While ($featured_products = tep_db_fetch_array($featured_products_query)) {.

If ($new_price = tep_get_products_special_price($featured_products['products_id'])) {.

$products_price = '<s>'$currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id']))'</s> <span class="productSpecialPrice">'$currencies->display_price($new_price, tep_get_tax_rate($featured_products['products_tax_class_id']))'</span>';.

} else {.

$products_price = $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id']));.

}.

?>.

<tr>.

<td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$featured_products['products_id'])'">'tep_image(DIR_WS_IMAGES$featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a>'; ?></td>.

<td valign="top" class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$featured_products['products_id'])'"><b><u>'$featured_products['products_name']'</u></b></a><br>'TEXT_DATE_ADDED' 'tep_date_long($featured_products['products_date_added'])'<br>'TEXT_MANUFACTURER' '$featured_products['manufacturers_name']'<br><br>'TEXT_PRICE' '$products_price; ?></td>.

<td align="right" valign="middle" class="main"><?php echo '<a href="'tep_href_link(FILENAME_FEATURED_PRODUCTS, tep_get_all_get_params(array('action'))'action=buy_now&products_id='$featured_products['products_id'])'">'tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART)'</a>'; ?></td>.

</tr>.

<tr>.

<td colspn="3"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

} else {.

?>.

<tr>.

<td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

</table>.

</td>.

</tr>.

<?php.

If (($featured_products_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) {.

?>.

<tr>.

<td>.

<table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="smallText"><?php echo $featured_products_split->display_count(TEXT_DISPLAY_NUMBER_OF_FEATURED_PRODUCTS); ?></td>.

<td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE' '$featured_products_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>.

</tr>.

</table>.

</td>.

</tr>.

<?php.

}.

?>.

</table></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</td></tr>.

</table>.

</td></tr></table>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>..

Comment #9

Go to addons.oscommerce.com and search PRODUCT LISTING THUMBNAIL ENHANCEMENT and downoad the contribution from SPOOKS..

Comment #10


This question was taken from a support group/message board and re-posted here so others can learn from it.

 

Categories: Home | Diet & Weight Management | Vitamins & Supplements | Herbs & Cleansing |

Sexual Health | Medifast Support | Nutrisystem Support | Medifast Questions |

Web Hosting | Web Hosts | Website Hosting | Hosting |

Web Hosting | GoDaddy | Digital Cameras | Best WebHosts |

Web Hosting FAQ | Web Hosts FAQ | Hosting FAQ | Hosting Group |

Hosting Questions | Camera Tips | Best Cameras To Buy | Best Cameras This Year |

Camera Q-A | Digital Cameras Q-A | Camera Forum | Nov 2010 - Cameras |

Oct 2010 - Cameras | Oct 2010 - DSLRs | Oct 2010 - Camera Tips | Sep 2010 - Cameras |

Sep 2010 - DSLRS | Sep 2010 - Camera Tips | Aug 2010 - Cameras | Aug 2010 - DSLR Tips |

Aug 2010 - Camera Tips | July 2010 - Cameras | July 2010 - Nikon Cameras | July 2010 - Canon Cameras |

July 2010 - Pentax Cameras | Medifast Recipes | Medifast Recipes Tips | Medifast Recipes Strategies |

Medifast Recipes Experiences | Medifast Recipes Group | Medifast Recipes Forum | Medifast Support Strategies |

Medifast Support Experiences |

 

(C) Copyright 2010 All rights reserved.