chrometweaks.org

iPage, can you pay for hosting per month or is it all taken at once?

Click Here To View All Answers...


Got a quick question: iPage, can you pay for hosting per month or is it all taken at once? Thanks in advance for any comment. Second question of mine... Hi, I would like to ask, how to put the product list of current caegories to the column. When we read product's descriprion (product_info.php), it could be nice to see images of the rest products of these category in the column..

I was looking for a proper Contribution, and I couldnt find the solution. Well, It is also hard to find the answer in the forum..

Please, anyone help...

Comments (58)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some poking around and get back to you if I bump into an decent answer. You should email the people at iPage as they probably can answer it..

Comment #1

For example, in this shop:.

Http://www.luxuryhaven.com/.

Whan you read the info about specific product there is a list of other products from the same category in right column..

Does anybody know the answer ?

Comment #2

Hi,.

I couldn't find the answer for my question, so I did in my shop something like this:.

I wanted to have in right column the list of products (images) from the specific category, but instead I put in there the random module. So each time my client I reading the info about the product, can also get some info about other products..

To this you can put new line in the column_right.php.

Require(DIR_WS_BOXES'xxxx.php');.

And next, you should create a new php-file in the includes/boxes/.

With the same name xxxx.php.

This new file should have code:.

<?php.

?>.

         <tr>.

           <td>.

<img SRC="images/menu_g/produkty.gif" border="0px"><br>.

<?php.

 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 RAND() desc limit "MAX_DISPLAY_NEW_PRODUCTS); // p.products_date_added.

 } 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 = '"$new_products_category_id"' and p.products_status = '1' order by RAND() desc limit "MAX_DISPLAY_NEW_PRODUCTS); // p.products_date_added.

 }.

 .

 .

 .

 $row = 0;.

 $col = 0;.

 while ($new_products = tep_db_fetch_array($new_products_query)) {.

   $new_products['products_name'] = tep_get_products_name($new_products['products_id']);.

   echo '<tr><td align="center" class="smallText">';.

   echo '<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'], '120px', SMALL_IMAGE_HEIGHT, '')'</a>';.

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

   echo '<tr><td class="smallText" align="center">';.

   echo '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'$new_products['products_name']'</a>';.

   echo '<br>'$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']));.

   echo '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">Więcej...</a>';.

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

   $col ++;.

   if ($col > 2) {.

     $col = 0;.

     $row ++;.

   }.

 }.

?>.

           </td>.

         </tr>.

<?php.

?>.

And this is end.

Take care!..

Comment #3

Hello.

Very nice site. how did you get the 3 images in index page. please help..

Thanks.

Pj..

Comment #4

Luxuryhaven is not my shop. But I used it as an example for my question..

And as solution to your question put the line:.

<code>.

<a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=29'$random_product["categories_id"]); ?>"><img SRC="images/picture.gif" border="0"></a>.

</code>.

You should look to the sql data base, and find the interesting category. Than put the number of it to cPath= (in example above you have now 29).

Finally put the proper link to your picture..

It is working on my iPage site very well..

I still have problem with puting list of products to the right column. Please, anybody help (See the 1st post).

Take care..

Damian..

Comment #5

Hi, I would like to ask, how to put the product list of current caegories to the column. When we read product's descriprion (product_info.php), it could be nice to see images of the rest products of these category in the column..

I was looking for a proper Contribution, and I couldnt find the solution. Well, It is also hard to find the answer in the forum..

Please, anyone help...

Comment #6

Edit column.php.

Put there line:.

Require(DIR_WS_BOXES'xxxxx.php');.

Than create in catalog//includes/boxes the file xxxxx.php with the code..

Comment #7


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