30/11/2009, 11:16
|
| | | Fecha de Ingreso: enero-2007 Ubicación: 127.0.0.1
Mensajes: 472
Antigüedad: 17 años, 10 meses Puntos: 25 | |
Respuesta: OSCommerce y Quick Order Sigo sin nada, agrego la linea de codigo que hace el script: application_top.php Código PHP: case 'add_many_quickie_add_cart' : $error_str = ''; for ($i=1; $i<21; $i++) { if (tep_not_null($quickie_article[$i])){ $quickie_query = tep_db_query(" select p.products_id, p.products_model, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where products_model = '" . $quickie_article[$i] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($quickie_query) != 1 || !tep_db_num_rows($quickie_query)) { $error_str .= TEXT_INFORMATION_NO1 . $i . TEXT_INFORMATION_NO2 . '<br>'; } $quickie = tep_db_fetch_array($quickie_query); if (tep_has_product_attributes($quickie['products_id'])) { $error_str .= TEXT_INFORMATION_ATTRIBUTE1 . $i . TEXT_INFORMATION_ATTRIBUTE2 . '<a style="text-decoration=underline" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id']) . '" target=_new>' . $quickie['products_name'] . '</a><br>'; } else { $cart->add_cart($quickie['products_id'], $cart->get_quantity($quickie['products_id']) + $quickie_qty[$i], false); } } // end tep_not_null } // end for if($error_str == '') { tep_redirect(tep_href_link($goto, tep_get_all_get_params(array('action')), 'NONSSL')); } break;
quickies.php Código PHP: <?php /* $Id: quckie.php,v 1.00 2006/02/17 14:02:55 efp Exp $
osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License by Infobroker [email protected] */
require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_QUICKIE);
$error_str = ''; for ($i=1; $i<21; $i++) { if (tep_not_null($quickie_article[$i])){ $quickie_query = tep_db_query(" select p.products_id, p.products_model, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where products_model = '" . $quickie_article[$i] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' " ); if (tep_db_num_rows($quickie_query) != 1 || !tep_db_num_rows($quickie_query)) { $error_str .= TEXT_INFORMATION_NO1 . $i . TEXT_INFORMATION_NO2 . '<br>'; } // else { // else vorhanden start //My Contribution: Product listing in Product Info $quickie = tep_db_fetch_array($quickie_query); /* //My Contribution: Product listing in Product Info $product_slaves_querys = tep_db_query("SELECT COUNT(*) as total FROM " . TABLE_PRODUCTS_SLAVES . " WHERE products_slaves_id='" . $quickie['products_id'] . "' "); $product_slaves = tep_db_fetch_array($product_slaves_querys); $product_slaves_count = $product_slaves['total'];
if($product_slaves_count > 0) { $error_str .= TEXT_SLAVE1 . $i . TEXT_SLAVE2 . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id']) . '" target=_new>' . $quickie['products_name'] . '</a><br>';
} else { // start else slave //neu //My Contribution: Product listing in Product Info */ if (tep_has_product_attributes($quickie['products_id'])) { $error_str .= TEXT_INFORMATION_ATTRIBUTE1 . $i . TEXT_INFORMATION_ATTRIBUTE2 . '<a style="text-decoration=underline" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id']) . '" target=_new>' . $quickie['products_name'] . '</a><br>'; } else { $cart->add_cart($quickie['products_id'], $cart->get_quantity($quickie['products_id']) + $quickie_qty[$i], false); }
// } // end else slave //My Contribution: Product listing in Product Info // } // end else vorhanden start //My Contribution: Product listing in Product Info } // end tep_not_null } // end for
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_QUICKIE)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <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"> </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 //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top" bgcolor="#FFFFFF"><table align="center" border="0" width="97%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '7'); ?></td> </tr> <?php if ($error_str !='') { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="errorBox"><?php echo $error_str; ?></td> </tr> </table></td> </tr> <?php } ?> <tr> <td bgcolor="#FFFFFF"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '7'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> </tr> </table></td> </tr> <tr> <td><br><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table></td> </tr> <tr> <td><br> <form name="quickie_direkt" method="post" action="<?php echo tep_href_link(FILENAME_QUICKIE,'action=add_many_quickie_add_cart');?>"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_QTY; ?></td> <td class="main"><?php echo TEXT_MODEL; ?></td> <td class="main"> </td> <td class="main"><?php echo TEXT_QTY; ?></td> <td class="main"><?php echo TEXT_MODEL; ?></td> <td class="main"> </td> <td class="main"><?php echo TEXT_QTY; ?></td> <td class="main"><?php echo TEXT_MODEL; ?></td> </tr> <?php for ($i=1; $i<31; $i++) { ?> <tr> <td class="main"><?php echo tep_draw_input_field('quickie_qty[' . $i . ']', '', 'size="2" maxlength="3"'); ?></td> <td class="main"><?php echo tep_draw_input_field('quickie_article[' . $i . ']', ''); ?></td> <td class="main"> </td> <?php $i++ ;?> <td class="main"><?php echo tep_draw_input_field('quickie_qty[' . $i . ']', '', 'size="2" maxlength="3"'); ?></td> <td class="main"><?php echo tep_draw_input_field('quickie_article[' . $i . ']', ''); ?></td> <td class="main"> </td> <?php $i++ ;?> <td class="main"><?php echo tep_draw_input_field('quickie_qty[' . $i . ']', '', 'size="2" maxlength="3"'); ?></td> <td class="main"><?php echo tep_draw_input_field('quickie_article[' . $i . ']', ''); ?></td> </tr> <?php }?> <tr> <td align="right" class="main" colspan="8"><br><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> </table> </form> </td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //-->
<!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
__________________ ٩(͡๏̯͡๏)۶ || ٩(͡๏̯͡๏)۶ |