chrometweaks.org

Which iPage web hosting site can provide me my own site w/o the subdomain?

Click Here To View All Answers...


Question I have... Which iPage web hosting site can provide me my own site w/o the subdomain? Hoping for any answer. My other question... Hi, I'm new to the worl of OSCommerce and I think it is great that people spend time creating such applications and let people like me use them free of charge. Thanks once again to you all..

I have a problem at the mo that that JavaScript that should make the enlarged image is not working and I cant see where the problem is. Can anyone on this forum help me?.

You can find the iPage website on.

Http://www.my-ideal.com..

Comments (53)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some research in Google and get back to you if I discover an good answer. You should email the people at iPage as they probably could give you help..

Comment #1

Thanks for your offer of help..

The code in the page you are talking about is shown below. I dont really know what I'm looking for so please excuse me for seeming very stupid! lol.

<?php.

/*.

$Id: sts_product_info.php,v 1.3 2004/02/05 09:36:00 jhtalk Exp jhtalk $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

/*.

Simple Template System (STS) - Copyright © 2004 Brian Gallagher -.

*/.

// This program is designed to build template variables for the product_info.php page template.

// This code was modified from product_info.php.

// Start the "Add to Cart" form.

$template['startform'] = tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action'))'action=add_product'));.

// Add the hidden form variable for the Product_ID.

$template['startform'] .= tep_draw_hidden_field('products_id', $product_info['products_id']);.

$template['endform'] = "</form>";.

// Get product information from products_id parameter.

$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);.

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

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

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

} else {.

$template['specialprice'] = '';.

}.

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

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

$template['productmodel'] = $product_info['products_model'];.

}.

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

$template['imagesmall'] = tep_image(DIR_WS_IMAGES$product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"');.

$template['imagelarge'] = tep_image(DIR_WS_IMAGES$product_info['products_image'], addslashes($product_info['products_name']), '','','');.

// $template['imagelarge'] = tep_image(DIR_WS_IMAGES$products['products_image'], $products['products_name']);.

}.

$template['productdesc'] = stripslashes($product_info['products_description']);.

// Get the number of product attributes (the select list options).

$products_attributes_query = tep_db_query("select count(*) as total from "TABLE_PRODUCTS_OPTIONS" popt, "TABLE_PRODUCTS_ATTRIBUTES" patrib where patrib.products_id='"(int)$HTTP_GET_VARS['products_id']"' and patrib.options_id = popt.products_options_id and popt.language_id = '"(int)$languages_id"'");.

$products_attributes = tep_db_fetch_array($products_attributes_query);.

// If there are attributes (options), then....

If ($products_attributes['total'] > 0) {.

// Print the options header.

$template['optionheader'] = TEXT_PRODUCT_OPTIONS;.

// Select the list of attribute (option) names.

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

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

$products_options_array = array();.

$products_options_query = tep_db_query("select 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 = '"(int)$HTTP_GET_VARS['products_id']"' and pa.options_id = '"(int)$products_options_name['products_options_id']"' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '"(int)$languages_id"'");.

// For each option name, get the individual attribute (option) choices.

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

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

// If the attribute (option) has a price modifier, include it.

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

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

}.

}.

// If we should select a default attribute (option), do it here.

If (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {.

$selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];.

} else {.

$selected_attribute = false;.

}.

$template['optionnames'] .= $products_options_name['products_options_name']':<br>';.

$template['optionchoices'] .= tep_draw_pull_down_menu('id['$products_options_name['products_options_id']']', $products_options_array, $selected_attribute)"<br>";.

}.

} else {.

// No options, blank out the template variables for them.

$template['optionheader'] = '';.

$template['optionnames'] = '';.

$template['optionchoices'] = '';.

}.

// See if there are any reviews.

$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) {.

$template['reviews'] = TEXT_CURRENT_REVIEWS' '$reviews['count'];.

} else {.

$template['reviews'] = '';.

}.

// See if there is a product URL.

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

$template['moreinfolabel'] = TEXT_MORE_INFORMATION;.

