Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

OSCommerce y Quick Order

Estas en el tema de OSCommerce y Quick Order en el foro de Sistemas de gestión de contenidos en Foros del Web. Hola chicos. Ahora estoy tratando de armar una tienda basada en oscommerce y me pidieron si podia hacer un sistema tipo quick order, algo asi: ...
  #1 (permalink)  
Antiguo 29/11/2009, 17:24
Avatar de JessicaTJ  
Fecha de Ingreso: enero-2007
Ubicación: 127.0.0.1
Mensajes: 472
Antigüedad: 17 años, 4 meses
Puntos: 25
OSCommerce y Quick Order

Hola chicos.

Ahora estoy tratando de armar una tienda basada en oscommerce y me pidieron si podia hacer un sistema tipo quick order, algo asi:



Acabo de encontrar este sistema llamado Add Many Quickies 1.0 fix:
http://www.oscommerce.com/community/...ch,quick+order

Pero al parecer no funciona con la ultima version de oscommerce (2.2rc2a)

Alguno de ustedes chicos tiene una idea de mas o menos como hacer un sistema asi? O alguien que ya lo haya hecho podria por favor ayudarme?

De corazon de verdad se los agradecere muchisimo !!!
__________________
٩(͡๏̯͡๏)۶ || ٩(͡๏̯͡๏)۶
  #2 (permalink)  
Antiguo 30/11/2009, 11:16
Avatar de JessicaTJ  
Fecha de Ingreso: enero-2007
Ubicación: 127.0.0.1
Mensajes: 472
Antigüedad: 17 años, 4 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) != || !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($gototep_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) != || !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_TITLEtep_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">&nbsp;</td>
            <td class="main"><?php echo TEXT_QTY?></td>
            <td class="main"><?php echo TEXT_MODEL?></td>
            <td class="main">&nbsp;</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">&nbsp;</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">&nbsp;</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'); ?>
__________________
٩(͡๏̯͡๏)۶ || ٩(͡๏̯͡๏)۶
  #3 (permalink)  
Antiguo 08/12/2009, 15:28
Avatar de JessicaTJ  
Fecha de Ingreso: enero-2007
Ubicación: 127.0.0.1
Mensajes: 472
Antigüedad: 17 años, 4 meses
Puntos: 25
Respuesta: OSCommerce y Quick Order

Naiden naiden? XD
__________________
٩(͡๏̯͡๏)۶ || ٩(͡๏̯͡๏)۶
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:01.