Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Option Type Feature v1.6 (for osc 2.2 MS2)


Guest

Recommended Posts

  • Replies 799
  • Created
  • Last Reply

Top Posters In This Topic

I've fixed my problem. If anyone has similar experience, there is a line that needs to be changed:

 

Around line 145 of includes/classes/shopping_cart.php:

// update database
     if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET . " set customers_basket_quantity = '" . $quantity . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'");

 

Change to:

// update database
     if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . (int)$value . "', products_options_value_text = '" . tep_db_input($attr_value) . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "' and products_options_id = '" . (int)$option . "'");

 

Chris B.

Hi all,

 

I've got this contrib installed and it's been working on my site - off & on. The only option I am using is the "textarea" box for gift card messages. My problem is this:

 

1) Customer selects product #1

2) Types in message

3) Continues to shop

4) Selects product #2

5) Types in message

6) Goes to shopping cart

7) Realizes they don't want item #1, so they select "Remove" and clicks on "Update Cart" button

 

The Problem:

The text from the textarea box will disappear from the remaining product in their cart.

 

You can test at My Site, but please do not complete orders because the site is *LIVE*. (Unless, of course, you see something you like.  :D ) You shouldn't have to create an account to see your shopping cart, so you will be anonymous.

 

Any and all help would be greatly appreciated!

 

Chris B.

Edited by CAnneB2
Link to comment
Share on other sites

You the man!

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

alrighty ... I know that there are a lot of posts regarding the sort, but I just cannot seem to get the sort to work ... can anyone take a look at the code and let me know if I'm missing something please????

 

 

          case PRODUCTS_OPTIONS_TYPE_CHECKBOX:
           //CLR 030714 Add logic for checkboxes
           $products_attribs_query = tep_db_query("select distinct patrib.options_values_id, patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "' order by options_values_id ASC");
           $products_attribs_array = tep_db_fetch_array($products_attribs_query);
           echo '<tr><!-- <td align="center"><font color="#0000FF" face="Verdana, Arial, Helvetica, sans-serif">' . $products_options_name['products_options_name'] . ': </font></td> --><td><font color="#0000FF" face="Verdana, Arial, Helvetica, sans-serif">';
           echo tep_draw_checkbox_field('id[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']);
           echo $products_options_name['products_options_comment'];
           if ($products_attribs_array['options_values_price'] != '0') {
             echo ' (' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
           }
           echo '</font></td></tr>';
           break;

 

Thanks for any help!!!!

Link to comment
Share on other sites

Has anyone figured out the sort?? also how to I install images for radio buttons, and text?

 

thanks !

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

alrighty ... I know that there are a lot of posts regarding the sort, but I just cannot seem to get the sort to work ... can anyone take a look at the code and let me know if I'm missing something please????

 ? ? ? ? ?case PRODUCTS_OPTIONS_TYPE_CHECKBOX:
