Guest Posted March 3, 2007 Posted March 3, 2007 Hi. I still new in OSC and not experiance in PHP at all. I paid for freelance to mod and install OSC for me. I have several problems where this guy refuse to overcome eventhough I already paid for whole package. He just install and don't finish the setup. 1. The "Add to Cart" (Buy Now) button is not working. Can refer: http://www.prestige2u.com. I think this function call from: ->includes->modules->new_products.php: <?php /* $Id: new_products.php,v 1.34 2003/06/09 22:49:58 hpdl Exp $ E-Commerce Solutions Script installation provided by www.zinway.com */ ?> <!-- new_products //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => '<div class="header"><img src="images/marker_header.gif" width="3" height="5" alt="" style="margin:0px 6px 2px 0px;" />'.TABLE_HEADING_NEW_PRODUCTS.'</div>'); new contentBoxHeading($info_box_contents); ?> <div style="border:1px solid #9A927E;margin-top:1px; padding:3px 0px;"> <?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 p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } 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 = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } $row = 0; $col = 0; $info_box_contents = array(); while ($new_products = tep_db_fetch_array($new_products_query)) { $new_products['products_name'] = tep_get_products_name($new_products['products_id']); $sql = 'SELECT `products_description` FROM `products_description` WHERE products_id ='.$new_products['products_id'].' && language_id='.(int)$languages_id; $description_query = tep_db_query($sql); $description = mysql_fetch_array($description_query, MYSQL_ASSOC); $description['products_description'] = substr($description['products_description'], 0, 65); $desc_len = strlen($description['products_description']); $description['products_description'][$desc_len-1] = '.'; $description['products_description'][$desc_len-2] = '.'; $description['products_description'][$desc_len-3] = '.'; if ( ($col == 1 && $row == 0) || ($col == 1 && $row == 2) ){ $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'width="1" height="100%" valign="middle" style="border-left:1px solid #5E6367"', 'text' => '<table height="" width="100%" border="0" cellspacing="0" cellpadding="0" > <tr> <td><div style="width:1px;"></div></td> </tr> </table>'); } elseif (($col == 0 && $row == 1) || ($col == 2 && $row == 1)) { $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'height="1"', 'text' => '<table width="95%" border="0" cellspacing="0" cellpadding="0" > <tr> <td style="font-size:1px;background:url(images/points.gif) repeat-x;"> </td> </tr> </table>'); } elseif ($col == 1 && $row == 1) { $info_box_contents[$row][$col] = array('align' => '', 'params' => '', 'text' => ' '); } else { $info_box_contents[$row][$col] = array('align' => 'left', 'params' => 'class="main" width="260" valign="top" align="left"', 'text' => '<table width="260" cellpadding=0 cellspacing=0 border=0 style="margin:8px 1px 10px 0px;"> <tr> <td rowspan="4"><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'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="absmiddle"') . '</a></td> <td height="35" style="padding-right:10px;"><div style="border-bottom:1px solid #333333" class="productName">'.$new_products['products_name'].'</div></td> </tr> <tr> <td height="60" align="left" valign="top">'.$description['products_description'].'</td> </tr> <tr> <td height="32" ><span style="color:#FF7F00; font-size:20px; "> ' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])).'</span></td> </tr> <tr> <td class="main" valign=top align="right" style="padding-right:10px; >'. tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).' <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:1px solid #333333; "> <tr> <td style="padding-top:1px; padding-right:1px;" ><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']).'">'.tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS).'</a></td><td style="padding-top:1px;">'.tep_draw_hidden_field('products_id', $new_products['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_BN).'</td> </tr> </table></form> </td> </tr> </table>'); } // <td style="padding-top:1px; padding-right:1px;" ><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']).'">'.tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS).'</a></td> // <td style="padding-top:1px;">'.tep_draw_hidden_field('products_id', $new_products['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_BN).'</td> //<td style="padding-top:1px; padding-right:1px;" ><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id']).'">'.tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_BN).'</td> $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents, 0); ?> </div> </td> </tr> <!-- new_products_eof //--> 2. The contact_us.php also cannot be used. http://www.prestige2u.com/contact_us.php <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ E-Commerce Solutions Script installation provided by www.zinway.com */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <tr> <td width="173" align="right" valign="top" bgcolor="#FFFFFF"> <table width="171" cellpadding="0" cellspacing="0" border="0"> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> </table> </td> <td width="557" valign="top" align="left"> <table border="0" cellpadding="0" cellspacing="0" width="555"> <tr> <td width="100%" height="100%" valign="top" bgcolor="#FFFFFF"> <table border="0" width="100%" cellpadding="0" cellspacing="0" > <tr> <td width="100%" height="19" valign="top"> <div class="header"><img src="images/marker_header.gif" width="3" height="5" alt="" style="margin:0px 6px 2px 0px;" /> <?php echo HEADING_TITLE; ?></div> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <tr> <td valign="top" height="416" style="padding:0px 5px; " class="infoBox"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0" > <tr> <td class="main" align="center"><?php echo TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td align="left"><table border="0" width="100%" cellspacing="1" cellpadding="2" > <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td></tr> <?php } else { ?> <tr> <td align="left" ><table border="0" width="100%" cellspacing="1" cellpadding="2"> <tr class="infoBoxContents"> <td width="100%" style="padding:5px; "><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" ><?php echo ENTRY_NAME; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="main" ><?php echo ENTRY_EMAIL; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('email'); ?></td> </tr> <tr> <td class="main" ><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td align="left" style="padding-left:3px; "><?php echo tep_draw_textarea_field('enquiry', 'soft', 30, 7); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="1" cellpadding="2" > <tr class="infoBoxContents"> <td align="left"><table border="0" width="180" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td colspan="2" height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td> </tr> <tr> <td colspan="2" height="1" background="images/hpoint.gif" align="left" style="margin-top:2px;"><img src="images/hpoint.gif" width="3" height="1" alt=""></td> </tr> <tr> <td colspan="2" align="left"> <Table border="0" cellpadding="0" cellspacing="0" > <tr align="left"> <td width="50%" style="padding-left:20px;"><br/><span style="font-weight:bold;">Phone:</span> 1-800-555-55-55<br> <br/> <span style="font-weight:bold;">Fax:</span> 1-800-555-55-55</td> <td width="50%" style="padding-left:20px;"> <br/><span style="font-weight:bold;">E-mail:</span> [email protected]<br> <br/> <span style="font-weight:bold;">Toll Free:</span> 1-800-555-55-55</td> </tr></table></td> </tr> </table></td> </tr> <?php } ?> </table></td></tr> </table></td> </form> </tr> </table> </td> </tr> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> 3. The About Us is empty and I don't know how to fill in: http://www.prestige2u.com/about_us.php <?php /* $Id: index.php,v 1.1 2005/08/11 17:37:59 hpdl Exp $ E-Commerce Solutions Script installation provided by www.zinway.com */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <!--<link rel="stylesheet" type="text/css" href="stylesheet.css">--> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <tr> <td width="173" align="right" valign="top" bgcolor="#FFFFFF"> <table width="171" cellpadding="0" cellspacing="0" border="0"> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> </table> </td> <td width="557" valign="top" align="left"> <table border="0" cellpadding="0" cellspacing="0" width="555"> <tr> <td width="100%" height="100%" valign="top" bgcolor="#FFFFFF"> <table border="0" width="100%" cellpadding="0" cellspacing="0" > <tr> <td width="100%" height="19" valign="top"> <div class="header"><img src="images/marker_header.gif" width="3" height="5" alt="" style="margin:0px 6px 2px 0px;" /> <?php echo HEADING_TITLE; ?></div> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <tr> <td align="center" valign="top" height="376" style="padding:20px; " class="infoBox"><?php echo TEXT_INFORMATION; ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Please help me.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.