Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

demastermind

Pioneers
  • Posts

    69
  • Joined

  • Last visited

Posts posted by demastermind

  1. Well today I looked at the code again and I found the errors and I corrected them.

     

    I do have another question. On the stock report table in the prodects info page, how would I have it tell the stock when less than 10 or less are available, and have it say "more than 10 available" when there are more than 10 in stock. This is actually like what ebay does.

    - Luc

     

    This is what it looks like now:

    http://www.jumbledfun.com/onstock.jpg

     

    It's all fine now. I figured out how to do this my self. I just had to use an if statement.

    - Luc

  2. Is anyone else having this error? I used the qtpro 4.6.1 version.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in HIDDEN/products_attributes.php on line 290

    Can someone please fix this prblem for me. I tried changing the code to fix it but I couldn't fix it. Thanks.

    - Luc

     

    Well today I looked at the code again and I found the errors and I corrected them.

     

    I do have another question. On the stock report table in the prodects info page, how would I have it tell the stock when less than 10 or less are available, and have it say "more than 10 available" when there are more than 10 in stock. This is actually like what ebay does.

    - Luc

     

    This is what it looks like now:

    http://www.jumbledfun.com/onstock.jpg

  3. Is anyone else having this error? I used the qtpro 4.6.1 version.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in HIDDEN/products_attributes.php on line 290

    Can someone please fix this prblem for me. I tried changing the code to fix it but I couldn't fix it. Thanks.

    - Luc

     

     

     

    <?php
    /*
     $Id$
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2010 osCommerce
    
     Released under the GNU General Public License
    */
    
     require('includes/application_top.php');
     $languages = tep_get_languages();
    
     $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
    
     $option_page = (isset($HTTP_GET_VARS['option_page']) && is_numeric($HTTP_GET_VARS['option_page'])) ? $HTTP_GET_VARS['option_page'] : 1;
     $value_page = (isset($HTTP_GET_VARS['value_page']) && is_numeric($HTTP_GET_VARS['value_page'])) ? $HTTP_GET_VARS['value_page'] : 1;
     $attribute_page = (isset($HTTP_GET_VARS['attribute_page']) && is_numeric($HTTP_GET_VARS['attribute_page'])) ? $HTTP_GET_VARS['attribute_page'] : 1;
    
     $page_info = 'option_page=' . $option_page . '&value_page=' . $value_page . '&attribute_page=' . $attribute_page;
    
     if (tep_not_null($action)) {
       switch ($action) {
         case 'add_product_options':
           $products_options_id = tep_db_prepare_input($HTTP_POST_VARS['products_options_id']);
           $option_name_array = $HTTP_POST_VARS['option_name'];
    
           for ($i=0, $n=sizeof($languages); $i<$n; $i ++) {
             $option_name = tep_db_prepare_input($option_name_array[$languages[$i]['id']]);
    
             //++++ QT Pro: Begin Changed code
             $track_stock=isset($HTTP_POST_VARS['track_stock'])?1:0;
             tep_db_query("insert into " . TABLE_PRODUCTS_OPTIONS . " (products_options_id, products_options_name, language_id,products_options_track_stock) values ('" . (int)$products_options_id . "', '" . tep_db_input($option_name) . "', '" . (int)$languages[$i]['id'] . "', '" . (int)$track_stock . "')");
    //++++ QT Pro: End Changed Code
    
           }
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'add_product_option_values':
           $value_name_array = $HTTP_POST_VARS['value_name'];
           $value_id = tep_db_prepare_input($HTTP_POST_VARS['value_id']);
           $option_id = tep_db_prepare_input($HTTP_POST_VARS['option_id']);
    
           for ($i=0, $n=sizeof($languages); $i<$n; $i ++) {
             $value_name = tep_db_prepare_input($value_name_array[$languages[$i]['id']]);
    
             tep_db_query("insert into " . TABLE_PRODUCTS_OPTIONS_VALUES . " (products_options_values_id, language_id, products_options_values_name) values ('" . (int)$value_id . "', '" . (int)$languages[$i]['id'] . "', '" . tep_db_input($value_name) . "')");
           }
    
           tep_db_query("insert into " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . " (products_options_id, products_options_values_id) values ('" . (int)$option_id . "', '" . (int)$value_id . "')");
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'add_product_attributes':
           $products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
           $options_id = tep_db_prepare_input($HTTP_POST_VARS['options_id']);
           $values_id = tep_db_prepare_input($HTTP_POST_VARS['values_id']);
           $value_price = tep_db_prepare_input($HTTP_POST_VARS['value_price']);
           $price_prefix = tep_db_prepare_input($HTTP_POST_VARS['price_prefix']);
    
           tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");
    
           if (DOWNLOAD_ENABLED == 'true') {
             $products_attributes_id = tep_db_insert_id();
    
             $products_attributes_filename = tep_db_prepare_input($HTTP_POST_VARS['products_attributes_filename']);
             $products_attributes_maxdays = tep_db_prepare_input($HTTP_POST_VARS['products_attributes_maxdays']);
             $products_attributes_maxcount = tep_db_prepare_input($HTTP_POST_VARS['products_attributes_maxcount']);
    
             if (tep_not_null($products_attributes_filename)) {
               tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " values (" . (int)$products_attributes_id . ", '" . tep_db_input($products_attributes_filename) . "', '" . tep_db_input($products_attributes_maxdays) . "', '" . tep_db_input($products_attributes_maxcount) . "')");
             }
           }
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'update_option_name':
           $option_name_array = $HTTP_POST_VARS['option_name'];
           $option_id = tep_db_prepare_input($HTTP_POST_VARS['option_id']);
    
           for ($i=0, $n=sizeof($languages); $i<$n; $i ++) {
             $option_name = tep_db_prepare_input($option_name_array[$languages[$i]['id']]);
    
             //++++ QT Pro: Begin Changed code
             $track_stock=isset($HTTP_POST_VARS['track_stock'])?1:0;
             tep_db_query("update " . TABLE_PRODUCTS_OPTIONS . " set products_options_track_stock='" . (int)$track_stock . "',products_options_name = '" . tep_db_input($option_name) . "' where products_options_id = '" . (int)$option_id . "' and language_id = '" . (int)$languages[$i]['id'] . "'");
    //++++ QT Pro: End Changed Code
           }
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'update_value':
           $value_name_array = $HTTP_POST_VARS['value_name'];
           $value_id = tep_db_prepare_input($HTTP_POST_VARS['value_id']);
           $option_id = tep_db_prepare_input($HTTP_POST_VARS['option_id']);
    
           for ($i=0, $n=sizeof($languages); $i<$n; $i ++) {
             $value_name = tep_db_prepare_input($value_name_array[$languages[$i]['id']]);
    
             tep_db_query("update " . TABLE_PRODUCTS_OPTIONS_VALUES . " set products_options_values_name = '" . tep_db_input($value_name) . "' where products_options_values_id = '" . tep_db_input($value_id) . "' and language_id = '" . (int)$languages[$i]['id'] . "'");
           }
    
           tep_db_query("update " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . " set products_options_id = '" . (int)$option_id . "'  where products_options_values_id = '" . (int)$value_id . "'");
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'update_product_attribute':
           $products_id = tep_db_prepare_input($HTTP_POST_VARS['products_id']);
           $options_id = tep_db_prepare_input($HTTP_POST_VARS['options_id']);
           $values_id = tep_db_prepare_input($HTTP_POST_VARS['values_id']);
           $value_price = tep_db_prepare_input($HTTP_POST_VARS['value_price']);
           $price_prefix = tep_db_prepare_input($HTTP_POST_VARS['price_prefix']);
           $attribute_id = tep_db_prepare_input($HTTP_POST_VARS['attribute_id']);
    
           tep_db_query("update " . TABLE_PRODUCTS_ATTRIBUTES . " set products_id = '" . (int)$products_id . "', options_id = '" . (int)$options_id . "', options_values_id = '" . (int)$values_id . "', options_values_price = '" . (float)tep_db_input($value_price) . "', price_prefix = '" . tep_db_input($price_prefix) . "' where products_attributes_id = '" . (int)$attribute_id . "'");
    
           if (DOWNLOAD_ENABLED == 'true') {
             $products_attributes_filename = tep_db_prepare_input($HTTP_POST_VARS['products_attributes_filename']);
             $products_attributes_maxdays = tep_db_prepare_input($HTTP_POST_VARS['products_attributes_maxdays']);
             $products_attributes_maxcount = tep_db_prepare_input($HTTP_POST_VARS['products_attributes_maxcount']);
    
             if (tep_not_null($products_attributes_filename)) {
               tep_db_query("replace into " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " set products_attributes_id = '" . (int)$attribute_id . "', products_attributes_filename = '" . tep_db_input($products_attributes_filename) . "', products_attributes_maxdays = '" . tep_db_input($products_attributes_maxdays) . "', products_attributes_maxcount = '" . tep_db_input($products_attributes_maxcount) . "'");
             }
           }
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'delete_option':
           $option_id = tep_db_prepare_input($HTTP_GET_VARS['option_id']);
    
           tep_db_query("delete from " . TABLE_PRODUCTS_OPTIONS . " where products_options_id = '" . (int)$option_id . "'");
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'delete_value':
           $value_id = tep_db_prepare_input($HTTP_GET_VARS['value_id']);
    
           tep_db_query("delete from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where products_options_values_id = '" . (int)$value_id . "'");
           tep_db_query("delete from " . TABLE_PRODUCTS_OPTIONS_VALUES . " where products_options_values_id = '" . (int)$value_id . "'");
           tep_db_query("delete from " . TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS . " where products_options_values_id = '" . (int)$value_id . "'");
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
         case 'delete_attribute':
           $attribute_id = tep_db_prepare_input($HTTP_GET_VARS['attribute_id']);
    
           tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_attributes_id = '" . (int)$attribute_id . "'");
    
    // added for DOWNLOAD_ENABLED. Always try to remove attributes, even if downloads are no longer enabled
           tep_db_query("delete from " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " where products_attributes_id = '" . (int)$attribute_id . "'");
    
           tep_redirect(tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info));
           break;
       }
     }
    
     require(DIR_WS_INCLUDES . 'template_top.php');
    ?>
    
       <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <!-- options and values//-->
         <tr>
           <td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td valign="top" width="50%"><table width="100%" border="0" cellspacing="0" cellpadding="2">
    <!-- options //-->
    <?php
     if ($action == 'delete_product_option') { // delete product option
       $options = tep_db_query("select products_options_id, products_options_name from " . TABLE_PRODUCTS_OPTIONS . " where products_options_id = '" . (int)$HTTP_GET_VARS['option_id'] . "' and language_id = '" . (int)$languages_id . "'");
       $options_values = tep_db_fetch_array($options);
    ?>
                 <tr>
                   <td class="pageHeading"> <?php echo $options_values['products_options_name']; ?> </td>
                 </tr>
                 <tr>
                   <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                     <tr>
                       <td colspan="3"><?php echo tep_black_line(); ?></td>
                     </tr>
    <?php
       $products = tep_db_query("select p.products_id, pd.products_name, pov.products_options_values_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pov.language_id = '" . (int)$languages_id . "' and pd.language_id = '" . (int)$languages_id . "' and pa.products_id = p.products_id and pa.options_id='" . (int)$HTTP_GET_VARS['option_id'] . "' and pov.products_options_values_id = pa.options_values_id order by pd.products_name");
       if (tep_db_num_rows($products)) {
    ?>
                     <tr class="dataTableHeadingRow">
                       <td class="dataTableHeadingContent" align="center"> <?php echo TABLE_HEADING_ID; ?> </td>
                       <td class="dataTableHeadingContent"> <?php echo TABLE_HEADING_PRODUCT; ?> </td>
                       <td class="dataTableHeadingContent"> <?php echo TABLE_HEADING_OPT_VALUE; ?> </td>
                     </tr>
                     <tr>
                       <td colspan="3"><?php echo tep_black_line(); ?></td>
                     </tr>
    <?php
         $rows = 0;
         while ($products_values = tep_db_fetch_array($products)) {
           $rows++;
    ?>
                     <tr class="<?php echo (floor($rows/2) == ($rows/2) ? 'attributes-even' : 'attributes-odd'); ?>">
                       <td align="center" class="smallText"> <?php echo $products_values['products_id']; ?> </td>
                       <td class="smallText"> <?php echo $products_values['products_name']; ?> </td>
                       <td class="smallText"> <?php echo $products_values['products_options_values_name']; ?> </td>
                     </tr>
    <?php
         }
    ?>
                     <tr>
                       <td colspan="3"><?php echo tep_black_line(); ?></td>
                     </tr>
                     <tr>
                       <td colspan="3" class="main"><br><?php echo TEXT_WARNING_OF_DELETE; ?></td>
                     </tr>
                     <tr>
                       <td align="right" colspan="3" class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_cancel.gif', ' cancel '); ?></a> </td>
                     </tr>
    <?php
       } else {
    ?>
                     <tr>
                       <td class="main" colspan="3"><br><?php echo TEXT_OK_TO_DELETE; ?></td>
                     </tr>
                     <tr>
                       <td class="main" align="right" colspan="3"><br><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_option&option_id=' . $HTTP_GET_VARS['option_id'] . '&' . $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_delete.gif', ' delete '); ?></a>   <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_cancel.gif', ' cancel '); ?></a> </td>
                     </tr>
    <?php
       }
    ?>
                   </table></td>
                 </tr>
    <?php
     } else {
    ?>
                 <tr>
                   <td colspan="3" class="pageHeading"> <?php echo HEADING_TITLE_OPT; ?> </td>
                 </tr>
                 <tr>
                   <td colspan="3" class="smallText" align="right">
    <?php
       $options = "select * from " . TABLE_PRODUCTS_OPTIONS . " where language_id = '" . (int)$languages_id . "' order by products_options_id";
       $options_split = new splitPageResults($option_page, MAX_ROW_LISTS_OPTIONS, $options, $options_query_numrows);
    
       echo $options_split->display_links($options_query_numrows, MAX_ROW_LISTS_OPTIONS, MAX_DISPLAY_PAGE_LINKS, $option_page, 'value_page=' . $value_page . '&attribute_page=' . $attribute_page, 'option_page');
    ?>
                   </td>
                 </tr>
                 <tr>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td colspan="4"><?php echo tep_black_line(); ?></td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                 </tr>
                 <tr class="dataTableHeadingRow">
                   <td class="dataTableHeadingContent"> <?php echo TABLE_HEADING_ID; ?> </td>
                   <td class="dataTableHeadingContent"> <?php echo TABLE_HEADING_OPT_NAME; ?> </td>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td class="dataTableHeadingContent"> <?php echo TABLE_HEADING_TRACK_STOCK; ?> </td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                   <td class="dataTableHeadingContent" align="center"> <?php echo TABLE_HEADING_ACTION; ?> </td>
                 </tr>
                 <tr>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td colspan="4"><?php echo tep_black_line(); ?></td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                 </tr>
    <?php
       $next_id = 1;
       $rows = 0;
       $options = tep_db_query($options);
       while ($options_values = tep_db_fetch_array($options)) {
         $rows++;
    ?>
                 <tr class="<?php echo (floor($rows/2) == ($rows/2) ? 'attributes-even' : 'attributes-odd'); ?>">
    <?php
         if (($action == 'update_option') && ($HTTP_GET_VARS['option_id'] == $options_values['products_options_id'])) {
           echo '
           $inputs = '';
           for ($i = 0, $n = sizeof($languages); $i < $n; $i ++) {
    /* LINE 290 */         $option_name = tep_db_query("select products_options_name from " . TABLE_PRODUCTS_OPTIONS . " where products_options_id = '" . $options_values['products_options_id'] . "' and language_id = '" . $languages[$i]['id'] . "'");
             $option_name = tep_db_fetch_array($option_name);
             $inputs .= $languages[$i]['code'] . ': <input type="text" name="option_name[' . $languages[$i]['id'] . ']" size="20" value="' . $option_name['products_options_name'] . '"> <br>';
           }
    ?>
                   <td align="center" class="smallText"> <?php echo $options_values['products_options_id']; ?><input type="hidden" name="option_id" value="<?php echo $options_values['products_options_id']; ?>"> </td>
                   <td class="smallText"><?php echo $inputs; ?></td>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td align="center" class="smallText"><input type=checkbox name=track_stock <?php echo $options_values['products_options_track_stock']?"checked":""; ?>></td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                   <td align="center" class="smallText"> <?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE); ?> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_cancel.gif', IMAGE_CANCEL); ?></a> </td>
    <?php
           echo '
         } else {
    ?>
                   <td align="center" class="smallText"> <?php echo $options_values["products_options_id"]; ?> </td>
                   <td class="smallText"> <?php echo $options_values["products_options_name"]; ?> </td>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td align="center" class="smallText"> <?php echo $options_values['products_options_track_stock']?"Yes":"No"; ?></td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                   <td align="center" class="smallText"> <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=update_option&option_id=' . $options_values['products_options_id'] . '&' . $page_info, 'NONSSL') . '">'; ?><?php echo tep_image_button('button_edit.gif', IMAGE_UPDATE); ?></a>  <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'action=delete_product_option&option_id=' . $options_values['products_options_id'] . '&' . $page_info, 'NONSSL') , '">'; ?><?php echo tep_image_button('button_delete.gif', IMAGE_DELETE); ?></a> </td>
    <?php
         }
    ?>
                 </tr>
    <?php
         $max_options_id_query = tep_db_query("select max(products_options_id) + 1 as next_id from " . TABLE_PRODUCTS_OPTIONS);
         $max_options_id_values = tep_db_fetch_array($max_options_id_query);
         $next_id = $max_options_id_values['next_id'];
       }
    ?>
                 <tr>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td colspan="4"><?php echo tep_black_line(); ?></td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                 </tr>
    <?php
       if ($action != 'update_option') {
    ?>
                 <tr class="<?php echo (floor($rows/2) == ($rows/2) ? 'attributes-even' : 'attributes-odd'); ?>">
    <?php
         echo '
         $inputs = '';
         for ($i = 0, $n = sizeof($languages); $i < $n; $i ++) {
           $inputs .= $languages[$i]['code'] . ': <input type="text" name="option_name[' . $languages[$i]['id'] . ']" size="20"> <br>';
         }
    ?>
                   <td align="center" class="smallText"> <?php echo $next_id; ?> </td>
                   <td class="smallText"><?php echo $inputs; ?></td>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td align="center" ><input type=checkbox name=track_stock></td>
                   <td align="left" class="smallText"> <?php echo tep_image_submit('button_insert.gif', IMAGE_INSERT); ?> </td>
    <?php
    //++++ QT Pro: End Changed Code
         echo '
    ?>
                 </tr>
                 <tr>
    <?php
    //++++ QT Pro: Begin Changed code
    ?>
                   <td colspan="4"><?php echo tep_black_line(); ?></td>
    <?php
    //++++ QT Pro: End Changed Code
    ?>
                 </tr>
    <?php
       }
     }
    ?>
               </table></td>
    <!-- options eof //-->

  4. Im at the point where im just trying to figure out how to import the sql ....

     

    first it said no database selected, so I made one (no mentioning in the manual what to call it or if it matters), then when I tried to import the sql it said no tables are in my Database.

     

    How the heck do I import it? lol. Thanks for any help!

     

    If you havn't already figured it out, simply copy the contents of the sql file and paste it in the quary window and click run or whatever the button says. It you made a tottally seperate database just for this, delete it and use the one that you use for the rest of your shop. Use the quary window, and not the import button/ method. This here is how I enter in new tables.

    - Luc

  5. Hi All,

     

    I am having a problem with my web page I designed for sts. I finally got my placeholders working. But now all of my external content that should be showing up, like my logo/ header, menu, and footer, are just generating a warning message.

     

    This is how I implement the code in my webpage: (Only way I know how.)

     

    <?php include("http://www.nasawear.com/script/mainmenu.php"); ?>

     

    These are only two of the warnings that I get on the page when I view it:

     

    Warning: include(script/logo.php) [function.include]: failed to open stream: No such file or directory in /hermes/bosweb/web139/b1399/ipg.nasawearcom/store/includes/sts_templates/blank/sts_blank_template.html on line 41
    
    Warning: include() [function.include]: Failed opening 'script/logo.php' for inclusion (include_path='.:/usr/local/lib/php-5.2.12/lib/php') in /hermes/bosweb/web139/b1399/ipg.nasawearcom/store/includes/sts_templates/blank/sts_blank_template.html on line 41
    

     

    This is the link to my store page that has all the warning messages: http://www.nasawear.com/store/

     

    Does anyone know what I am doing wrong. I'm not very good at php, setting up my shop is the first time I have used it. Thanks.

    By the way, if you would need a copy of the script for the page, then just PM me since I don't think I have header right and I don't know if that is causing the problem.

     

    - Luc

  6. .... :)

    You're wrong...

     

    STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

     

    You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

    Content Outside OSC

     

     

     

    Now, would somebody answer also my question please? :)

     

    I just put that contribution into my apparel page and all I got were error messages, I don't know what I did wrong, I followed the instructions, whitch were not very helpful and I did not work. This is the page: http://www.nasawear.com/apparel.php Does any one have any clue to why I am having all these problems?

     

    - Luc

  7. .... :)

    You're wrong...

     

    STS is a system designed to work INSIDE the OSC environment...it helps you creating in a far easier and versatile way templates to ovverride OSC standard (and pretty poor) graphics.

     

    You can't crate copies of pages inside OSC on the outside. What you could do could be calling some products and other modules outside Oscommerce with this simple contrib:

    Content Outside OSC

     

     

     

    Now, would somebody answer also my question please? :)

     

    Thanks for that information, but I have a few more questions.

     

    Would it be possible to bring the page I created and put it in the index file in the oscommerce folder or would that just mess everything up more? Secondly, would I be able to use the "Content Outside OSC" to put all of the content that you would normally find inside OSC on to the page I created to match my homepage and then use sts to change the look of the boxes to match my page? And finally does this mean sts is strictly for changing the look of the original OSC store and images?

     

    - Luc

  8. Well, first of all why have you got a file in oscommerce called apparel.php?

    My guess is that you renamed something....and you have somehow altered the standard oscommerce structure.

     

    I did not alter the names of any of the os commerce files. What I did do was make a new page that was almost a exact copy of my home page on the top level. I was hoping to use that as my store and just put the placeholders in that page since I already have how I want my shop to look. The original store is here: http://www.nasawear.com/store/.

    Correct me if I wrong, but I thought with sts I would be able to but the placeholders in any page I wanted to be my store like the page http://www.nasawear.com/apparel.php.

     

    - Luc

  9. Never Mind with this post, I fixed it. Turns out I only changed one file because I thought that the most resent version would include all of the files it. It would be nice if someone could make a complete packaged for it with all the files and bug fixes in included for the benefit of others who want to use it because right now it is very confusing to use and the files and bug fixes are scattered all over and the ways up fixing bugged files are different depending on who ever is giving the fix. This is a link to the contribution: http://addons.oscommerce.com/info/3302

     

    - Luc

  10. Hello All,

     

    I'm new to using sts and I am having a problem with it. I put a placeholder in to the page I am going to use for my shop home page (only my shop homepage not my website homepage:

    http://www.nasawear.com/apparel.php

    When I looked at the page I still see the placeholders and not the content that should be there when I visit it. I am stumped on why it not working. Can someone help me?

    Sorry if the answer turns out to be a no brainer, but osc is my first encounter with php.

    Thanks,

    -Luc

  11. Hi, I am new to os commerce and I am having trouble with the "Quantity for Product Attributes Mod".

    Before I get ahead of myself here are some specifications.

    Version: Online Merchant v2.2 RC2

    URL to half-way set up store: http://www.nasawear.com/store/

    Last update to Mod: 26 Nov 2009

    URL to Mod: http://www.oscommerce.com/community/contributions,3302

     

    I did exactly as the instructions said but when I go into my account it looks exactly the same as it was before and there is no difference. Can someone help me to get this to work? I need it because I have different sized clothing and each attribute is a size, so when one size is running low I need it to show up on the item page and in my admin account. Thanks for helping.

    - Luc

×
×
  • Create New...