? ? ? ? ? ?//CLR 030714 Add logic for checkboxes
? ? ? ? ? ?$products_attribs_query = tep_db_query("select distinct patrib.options_values_id, patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "' order by options_values_id ASC");
? ? ? ? ? ?$products_attribs_array = tep_db_fetch_array($products_attribs_query);
? ? ? ? ? ?echo '<tr><!-- <td align="center"><font color="#0000FF" face="Verdana, Arial, Helvetica, sans-serif">' . $products_options_name['products_options_name'] . ': </font></td> --><td><font color="#0000FF" face="Verdana, Arial, Helvetica, sans-serif">';
? ? ? ? ? ?echo tep_draw_checkbox_field('id[' . $products_options_name['products_options_id'] . ']', $products_attribs_array['options_values_id']);
? ? ? ? ? ?echo $products_options_name['products_options_comment'];
? ? ? ? ? ?if ($products_attribs_array['options_values_price'] != '0') {
? ? ? ? ? ? ?echo ' (' . $products_attribs_array['price_prefix'] . $currencies->display_price($products_attribs_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
? ? ? ? ? ?}
? ? ? ? ? ?echo '</font></td></tr>';
? ? ? ? ? ?break;

 

Thanks for any help!!!!

Link to comment
Share on other sites

Hey great contrib!! Is working fine, but i was wondering how do i make a suggested TEXT option.

 

When the product_info.php is loaded, I would like the customer to see the "add engraving" text option, but have maybe the product name already filled in the box as a suggestion for the value. Has anyone tried this or know how to make it work!

 

Thanks in advance

James

James Tomasello

Link to comment
Share on other sites

ok I spoke too soon... When I decided to add a new product for the first time after installing this contrib I noticed that the "products name" and "products description" input fields and name are gone from the screen but not from the code. Everything else is there, no errors just those fields are missing... any clue?

 

 <?php echo tep_draw_form('new_product', FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '') . '&action=new_product_preview', 'post', 'enctype="multipart/form-data"'); ?>
   <table border="0" width="100%" cellspacing="0" cellpadding="2">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo sprintf(TEXT_NEW_PRODUCT, tep_output_generated_category_path($current_category_id)); ?></td>
           <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_STATUS; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_radio_field('products_status', '1', $in_status) . ' ' . TEXT_PRODUCT_AVAILABLE . ' ' . tep_draw_radio_field('products_status', '0', $out_status) . ' ' . TEXT_PRODUCT_NOT_AVAILABLE; ?></td>
         </tr>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?><br><small>(YYYY-MM-DD)</small></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' '; ?><script language="javascript">dateAvailable.writeControl(); dateAvailable.dateFormat="yyyy-MM-dd";</script></td>
         </tr>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></td>
         </tr>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>


<?php


if( empty($pInfo->products_id) ){

    $iteration = 0;

}else{

           $getOptionsCount_query = tep_db_query('SELECT count(
           DISTINCT  products_attributes_sets_id ) as count
           FROM  '. TABLE_PRODUCTS_ATTRIBUTES_SETS_TO_PRODUCTS .'
           WHERE  `products_id`  ='.$pInfo->products_id);


    $arr_getOptionsCount = tep_db_fetch_array($getOptionsCount_query);

    $arr_pas_id = jjg_db_getAttributeSetId($pInfo->products_id);
    if( !empty($arr_pas_id) ){

        $iteration = $arr_getOptionsCount['count'];

    }
}

for($i=0; $i <= $iteration; $i++){
?>
         <tr>
           <td class="main">
           <?php
          	 if( isset($pID) ){
                   if( $i == $iteration  ){
                 echo "Add An " . TEXT_PRODUCTS_ATTRIBUTES_SET;
                   }else{
                 echo "Using " . TEXT_PRODUCTS_ATTRIBUTES_SET;
                   }
          	 }

           ?>
           </td>
           <td class="main">
          	 <?php
          	 if( isset($pID) ){
             if( $i == $iteration ){
            	 echo tep_draw_separator('pixel_trans.gif', '30', '1').
                       '<a href="' . tep_href_link(
                       FILENAME_PRODUCTS_ATTRIBUTES_SETS_EDIT, 'pID='.$_GET['pID'].'&cPath='.$_GET['cPath']) .
                       '" >'. tep_image_button('button_add_as.gif',
                       '[Click To Add An A.S.]' )  .'</a>';
             }else{
            	 echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ';
            	 echo $attribute_sets_names_array[$arr_pas_id[$i]];
            	 echo tep_draw_separator('pixel_trans.gif', '24', '15');
            	 echo tep_draw_checkbox_field('remove_products_attributes_sets_id_'.$i);
            	 echo "<font size=-3>(Remove Set)</font>";
            	 echo tep_draw_hidden_field('products_attributes_sets_id_'.$i,
                       $arr_pas_id[$i]);
             }
               }
           ?>

           </td>
         </tr>
<?php
}
?>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?>
           <?php echo tep_draw_hidden_field('AttributeSetCount', $arr_getOptionsCount['count']+1); ?>
           </td>
         </tr>
<?php
   for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>          <tr>
           <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_NAME; ?></td>
           <td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (isset($products_name[$languages[$i]['id']]) ? $products_name[$languages[$i]['id']] : tep_get_products_name($pInfo->products_id, $languages[$i]['id']))); ?></td>
         </tr>
<?php
   }
