chrometweaks.org

What is an easy to use web iPage hosting service that does not require coding knowledge?

Click Here To View All Answers...


My 1st question is: What is an easy to use web iPage hosting service that does not require coding knowledge? Thanks for any answer or 2. Another question I got... I put this code in my header:.

<td width="5%">.

          &nbsp;.

        </td>.

        <td width="10%" class="cartContents">.

         .

<! shopping_cart //>.

<font size="1PT" color="white"><b>Items: 0<br></b>.

<b>Total: $0.00</b><! shopping_cart_eof //></font>.

        </td>.

But this seems to be only cosemetically working, check out.

Http://www.importwerks.com.

What do I do to get it to work?.

Thanks!..

Comments (158)

I'm stumped. I'm not so sure what is the right answer. I'll do some poking around and get back to you if I discover an decent answer. You should email the people at iPage as they probably could answer your iPage question..

Comment #1

I just took a look in the shopping_cart.php file and I have no clue as to what I should take out of there...

Comment #2

Hi,.

You have added parsed code to the header and that is not what you need, you need the code with variables..

As suggested I would start by looking at the catalog/includes/boxes/shopping_cart.php file to see what to add..

Monte..

Comment #3

I have taken a look in that file but I dont know what to do and thats why I made the post. If anyone has anything to add please do. thanks!..

Comment #4

Try this :.

<?php.

$cart_contents_string = '';.

If ($cart->count_contents() > 0) {.

$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';.

$products = $cart->get_products();.

For ($i=0, $n=sizeof($products); $i<$n; $i++) {.

$cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">';.

If ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

$cart_contents_string .= '<span class="newItemInCart">';.

} else {.

$cart_contents_string .= '<span class="infoBoxContents">';.

}.

$cart_contents_string .= $products[$i]['quantity']'&nbsp;x&nbsp;</span></td><td valign="top" class="infoBoxContents"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$products[$i]['id'])'">';.

If ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

$cart_contents_string .= '<span class="newItemInCart">';.

} else {.

$cart_contents_string .= '<span class="infoBoxContents">';.

}.

$cart_contents_string .= $products[$i]['name']'</span></a></td></tr>';.

If ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

Tep_session_unregister('new_products_id_in_cart');.

}.

}.

$cart_contents_string .= '</table>';.

} else {.

$cart_contents_string .= BOX_SHOPPING_CART_EMPTY;.

}.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $cart_contents_string);.

If ($cart->count_contents() > 0) {.

$info_box_contents[] = array('text' => tep_draw_separator());.

$info_box_contents[] = array('align' => 'right',.

'text' => $currencies->format($cart->show_total()));.

}.

?>.

If it works - good.

If it doesnt - put the code(with the changes) and the error here.

This post has been edited by.

Noob.

: 22 August 2004, 03:58..

Comment #5

Replace the code that you put in earlier I think..

Comment #6

I tried doing that and it put it outside of the header...

Comment #7

So it worked?.

Paste the code with it in it and also upload it so I canb see wher it put it.

This post has been edited by.

Noob.

: 22 August 2004, 04:53..

Comment #8

Ok, I tried it again but this time I cant even see it. check it out at.

Http://www.importwerks.com.

Heres the code:.

<?php.

/*.

 $Id: header.php,v 1.36 2002/08/15 17:29:47 dgw_ Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2001 osCommerce.

 Released under the GNU General Public License.

*/.

// check if the 'install' directory exists, and warn of it's existence.

 if (WARN_INSTALL_EXISTENCE == 'true') {.

   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/install')) {.

     tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS);.

   }.

 }.

// check if the configure.php file is writeable.

 if (WARN_CONFIG_WRITEABLE == 'true') {.

   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])'/includes/configure.php')) ) {.

     tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE);.

   }.

 }.

// check if the session folder is writeable.

 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {.

   if (STORE_SESSIONS == '') {.

     if (!is_dir(tep_session_save_path())) {.

       tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT);.

     } elseif (!is_writeable(tep_session_save_path())) {.

       tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE);.

     }.

   }.

 }.

// check session.auto_start is disabled.

 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {.

   if (ini_get('session.auto_start') == '1') {.

     tep_output_warning(WARNING_SESSION_AUTO_START);.

   }.

 }.

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {.

   if (!is_dir(DIR_FS_DOWNLOAD)) {.

     tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT);.

   }.

 }.

?>.

<?php.

// BOF: WebMakers.com Added: Center Shop.

// This goes before any other table of the shop.

 if ( CENTER_SHOP_ON=='1' ) {.

// Is a bgroundcolor set for around the shop.

   if ( CENTER_SHOP_BACKGROUND_ON=='1' ) {.

?>.

   <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>">.

     <tr><td>.

<?php.

    }.

// Center the shop to what size and what bgcolor.

?>.

   <table CELLSPACING="4" CELLPADDING="3" BORDER="0" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>">.

     <tr><td BGColor="FFFFFF">.

<?php.

  }.

// The rest of the <td> at the end of the footer.

