Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

kirikintha

Archived
  • Posts

    255
  • Joined

  • Last visited

About kirikintha

  • Birthday 11/05/1975

Profile Information

kirikintha's Achievements

  1. Oh yeah - after what a few months and no reply, I figured it out on my own. Good luck everyone.
  2. Hello everyone, I do not know if this has been resolved, but I am having the same problem as this guy. I am getting everything but the switch for the text_field and text boxes, the code I have for Wishlist 3.5 still does not allow for text attibutes to show up. I get the select box, check boxes etc. The input looks like this: <td class="main"><input name="id[txt_5]" size="30" maxlength="30" value="" type="text"> </td> </tr> <tr> <td class="main">Gift Certificate Message</td> <td class="main"><select name="id[9]"><option value="6">Best Wishes</option><option value="12">Congratulations</option><option value="15">Get Well Soon</option><option value="13">Good Luck</option><option value="11">Happy Anniversary</option><option value="10">Happy Birthday</option><option value="18">Happy Mother's Day</option><option value="19">Happy Valentine's Day</option><option value="16">Merry Christmas</option><option value="14">I Love You</option></select></td> </tr> <!-- DDB - 041031 - Form Field Progress Bar //--> <tr> <td class="main">Name(s)<br>(Add Your Name(s) Here)</td> <td class="main"><textarea onkeydown="textCounter(this,'progressbar2',100)" onkeyup="textCounter(this,'progressbar2',100)" onfocus="textCounter(this,'progressbar2',100)" name="id[txt_2]" rows="5" id="id[txt_2]"></textarea> <div style="width: 0px;" id="progressbar2" class="progress">Limit: 0%</div> <script>textCounter(document.getElementById("id[txt_2]"),"progressbar2",100)</script></td> </tr> <tr><td class="main">Please Email My Certificate: <br></td><td class="main"><input name="id[10]" value="0" type="checkbox"></td></tr><tr><td class="main">Please Mail My Certificate: <br></td><td class="main"><input name="id[4]" value="0" type="checkbox"></td></tr> If you Enter the information the output you see is this: Gift Certificate $25.00 : Gift Certificate Message: Best Wishes : Please Email My Certificate: TEXT Please Mail My Certificate: TEXT I have been doing my best to figure out where the problem is originating, and my best guess is that it is something to do with this additional code in shopping_cart.php that is not in wishlist.php //clr 030714 determine if attribute is a text attribute and assign to $attr_value temporarily if ($value == PRODUCTS_OPTIONS_VALUE_TEXT_ID) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']', $products[$i]['attributes_values'][$option]); $attr_value = $products[$i]['attributes_values'][$option]; //print(PRODUCTS_OPTIONS_VALUE_TEXT_ID); //print($attr_value .': <br />'); } else { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attr_value = $attributes_values['products_options_values_name']; //print(PRODUCTS_OPTIONS_VALUE_TEXT_ID); //print($attr_value .': <br />'); } $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'] .': '; $products[$i][$option]['options_values_id'] = $value; //clr 030714 assign $attr_value $products[$i][$option]['products_options_values_name'] = $attr_value; //$products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; // $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; But, because the process in shopping_cart.php is different for displaying the results (ie an infobox array) I can't for the life of me figure out how to modify the existing code! Any help would be greatly appreciated!
  3. Well, I hope everyone can use this information in order to find the answer here to the updated code problem - as far as I can tell everything works gorgeous on my shopping_cart.php What was wrong - in the original code for the install, and the one previously posted in this post does not include "$attributes_values = tep_db_fetch_array($attributes);" - this is how the sql translates into the array - it took me forever to realize that '$attr_value = $attributes_values['products_options_values_name'];' was not declared anywhere in any of the inlucded files. Thanks again JanZ for allowing me to know which code was offending - PS - STS does not seem to be the problem for this particular problem, however I am not using a product_info.php STS template page NOTE: There are print() commands in there - so you can see what is happening, just comment them out. -Cheers!
  4. Hi Jan thank you so much for replying, really thank you. Can you tell me specifically which files you would like to look at? I will post the codes for those. once again thank you so much for the reply!
  5. HI Bill thanks for the feedback - not using the product_info template - I saw another post a while ago in my installation that said I may have run into problems, I am using the catalog_shopping_cart - but I saw no effect in taking that away. I have been looking at the output of the contribution and I am finding that it just looks like the values for those specific options are just not being recieved and/or read properly from the action of adding it to the shopping cart. I did add a piece of code from this forum: http://www.oscommerce.com/forums/index.php?sho...mp;#entry994422 go all the way down to JanZ's post so I'm using what they came up with. now I'm trying to debug that. >_<
  6. Hello everyone I have Option Type Feature 1.7 working on osCommerce 2.2 Milestone 2 Update 051113 with the STS template system. Everything on Option Type seems to be working, I am able to pass the products attributes through the entire path of the OSC Cart, I get the attributes in the email - everything. However, say I add a product. Got to product_info.php - get all the attributes. I have three attributes, textarea, select and a checkbox. Select your desired attributes, add some text all fine 100%. Then, select add to cart. When I am in shopping_cart.php I can see only the text area attibutes and the '-' separator for each other attribute. No select, no checkbox message. Just the text. like this: Product name - -Hello this is text - then, when I go to checkout, and get to checkout_payment.php ALL OF A SUDDEN I HAVE ALL THE FIELDS!!! if I go back to the shopping_cart.php no fields - back to payment all the fields. All the way through the checkout process. I get my confirmation email and all the selected attributes are there as well. So, obviously something is wrong in the cart, but I cannot figure out why the values are not being passed? I must admit I read through a lot of posts before posting this, so I know my version of this contribution has been tweaked from a lot of other posts. Anyone have any good ideas? I cannot figure out why it works for one and not the other Thanks! :blink:
×
×
  • Create New...