chrometweaks.org

Can you add a domain name to a free iPage hosting service like geocities?

Click Here To View All Answers...


First off, Can you add a domain name to a free iPage hosting service like geocities? Hoping for any comment. Another quick question..... with image filenames already added. I have literally thousands and thousands of images and I entered file names for all of them, but don't have all the images. To go through and remove the pics that don't show would take forever... anyone have a nifty trick?..

Comments (78)

Yes sir! although you might wanna make sure and wait for someone else to confirm my answer as I am not sure. Better yet, why don't you email the iPage guys because they can assist you better...

Comment #1

That will work if no image is inputted along with the product you entered.....

Comment #2

You'll have to plug in the correct variable of course but here's an example of what to add to product_info.php:.

$filename = '/path/to/foo.gif';.

If (file_exists($filename)) = FALSE {.

  $product['image'] = 'none.gif';.

}.

Of course you need a file called none.gif that would say 'No Image Available' or something to that effect. It's better to do it this way b/c lack of an image altogether typically screws up your product_info layout...

Comment #3

Thank you very much!!! Just 2 questions if you can help me out, what is the path/to/foo.gif (what goes in that place)? Second, where in product_info.php should that code go (i.e.in body text area)?..

Comment #4

Find the queries that looks similar to these in product_info.php:.

   $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_retail_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_upc 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);.

Below there, add this:.

$filename = DIR_WS_IMAGES$product_info['products_image'];.

If (file_exists($filename)) = FALSE {.

 $product_info['products_image'] = 'none.gif';.

}.

That should workm give it a go..

You would also need to do something similar for includes/modules/product_listing (if you use images in your product listing), new_products and anywhere else you wanted it to work this way...

Comment #5

<?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'])) {.

     .

     //GroupDiscount start.

     $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_nodiscount($new_price, tep_get_tax_rate($product_info['products_tax_class_id']))'</span>';.

     //GroupDiscount end.

   } 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'];.

   }.

$filename = DIR_WS_IMAGES$product_info['products_image'];.

If (file_exists($filename)) = FALSE {.

$product_info['products_image'] = 'none.gif';.

}.

?>.

There's the blob I modified, and I created the none.gif and put it in the main directory as well as image directory... unfortunately, I am still seeing the red X's.

...

Comment #6

Can you post or PM me a link to your site?..

Comment #7

... with image filenames already added. I have literally thousands and thousands of images and I entered file names for all of them, but don't have all the images. To go through and remove the pics that don't show would take forever... anyone have a nifty trick?..

Comment #8

In admin side of store.

Admin->configuration->images->images required set to false.

The_Bear..

Comment #9


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