// EOF: WebMakers.com Added: Center Shop.

?>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<?php.

// Defined image and link from center_shop.php.

?>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

 <tr class="header">.

<?php.

 if (HEADER_IMG_LINK_ON=='1') {.

?>.

   <td valign="middle"><?php echo '<a href="'HEADER_IMG_LINK'">'tep_image(DIR_WS_IMAGESHEADER_IMG_PIC, HEADER_IMG_ALT)'</a><BR>'; ?></td>.

<?php.

 } else {.

?>.

   <td valign="middle"><?php echo tep_image(DIR_WS_IMAGESHEADER_IMG_PIC, HEADER_IMG_ALT)'<BR>'; ?></td>.

<?php.

}.

?>.

    </tr>.

</table>.

<table border="0" cellspacing="0" cellpadding="0">.

<tr>.

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/header1.gif"></a><td>    .

<td align="bottom"><a href="http://www.importwerks.com/catalog"><img border=0 src="http://www.importwerks.com/catalog/images/home.gif"></a><td>    .

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/beforecontact.gif"></a><td>.

<td align="bottom"><a href="http://www.importwerks.com/catalog/contact_us.php"><img border=0 src="http://www.importwerks.com/catalog/images/contact.gif"></a><td>.

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/beforeabout.gif"></a><td>.

<td align="bottom"><a href="http://www.importwerks.com/catalog/about.php"><img border=0 src="http://www.importwerks.com/catalog/images/about.gif"></a><td>.

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/beforefaq.gif"></a><td>.

<td align="bottom"><a href="http://www.importwerks.com/catalog/faq.php"><img border=0 src="http://www.importwerks.com/catalog/images/FAQ.gif"></a><td>.

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/beforelogin.gif"></a><td>.

<td align="bottom"><a href="http://www.importwerks.com/catalog/login.php"><img border=0 src="http://www.importwerks.com/catalog/images/login.gif"></a><td>.

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/beforeviewcart.gif"></a><td>.

<td align="bottom"><a href="http://www.importwerks.com/catalog/shopping_cart.php"><img border=0 src="http://www.importwerks.com/catalog/images/viewcart.gif"></a><td>.

<td align="bottom"><img border=0 src="http://www.importwerks.com/catalog/images/beforecheckout.gif"></a><td>.

<td align="bottom"><a href="http://www.importwerks.com/catalog/checkout_shipping.php"><img border=0 src="http://www.importwerks.com/catalog/images/checkout.gif"></a><td>.

</tr>.

</table>.

<table border="0" background="images/headerbardone.jpg" width="750" cellspacing="0" cellpadding="0" bgcolor="#ffffff">.

       <tr>            .

        <td width="70%" height="30" align="center" valign="middle">.

        <form name="quick_find" action="http://www.importwerks.com/catalog/advanced_search_result.php" method="get"><input type="text" name="keywords" size="60" maxlength="80" style="width: 125px">&nbsp;<input type="hidden" name="osCsid" value="e55bd1267c2bce2df457d01084d699fd"><input type="image" src="images/button_quick_find.gif" border="0" alt="Parts Search" title=" Parts Search " align="absmiddle"></form>  .

        </td>.

 .

<?php.

$cart_contents_string = '';.

If ($cart->count_contents() > 0) {.

  $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';.

  $products = $cart->get_products();.

  for ($i=0, $n=sizeof($products); $i<$n; $i++) {.

    $cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">';.

    if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

      $cart_contents_string .= '<span class="newItemInCart">';.

    } else {.

      $cart_contents_string .= '<span class="infoBoxContents">';.

    }.

    $cart_contents_string .= $products[$i]['quantity']'&nbsp;x&nbsp;</span></td><td valign="top" class="infoBoxContents"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$products[$i]['id'])'">';.

    if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

      $cart_contents_string .= '<span class="newItemInCart">';.

    } else {.

      $cart_contents_string .= '<span class="infoBoxContents">';.

    }.

    $cart_contents_string .= $products[$i]['name']'</span></a></td></tr>';.

    if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

      tep_session_unregister('new_products_id_in_cart');.

    }.

  }.

  $cart_contents_string .= '</table>';.

} else {.

  $cart_contents_string .= BOX_SHOPPING_CART_EMPTY;.

}.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $cart_contents_string);.

If ($cart->count_contents() > 0) {.

  $info_box_contents[] = array('text' => tep_draw_separator());.

  $info_box_contents[] = array('align' => 'right',.

                               'text' => $currencies->format($cart->show_total()));.

}.

?>.

</tr>.

</table>.

<?php.

 if ($HTTP_GET_VARS['error_message'] != '') {.

?>.

<table border="0" width="100%" cellspacing="0" cellpadding="2">.

 <tr class="headerError">.

   <td class="headerError"><?php echo urldecode($HTTP_GET_VARS['error_message']); ?></td>.

 </tr>.

</table>.

<?php.

 }.

 if ($HTTP_GET_VARS['info_message'] != '') {.

?>.

<table border="0" width="100%" cellspacing="0" cellpadding="2">.

 <tr class="headerInfo">.

   <td class="headerInfo"><?php echo $HTTP_GET_VARS['info_message']; ?></td>.

 </tr>.

</table>.

<?php.

 }.