$template['moreinfourl'] = tep_href_link(FILENAME_REDIRECT, 'action=url&goto='urlencode($product_info['products_url']), 'NONSSL', true, false);.

} else {.

$template['moreinfolabel'] = '';.

$template['moreinfourl'] = '';.

}.

$template['moreinfolabel'] = str_replace('%s', $template['moreinfourl'], $template['moreinfolabel']);.

// See if product is not yet available.

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

$template['productdatelabel'] = TEXT_DATE_AVAILABLE;.

$template['productdate'] = tep_date_long($product_info['products_date_available']);.

} else {.

$template['productdatelabel'] = TEXT_DATE_ADDED;.

$template['productdate'] = tep_date_long($product_info['products_date_added']);.

}.

// Strip out %s values.

$template['productdatelabel'] = str_replace('%s.', '', $template['productdatelabel']);.

// See if any product reviews.

$template['reviewsurl'] = tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params());.

$template['reviewsbutton'] = tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS);.

$template['addtocartbutton'] = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);.

// See if any "Also Purchased" items.

// I suspect that this won't work yet.

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

// $template['alsopurchased'] = tep_cache_also_purchased(3600);.

// } else {.

// $template['alsopurchased'] = include(DIR_WS_MODULESFILENAME_ALSO_PURCHASED_PRODUCTS);.

// }.

?>..

Comment #2

As I said I am not familiar with STS and of cource not an expert in iPage site building.

I can just say what I see ..

Try to check you [includes/sts_template.html and look there for JavaScript function.

And better if somebody more smarter than me will find a solution.

Also you can read support thread for this contribution.

Sorry , not really can help here..

Comment #3

Well thanks for your help really - you have certainly given me areas to look at and I only hope that one day I will be able to offer advice back to fellow people..

Oh I dont know if you can help my on this but the "breadcrubs" meun has the words "top" and American spelling of Catalgoue - is there any simply way of changing this text?..

Comment #4

Text you can change in english.php ( catalog/includes/languages/english.php).

I hope it still there with STS..

Comment #5

Thanks for your help on the Java Problems - I had missed out the <head> tag database call, which contains a small part of the Java needed to make it work. Thanks once again for your help - wouldnt have know what to do without your help..

Im off now to try and do what you said above. I will let you know how I get on. I used the STS system because it seemed quite simple, however after looking at this iPage site there are so many different options to use - I think I have really now caught the OSCommerce bug!..

Comment #6

Yep, it was still there and it was a nice simple change. Thank you for that information aswell, it's really quite simple once you know how and get into it..

One final question which I hope maybe you may be able to help me with? On the home page where it shows "new products" is there any way of setting this to show maybe just 6 products instead of the 9 it is currently showing? Its not a major problem, it's just I think currently it has a few too many products on the home page..

Oh whats your OSCommerce web address? Im just interested to see how good your shop is!..

Comment #7

New products :.

Http://www.oscommerc...s_and_Tricks/57.

It is work for usual osComm...

Comment #8

I noted that your shop has error on MY ACCOUNT page.

It is just whitespace in English.php after last ?>.

Also , links as CONTACT US, CONDITIONS, PRIVACY linked to languages files.

I belive that is not correct...

Comment #9

Yes I have just noticed that problem and I was hoping that maybe you would be able to help me with this one? It seems to be refering to "Warning: Cannot modify header information - headers already sent by (output started at /home/myideal/public_html/shop/includes/languages/english.php:337) in /home/myideal/public_html/shop/includes/functions/general.php on line 29" however I cant see what the problem is here..

The contact page, ect need sorting out yet which is a task for me over the weekend..

I left these pages to the end because I thought the hardest part was to make the iPage website work, which it was until now when something seems to have gone wrong...

Comment #10

Hi, I'm new to the worl of OSCommerce and I think it is great that people spend time creating such applications and let people like me use them free of charge. Thanks once again to you all..

I have a problem at the mo that that JavaScript that should make the enlarged image is not working and I cant see where the problem is. Can anyone on this forum help me?.

You can find the iPage website on.

Http://www.my-ideal.com..

Comment #11

I am not familiar with STS and just can guess ..

Look at your product_info.php if you have lines.

Function popupWindow(url).

Inside head tag or near..

Comment #12


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