chrometweaks.org

Can I publish my iWeb site on iPage.com?

Click Here To View All Answers...


Got a question... Can I publish my iWeb site on iPage.com? Looking forward for any response. Second question of mine... How do I change the appearance of the model number on the product info pages from the standard numbers in brackets to.

'Code: 1234'.

?..

Comments (58)

Yes sir! although you might wanna make sure and wait for another person to confirm it as I am unsure of myself. Better yet, why don't you ask the iPage guys because they can give you an answer better...

Comment #1

Thanks for your help, but it didn't seem to work. Just came up with a parse error...

Comment #2

Can you post your relevant code and parse error?.

Terry.

This post has been edited by.

TerryK.

: 08 May 2004, 16:37..

Comment #3

This is the code on product_info.php before adding your changes:.

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

   }.

?>.

After adding your changes I get an error message on the top of the page saying parse error on line 89 of product_info.php..

Let me know if I've given you enough, or if you want some more code. Cheers..

Comment #4

Do you need more of the code, because I thought that's the only part you'd need. If you need any more, please let me know. This little thing is reall starting to bug me..

Cheers.

David..

Comment #5

How do I change the appearance of the model number on the product info pages from the standard numbers in brackets to.

'Code: 1234'.

?..

Comment #6

Look in /catalog/product_info.php for this code:.

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

   }.

?>.

Change to:.

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

   }.

?>.

HTH,.

Terry..

Comment #7


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