chrometweaks.org

Visa gift card web hosting iPage, Bluehost.?

Click Here To View All Answers...


Quick question: Visa gift card web hosting iPage, Bluehost.? Hoping for any comment. Another question on my mind: After a large picture is uploaded(for large view), the category picture(description size) is blurry. The Enlarged size (original size) picture looks normal, but when sized down for categories it looks blurry. Is there anyway to prevent this?.

This is version: oscommerce 2.2 milestone2.

This post has been edited by.

Amz77.

: 11 February 2004, 22:45..

Comments (30)

That's a good question. I'm not sure what is the answer to that question. I'll do some research and get back to you if I bump into an anything. You should email the people at iPage as they probably can help you..

Comment #1

Thanks for the input..

But, Im wondering if this is a way to have a category picture (configured at 100 x 150) enlarged (uploaded picture size 487x 360) and they both look clear? I did reduce th uploaded pic to 100 x 150 and it looks normal, because thats what I have the size configured for in categories. But then when someone clicks enlarge it's still the same size (150 x 100). The other cart I had used would thumbnail the large picture 487x 360 to the smaller size without making it so blurry. I'd like to know if there is a way to have a category pic enlarge and they both look clear?..

Comment #2

There is an option to add further images to a product in the admin side, this allows you to add two sizes the thumbnail and then the pop-up image..

What I have done on my store at......just trying to remember...ah yesUdo.com is remove the coding in product_info.php for the main pic and then move the additional pics coding from the bottom of the page to the top..

See here:.

Http://www.yesudo.co...products_id=249.

And.

Http://www.yesudo.co...products_id=282..

Comment #3

Coding here:.

<?php.