?>.

Let me know what I'm doing wrong. thanks!..

Comment #9

While I look at the code see if you can get it to be visible like before you kno?.

And btw your categories are messed up.

This post has been edited by.

Noob.

: 22 August 2004, 05:02..

Comment #10

Ok, I put this above where the <?php starts:.

<td width="5%">.

&nbsp;.

</td>.

<td width="10%" class="cartContents">.

<! shopping_cart //>.

<font size="1PT" color="white"><b>Items: 0<br></b>.

<b>Total: $0.00</b><! shopping_cart_eof //></font>.

</td>.

Should I put that somewhere else?..

Comment #11

Try puttin it in a table like this:.

*note* put this instead of teh earlier code.

<td>.

<?php.

$cart_contents_string = '';.

If ($cart->count_contents() > 0) {.

$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';.

$products = $cart->get_products();.

For ($i=0, $n=sizeof($products); $i<$n; $i++) {.

$cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">';.

If ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

$cart_contents_string .= '<span class="newItemInCart">';.

} else {.

$cart_contents_string .= '<span class="infoBoxContents">';.

}.

$cart_contents_string .= $products[$i]['quantity']'&nbsp;x&nbsp;</span></td><td valign="top" class="infoBoxContents"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$products[$i]['id'])'">';.

If ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

$cart_contents_string .= '<span class="newItemInCart">';.

} else {.

$cart_contents_string .= '<span class="infoBoxContents">';.

}.

$cart_contents_string .= $products[$i]['name']'</span></a></td></tr>';.

If ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

Tep_session_unregister('new_products_id_in_cart');.

}.

}.

$cart_contents_string .= '</table>';.

} else {.

$cart_contents_string .= BOX_SHOPPING_CART_EMPTY;.

}.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $cart_contents_string);.

If ($cart->count_contents() > 0) {.

$info_box_contents[] = array('text' => tep_draw_separator());.

$info_box_contents[] = array('align' => 'right',.

'text' => $currencies->format($cart->show_total()));.

}.

?>.

</td>.

If that doesnt work try this:.

<td width="100%">.

<?php.

$cart_contents_string = '';.

If ($cart->count_contents() > 0) {.

 $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';.

 $products = $cart->get_products();.

 for ($i=0, $n=sizeof($products); $i<$n; $i++) {.

   $cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">';.

   if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

     $cart_contents_string .= '<span class="newItemInCart">';.

   } else {.

     $cart_contents_string .= '<span class="infoBoxContents">';.

   }.

   $cart_contents_string .= $products[$i]['quantity']'&nbsp;x&nbsp;</span></td><td valign="top" class="infoBoxContents"><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$products[$i]['id'])'">';.

   if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

     $cart_contents_string .= '<span class="newItemInCart">';.

   } else {.

     $cart_contents_string .= '<span class="infoBoxContents">';.

   }.

   $cart_contents_string .= $products[$i]['name']'</span></a></td></tr>';.

   if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {.

     tep_session_unregister('new_products_id_in_cart');.

   }.

 }.

 $cart_contents_string .= '</table>';.

} else {.

 $cart_contents_string .= BOX_SHOPPING_CART_EMPTY;.

}.

$info_box_contents = array();.

$info_box_contents[] = array('text' => $cart_contents_string);.

If ($cart->count_contents() > 0) {.

 $info_box_contents[] = array('text' => tep_draw_separator());.

 $info_box_contents[] = array('align' => 'right',.

                              'text' => $currencies->format($cart->show_total()));.

}.

?>.

</td>.

This post has been edited by.

Noob.

: 22 August 2004, 05:21..

Comment #12

Neither one worked but something is happening and I know something is happening b/c my search field got moved to the left a little bit. I feel like I'm making a stupid mistake or something...

Comment #13

This is what your iPage site looks liek to me:.

The image -.

Www.dollward.com/untitled.jpg.

Wuts up with the black space to the right of your logo and wuts up with the categories.

Do you have any instant messaging progs or do you care if I got our iPage site and see if I can get the shopin cart workin.

This post has been edited by.

Noob.

: 22 August 2004, 05:42..

Comment #14

Yes, I have AIM, my sn is shayrmo.

Thanks a lot for helping!!!..

Comment #15

I put this code in my header:.

<td width="5%">.

          &nbsp;.

        </td>.

        <td width="10%" class="cartContents">.

         .

<! shopping_cart //>.

<font size="1PT" color="white"><b>Items: 0<br></b>.

<b>Total: $0.00</b><! shopping_cart_eof //></font>.

        </td>.

But this seems to be only cosemetically working, check out.

Http://www.importwerks.com.

What do I do to get it to work?.

Thanks!..

Comment #16

Well if "cosemetically working" means not working then try to.

Get the code from the infobox and put it there..

Comment #17


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