?>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
   <tr bgcolor="#ebebff">
           <td class="main"><?php echo TEXT_PRODUCTS_TAX_CLASS; ?></td>
           <td class="main"><?php
    $prices_num = tep_xppp_getpricesnum();
       $gross_update = 'updateGross(\'products_price\');';
             for ($i=2; $i<=$prices_num; $i++)
     $gross_update .= 'updateGross(\'products_price_'. $i . '\');';
       echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_tax_class_id', $tax_class_array, $pInfo->products_tax_class_id, 'onchange="' . $gross_update .'"'); ?></td>
         </tr>
   <tr bgcolor="#ebebff">
           <td class="main" colspan="2"><br><?php echo ENTRY_PRODUCTS_PRICE . " 1";?></td>
         </tr>
         <tr bgcolor="#ebebff">
           <td class="main"><?php echo TEXT_PRODUCTS_PRICE_NET; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price', $pInfo->products_price, 'onKeyUp="updateGross(\'products_price\')"'); ?></td>
         </tr>
         <tr bgcolor="#ebebff">
           <td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_gross', $pInfo->products_price, 'OnKeyUp="updateNet(\'products_price\')"'); ?></td>
         </tr>

   <?php
    $prices_num = tep_xppp_getpricesnum();
             for ($i=2; $i<=$prices_num; $i++) {?>

         <tr bgcolor="#ebebff">
           <td class="main" colspan="2"><br><?php echo ENTRY_PRODUCTS_PRICE . " " . $i;?> <input type="checkbox" name="<?php echo "checkbox_products_price_" . $i;?>" <?php
      $products_price_X = "products_price_" . $i;
      if ($pInfo->$products_price_X != NULL) echo " checked "; ?> value="true" onClick="if (!<?php echo "products_price_" . $i;?>.disabled) { <?php echo "products_price_" . $i;?>.disabled = true;  <?php echo "products_price_". $i . "_gross";?>.disabled = true; } else { <?php echo "products_price_" . $i;?>.disabled = false;  <?php echo "products_price_". $i . "_gross";?>.disabled = false; } "></td>
         </tr>
         <tr bgcolor="#ebebff">
           <td class="main"><?php echo TEXT_PRODUCTS_PRICE_NET; ?></td>
           <td class="main"><?php
   $products_price_X = "products_price_" . $i;
      if ($pInfo->$products_price_X == NULL) {
     echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_' . $i, $pInfo->$products_price_X, 'onKeyUp="updateGross(\'products_price_' . $i .'\')", disabled');
   } else {
     echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_' . $i, $pInfo->$products_price_X, 'onKeyUp="updateGross(\'products_price_' . $i .'\')"');
   } ?></td>
         </tr>
         <tr bgcolor="#ebebff">
           <td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS; ?></td>
           <td class="main"><?php
   $products_price_X = "products_price_" . $i;
      if ($pInfo->$products_price_X == NULL) {
     echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_'. $i . '_gross', $pInfo->$products_price_X, 'OnKeyUp="updateNet(\'products_price_' . $i .'\')", disabled');
   } else {
     echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price_'. $i . '_gross', $pInfo->$products_price_X, 'OnKeyUp="updateNet(\'products_price_' . $i .'\')"');
   } ?>
	 </td>
         </tr>

   <?php } ?>

         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>

<script language="javascript">
updateGross('products_price');
<?php
 $prices_num = tep_xppp_getpricesnum();
 for ($i=2; $i<=$prices_num; $i++) echo 'updateGross(\'products_price_' . $i . '\');';
?>
</script>
<?php
   for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
         <tr>
           <td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
           <td><table border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
               <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>
             </tr>
           </table></td>
         </tr>
<?php
   }
?>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td>
         </tr>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_MODEL; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_model', $pInfo->products_model); ?></td>
         </tr>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td>
         </tr>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
<?php
   for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
         <tr>
           <td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_URL . '<br><small>' . TEXT_PRODUCTS_URL_WITHOUT_HTTP . '</small>'; ?></td>
           <td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('products_url[' . $languages[$i]['id'] . ']', (isset($products_url[$languages[$i]['id']]) ? $products_url[$languages[$i]['id']] : tep_get_products_url($pInfo->products_id, $languages[$i]['id']))); ?></td>
         </tr>