/*.

$Id: product_info.php,v 1.97 2003/07/01 14:34:54 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_PRODUCT_INFO);.

$product_check_query = tep_db_query("select count(*) as total from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_DESCRIPTION" pd where p.products_status = '1' and p.products_id = '"(int)$HTTP_GET_VARS['products_id']"' and pd.products_id = p.products_id and pd.language_id = '"(int)$languages_id"'");.

$product_check = tep_db_fetch_array($product_check_query);.

?>.

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

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

<head>.

<META HTTP-EQUIV="Page-Enter" Content="blendtrans(duration=0.3)"></META> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<?php.

// BOF: WebMakers.com Changed: Header Tag Controller v1.0.

// Replaced by header_tags.php.

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

Require(DIR_WS_INCLUDES'header_tags.php');.

} else {.

?>.

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

<?php.

}.

// EOF: WebMakers.com Changed: Header Tag Controller v1.0.

?>.

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

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

<script language="javascript"><!.

Function popupWindow(url) {.

Window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res.

Izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le.

Ft=150').

}.

//></script>.

</head>.

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

<! header //>.

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

<! header_eof //>.

<! body //>.

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

<tr>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="1" 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"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action'))'action=add_product')); ?>.

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

<?php.

If ($product_check['total'] < 1) {.

?>.

<tr>.

<td>.

<?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?>.

</td>.

</tr>.

<tr>.

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

</tr>.

<tr>.

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

<tr class="infoBoxContents">.

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

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<?php.

} else {.

$product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_DESCRIPTION" pd where p.products_status = '1' and p.products_id = '"(int)$HTTP_GET_VARS['products_id']"' and pd.products_id = p.products_id and pd.language_id = '"(int)$languages_id"'");.

$product_info = tep_db_fetch_array($product_info_query);.

Tep_db_query("update "TABLE_PRODUCTS_DESCRIPTION" set products_viewed = products_viewed+1 where products_id = '"(int)$HTTP_GET_VARS['products_id']"' and language_id = '"(int)$languages_id"'");.

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

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

} else {.

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

}.

If (tep_not_null($product_info['products_model'])) {.

$products_name = $product_info['products_name']'<br><span class="smallText">['$product_info['products_model']']</span>';.

} else {.

$products_name = $product_info['products_name'];.

}.

$products_attributes = tep_db_query("select popt.products_options_name from "TABLE_PRODUCTS_OPTIONS" popt, "TABLE_PRODUCTS_ATTRIBUTES" patrib where patrib.products_id='"$HTTP_GET_VARS['products_id']"' and patrib.options_id = popt.products_options_id and popt.language_id = '"$languages_id"'");.

If (tep_db_num_rows($products_attributes)) {.

$products_attributes = '1';.

} else {.

$products_attributes = '0';.

}.

?>.

<tr>.

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

<tr>.

<td class="pageHeading" valign="top"><font color="#ffffff"><?php echo $products_name; ?></font></td>.

<td class="pageHeading" align="right" valign="top"><font color="#ffffff"><?php echo $products_price; ?></font></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

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

</tr>.

<tr>.

<td class="main">.

<?php.

If (tep_not_null($product_info['products_image'])) {.

?>.

<table border="0" cellspacing="0" cellpadding="2" align="right">.

<tr>.

<td align="center" class="smallText">.

<noscript>.

<?php echo '<a href="'tep_href_link(DIR_WS_IMAGES$product_info['products_image'])'">'tep_image(DIR_WS_IMAGES$product_info['products_image'], $product_info['products_name'], DISPLAY_IMAGE_WIDTH, DISPLAY_IMAGE_HEIGHT, 'hspace="5" vspace="5" ')'<br>'TEXT_CLICK_TO_ENLARGE'</a>'; ?>.

</noscript> </tr>.

</table>.

<?php.

}.

?>.

<b><font color="#ff0000">Availability: </font><u><?php echo picto_qty($product_info['products_quantity']); ?> </u></b>.

<p>.

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

<tr >.

<td>.

<?php.

$reviews_query = tep_db_query("select count(*) as count from "TABLE_REVIEWS" where products_id = '"(int)$HTTP_GET_VARS['products_id']"'");.

$reviews = tep_db_fetch_array($reviews_query);.

If ($reviews['count'] > 0) {.

?>.

<tr>.

<td class="main"><?php echo TEXT_CURRENT_REVIEWS' '$reviews['count']; ?></td>.

</tr>.

<tr>.

<td><div align="center"> </div></td>.

</tr>.

<tr>.

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

</tr>.

<?php.

}.

If (tep_not_null($product_info['products_url'])) {.

?>.

<tr>.

<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto='urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>.

</tr>.

<tr>.

<td><div align="center"></div></td>.

</tr>.

<tr>.

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

</tr>.

<?php.

}.

If ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {.

?>.

<tr>.

<td align="center" class="smallText"> </td>.

</tr>.

<tr>.

<td align="center" class="smallText"><b><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></b></td>.

</tr>.

<?php.

}.

?>.

<tr>.

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

</tr>.

</td><tr><td> <b> Quantity Required: <input type="text" name="quantity" value="1" maxlength="2" size="2">.

<b> </td></tr> <tr>.

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

</tr>.

</td>.

</tr></table>.

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

<tr class="infoBoxContents">.

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

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())'">'tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS)'</a>'; ?></td>.

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id'])tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table>.

<?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?>.

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

<tr >.

<td>.

<?php.

///////////////////////////////////////////////////////////////////////////.

// BOF: attribute options.

If ($products_attributes == '1') {.

$products_options_name = tep_db_query("select distinct popt.products_options_id, popt.products_options_name, popt.products_options_sort_order from "TABLE_PRODUCTS_OPTIONS" popt, "TABLE_PRODUCTS_ATTRIBUTES" patrib where patrib.products_id='"$HTTP_GET_VARS['products_id']"' and patrib.options_id = popt.products_options_id and popt.language_id = '"$languages_id"'"" order by popt.products_options_sort_order");.

Echo '<b>'TEXT_PRODUCT_OPTIONS'</b><br>';.

Echo '<table border="0" cellpading="0" cellspacing"0">';.

While ($products_options_name_values = tep_db_fetch_array($products_options_name)) {.

$selected = 0;.

$products_options_array = array();.

Echo '<tr><td class="main">'$products_options_name_values['products_options_name']':</td><td>'"\n";.

// BOF: Added: Attributes Copy and Sort.

If ( PRODUCTS_OPTIONS_SORT_BY_PRICE !='1' ) {.

$products_options = tep_db_query("select pa.products_options_sort_order, pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from "TABLE_PRODUCTS_ATTRIBUTES" pa, "TABLE_PRODUCTS_OPTIONS_VALUES" pov where pa.products_id = '"$HTTP_GET_VARS['products_id']"' and pa.options_id = '"$products_options_name_values['products_options_id']"' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '"$languages_id"'"" order by pa.products_options_sort_order, pov.products_options_values_name");.

} else {.

$products_options = tep_db_query("select pa.products_options_sort_order, pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from "TABLE_PRODUCTS_ATTRIBUTES" pa, "TABLE_PRODUCTS_OPTIONS_VALUES" pov where pa.products_id = '"$HTTP_GET_VARS['products_id']"' and pa.options_id = '"$products_options_name_values['products_options_id']"' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '"$languages_id"'"" order by pa.products_options_sort_order, pa.options_values_price");.

}.

// EOF: Added: Attributes Copy and Sort.

While ($products_options_values = tep_db_fetch_array($products_options)) {.

$products_options_array[] = array('id' => $products_options_values['products_options_values_id'], 'text' => $products_options_values['products_options_values_name']);.

If ($products_options_values['options_values_price'] != '0') {.

$products_options_array[sizeof($products_options_array)-1]['text'] .= ' ('$products_options_values['price_prefix']$currencies->display_price($products_options_values['options_values_price'], tep_get_tax_rate($product_info_values['products_tax_class_id'])) .') ';.

}.

}.

Echo tep_draw_pull_down_menu('id['$products_options_name_values['products_options_id']']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name_values['products_options_id']]);.

Echo '</td></tr>';.

}.

Echo '</table>';.

}.

// EOF: attribute options.

///////////////////////////////////////////////////////////////////////////.

?>.

</td>.

</tr>.

<tr>.

<td>.

</td>.

</tr></table>.

<?php require(DIR_WS_MODULESFILENAME_ADDITIONAL_IMAGES); ?>.

<p><?php echo stripslashes($product_info['products_description']); ?></p>.

</td>.

</tr>.

<tr>.

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

<tr class="infoBoxContents">.

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

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main"><?php echo '<a href="'tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())'">'tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS)'</a>'; ?></td>.

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id'])tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

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

</tr>.

<tr>.

<td>.

<?php.

If ((USE_CACHE == 'true') && empty($SID)) {.

Echo tep_cache_also_purchased(3600);.

} else {.

Include(DIR_WS_MODULESFILENAME_ALSO_PURCHASED_PRODUCTS);.

}.

}.

?>.

</td>.

</tr>.

</table>.

</form></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="1" 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>.

<! footer //>.

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

<! footer_eof //>.

<br>.

</body>.

</html>.

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

Comment #4

Just another thought if the window for an image is set to(for example) 150 x 150 you should make the image that size also - because:.

1) to make sure the image looks correct.

2) so that your pages do not take longer to download than need be - if your image starts out being bigger than the alotted window..

Hope I am not pointing out the obvious...

Comment #5

I went back to the admin panel and I wasn't able to locate the option to "add further images to a product?".

I'm wondering if my version does not have this option unless I am looking in the wrong place?.

Thank you again for your help..

This post has been edited by.

Amz77.

: 12 February 2004, 16:09..

Comment #6

In admin go into catalogue then click on the product you want to add images to - you should then get a button on the right of the screen saying add image.

If not there you could try this:.

Http://www.oscommerc...tributions,1032.

This post has been edited by.

Yesudo.com.

: 12 February 2004, 19:29..

Comment #7

After a large picture is uploaded(for large view), the category picture(description size) is blurry. The Enlarged size (original size) picture looks normal, but when sized down for categories it looks blurry. Is there anyway to prevent this?.

This is version: oscommerce 2.2 milestone2.

This post has been edited by.

Amz77.

: 11 February 2004, 22:45..

Comment #8

Try reducing image in a graphix prog to the size you want then reload and see?..

Comment #9


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