chrometweaks.org

What are the best free iPage web host on the internet?

Click Here To View All Answers...


Got a question... What are the best free iPage web host on the internet? Hoping for any answer. My other question... I am trying to display only certain information on the product info page that pertains to a specific category..

What I have is:.

If (basename($PHP_SELF) == (FILENAME_PRODUCT_INFO'?cPath=30&products_id=$product_info["products_id"]')) {.

Display Code.

} else {.

}.

I haven't been able to set it up right. Trying different things but no luck. Any ideas?.

-Dennis..

Comments (16)

Hmm... I need to find out myself. I don't know what is the answer. I'll do some research and get back to you if I bump into an good answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

I'm designing out a wine website. He will have wine products that will have type, color, region, country... and others that will display for each wine. I had to input those manually because he needed to be able to search through those as well. I can show you what I am talking about but I wont post the link on the board. Msn/aim? Anyway he is also going to sell accessories, and gift baskets.

I use STS and can change templates for each product, but I need it for categories. I am looking for this now. I know you can set product_info ranges but this is not feasible if other products are added later and gave a product id above that range..

This make any sense?.

-Dennis.

This post has been edited by.

Dblake.

: 26 October 2004, 21:09..

Comment #2

This is somewhere in product_info.php. It queries the product_info..

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

   }.

Before or after the else is where you might have to specify which fields to display. Let me try it out ok..

LOL..

Comment #3

Or maybe not. Gimme a few minutes to think abou it...

Comment #4

I can display the information fine, I just only want it to display on the in the wine category. Not the gift baskets or accessories category. I pm'ed you the url..

-dennis..

Comment #5

OH I said green box, I meant purple LOL..

Comment #6

Doesn't:.

If (basename($PHP_SELF) ==  FILENAME_PRODUCT_INFO  && $cPath== '30' ) {.

Suffice?..

Comment #7

If you are using STS, why can't you create a template with the info, or calls to it, for those categories only? STS allows you to create separate templates for categories as well if you need to. I have a iPage site that is not live yet, but I also had the same situation, info only on certain categories:.

1) You can have a default iPage site template by creating.

Creating /catalog/includes/sts_template.html.

2).

You can have a default category template by.

Creating /catalog/includes/sts_templates/index.php.html.

3) You can have a different template for the Main Catalog Page (cPath=0) by.

Creating /catalog/includes/sts_templates/index.php_0.html.

4) You can have a different template for the other Catalog pages (cPath=XX_YY).

By creating /catalog/includes/sts_templates/index.php_XX-YY.html (where XX_YY.

Is the cPath=XX_YY value you see in the categories URL..

Comment #8

I am trying to display only certain information on the product info page that pertains to a specific category..

What I have is:.

If (basename($PHP_SELF) == (FILENAME_PRODUCT_INFO'?cPath=30&products_id=$product_info["products_id"]')) {.

Display Code.

} else {.

}.

I haven't been able to set it up right. Trying different things but no luck. Any ideas?.

-Dennis..

Comment #9

What Info do you want to display?.

This post has been edited by.

Shidi.

: 26 October 2004, 21:04..

Comment #10


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