<?php
   }
?>
         <tr>
           <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?></td>
           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_weight', $pInfo->products_weight); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
     </tr>
     <tr>
       <td class="main" align="right"><?php echo tep_draw_hidden_field('products_date_added', (tep_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . '  <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>
     </tr>
   </table></form>

 

 

From what i see it should work... what am i overlooking?

James Tomasello

Link to comment
Share on other sites

I got it!! I must have erased this from the file.

 

$languages = tep_get_languages();

   if (!isset($pInfo->products_status)) $pInfo->products_status = '1';
   switch ($pInfo->products_status) {
     case '0': $in_status = false; $out_status = true; break;
     case '1':
     default: $in_status = true; $out_status = false;
   }

 

is working again!!

James Tomasello

Link to comment
Share on other sites

Has anyone figured out the sort?? also how to I install images for radio buttons, and text?

 

thanks !

 

Hello

 

Images for radio buttons you have just to put html code for insert image in the text field

<img src=images/image.jpg> nameoptional

 

exactly like this without blank and quote

 

And I search too how sort attribut :rolleyes:

Link to comment
Share on other sites

  • 2 weeks later...

Sort Order...again! I've seen a lot of posts relating to this problem and several suggested hacks, but no clear answers as to why we can't get product options to sort correctly. It goes without saying I'm also having the same problem and I've tried every suggestion posted in this forum with no success.

 

This is a pretty well reported issue so I'm wondering if we can have a show of hands from anyone who is working on a solution to this problem? As a non programmer I'm afraid I can't offer much help, but I'll be happy to test anything that might fix this problem.

 

Thanks in advance.

Link to comment
Share on other sites

Sort Order...again! I've seen a lot of posts relating to this problem and several suggested hacks, but no clear answers as to why we can't get product options to sort correctly. It goes without saying I'm also having the same problem and I've tried every suggestion posted in this forum with no success.

 

This is a pretty well reported issue so I'm wondering if we can have a show of hands from anyone who is working on a solution to this problem? As a non programmer I'm afraid I can't offer much help, but I'll be happy to test anything that might fix this problem.

 

Thanks in advance.

 

I?m searching for a way to sort the product options, too. I installed "Option Type Feature" and "Attribute Copier". To create different Options with Text, DropDown, RadioButton etc. is very comfortable now. As well as to sort the order of Attributes e.g. within a Dropdown. But I can?t see no way to sort the options.

Link to comment
Share on other sites

This has been an absolute nightmare to install, but I'm almost there I can see the light at the end of the tunnel now I think. However I seem to be having a problem in the shopping cart when I add more items than are currently available to my cart (I allow checkout even with insufficent stock) then it goes crazy and displays this error:

1064 - You have an error in your SQL syntax near '{txt_5}my name ' at line 1

select products_id, last_one FROM products where products_id = 81{txt_5}my name

 

Any idea on what is causing this, or has anyone experience simular?

Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Link to comment
Share on other sites

I searched around a bit for the answer to my problem, but wasn't able to find it.

Here is what it is.

 

I have an item with text boxes and a text area. I fill them out and add it to the cart. Then I click on the item becuase I want to change what it says in the textarea. The link takes me back to the item with all the attributes correctly filled in EXCEPT for the textarea. The textboxes work fine, but the textarea doesn't have anything in it.

 

Any help would be appreciated. Thanks.

Link to comment
Share on other sites

I have had this contribution installed for a while now. However, I have one problem I have been unable to solve. Whenever someone fills in a text field, the text they entered shows up in the cart, but it does not show the "name" of the text field in the cart or in the admin.

 

This gets confusing when you have more than 1 text field available per product.

 

Take a look at this link and enter some text into the fields. You will see that the drop-down field names are listed in the cart, but not the text ones.

 

http://www.shophsj.com/product_info.php/cP.../products_id/65

 

Does anyone have a solution for this?

 

Thanks,

Travis

Link to comment
Share on other sites

I have had this contribution installed for a while now. However, I have one problem I have been unable to solve. Whenever someone fills in a text field, the text they entered shows up in the cart, but it does not show the "name" of the text field in the cart or in the admin.

 

This gets confusing when you have more than 1 text field available per product.

 

Take a look at this link and enter some text into the fields. You will see that the drop-down field names are listed in the cart, but not the text ones.

 

http://www.shophsj.com/product_info.php/cP.../products_id/65

 

Does anyone have a solution for this?

 

Thanks,

Travis

 

After reading this entire forum last week looking for my answers I can say with certainty you mis-installed something or missed one of the lines. It is poorly documented so you need to use a file checker to find all the changed lines because they are not all labeled.

Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Link to comment
Share on other sites

I searched around a bit for the answer to my problem, but wasn't able to find it.

Here is what it is.

 

I have an item with text boxes and a text area.  I fill them out and add it to the cart.  Then I click on the item becuase I want to change what it says in the textarea.  The link takes me back to the item with all the attributes correctly filled in EXCEPT for the textarea.  The textboxes work fine, but the textarea doesn't have anything in it.

 

Any help would be appreciated.  Thanks.

 

i'm having the same problem. i add a product to the cart, then click on it from the cart to update something in a textarea and when i get the the product info page the textarea box is blank BUt all the textboxes are still filled in... then when i reenter info in the textarea and hit add to cart a completely new item is entered into the cart and i have to remove the first item i wanted to edit.

Link to comment
Share on other sites

when I add a TEXT field as a sole attribute, it never shows up in the cart/checkout

 

You likely mis-installed something or missed one of the lines. You need to use a file checker to find all the changed lines because they are not all labeled.

Most Valuable OsCommerce Contributions:

Also Purchased (AP) Preselection (cuts this resource hogging query down to nothing) -- Contribution 3294

FedEx Automated Labels -- Contribution 2244

RMA Returns system -- Contribution 1136

Sort Products By Dropdown -- Contribution 4312

Ultimate SEO URLs -- Contribution 2823

Credit Class & Gift Voucher -- Contribution 282

Cross-Sell -- Contribution 5347

Link to comment
Share on other sites

You likely mis-installed something or missed one of the lines. You need to use a file checker to find all the changed lines because they are not all labeled.

 

no i didn't BUT i did find the fix.

it is in application_top.php

//if (is_numeric($key) && $key==(int)$key && is_numeric($val) && $val==(int)$val)//comment this out to allow TEXT as a sole attribute...otherwise it is never applied to the cart

 

maybe this contrib does not have this problem out of the box, but commenting this line out works with the contribs i have...and qt pro is the only one i can think of that deals with the same functionality

Link to comment
Share on other sites

ALmost got this 100%

 

The text boxes that have the info for the order are showing correctly in the shopping cart and the order email.

 

But, the words "TEXT" appear in the account history and the invoice pages - at least when they purchase using money order.

 

Anyone else having this problem? I haven't tested paypal nor 2checkout yet.

Link to comment
Share on other sites

I've manage to get this working properly now, however i'm currently using checkboxes for my attributes and they are listed vertical like:

Option 1 []

Option 2 []

Option 3 []

Option 4 []

 

What i would like to know is if it is possible to get them to be horizontal like:

 

Option 1 [] Option 2 [] Option 3 [] Option 4 []

Link to comment
Share on other sites

I've manage to get this working properly now, however i'm currently using checkboxes for my attributes and they are listed vertical like:

Option 1 []

Option 2 []

Option 3 []

Option 4 []

 

What i would like to know is if it is possible to get them to be horizontal like:

 

Option 1 [] Option 2 [] Option 3 [] Option 4 []

 

I think somewhere in these 17 pages of support someone asked the question, and someone provided a potential answer.

 

 

 

ALmost got this 100%

 

The text boxes that have the info for the order are showing correctly in the shopping cart and the order email.

 

But, the words "TEXT" appear in the account history and the invoice pages - at least when they purchase using money order.

 

Anyone else having this problem? I haven't tested paypal nor 2checkout yet.

 

 

Okay, I've looked at the database of orders, and the text values are simply "TEXT", so they are not be written to the database for some reason.

 

Odd thing is that the order email, the customer's email, and the shopping cart all have the text the customer entered.

 

Any ideas where I can look? Which file actually writes the data to the database..

Edited by varnco
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...