

dailce
Members-
Content count
511 -
Joined
-
Last visited
Profile Information
-
Real Name
Ilchy
-
Gender
Male
-
Hi, having a strange problem on the admin side. THIS IS OK: On the admin side if I add a new category and leave the headertags fields blank, then the category will be created and when I check the database the tags are filled with the categories_name (categories_htc_description is blank in the database). Now if I press edit category, the fields will show as blanks, but they are in the database. If I update the category name it updates fine, but if I enter anything in the header tag fields they don't update. I checked with firebug and the values are being posted.
-
I decided to use the latest attributes manager, I found the issue was in attributeManager.class.php. I included the original attributeManager.class.php file from OptionTypes in the latest version of the attributes manager folder, and it seems to be working well.
-
Well attributes manager seems to be working ok, however, it's not pulling the optiontype value: CUSTOMER-INPUT. Nor is there an option to choose/set length value for text or the option type. Seems like it's not using the option type settings, but rather just functioning as normal. One thing I notice is that if I have a say: Option Name = "mycustomtext" Option Value = "CUSTOMER-INPUT" etc... set in products_attributes.php I can add this to a product from products_attributes.php just fine. However, if I go edit a product, the attributemanger will show "mycustomtext" as a new option, attributemanger won't let me add it because there is no value being pulled for this option - it's blank. Seems that may be the problem. I don't see any code in the included attributemanger that refers to text, may just be it was just included but not modified for optiontypes specifically, maybe I'm wrong?
-
Does anyone have the full install instructions for attributes manager? I had the latest attributes manager installed prior to installing option types. I didn't the option types attribute manger folder, I just want to know what changes need to be made. Thanks.
-
Finwood, CUSTOMER-INPUT: look for a block of code that looks similar to this and see what you are missing. I had a similar problem. See if you are missing: if ($value == 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]; } else { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attr_value = $attributes_values['products_options_values_name']; } the full block of code should be something like this: for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); if ($value == 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]; } else { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attr_value = $attributes_values['products_options_values_name']; } $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $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']; } } }
-
Anyone know how to force only one product per attribute for the text field? Basically if I type something in the text field and add to cart, work as normal - product 1 - quantity 1 - textfield - AAAAA. Now if the buyer goes back and enters something new in the text field - say BBBB - then update the qty to 2 and update the text field. Basically don't allow the cart to add 2 of the same product with 2 different text fields - so we have - product 1 - quantity 2 - textfield - BBBB.
-
I followed the install instructions for 2.3.1, everything worked except text fields, text areas, and checkboxes. I then applied these changes below and it seems to be working well. Gonna do more tests, but seems good. Thanks.
-
Option Types V2 problem adding to cart
dailce replied to winemaster's topic in General Add-Ons Support
I just installed it and seem to be having the same issue. -
Installed successfully on 2.3.1 with very little modifications. What's the best way to remove Tell a Friend?
-
Can this be used with 2.3.1 ?
-
Sort Order, in Shopping cart, Shopping cart box, checkout and order. In 2.3.1 v 1.0
dailce replied to peteravu's topic in General Add-Ons Support
I have a slightly modifed shopping cart, and wonder if this is ok to sort 4 fileds, first by Parent Category name, then Subcategory name, then Product name, and product attributes. A little hard to get my head around array_multisort. What should array_map be applied to? Why isn't it applied to attributes in your original code? foreach ($products as $key => $row) { $parcater[$key] = $row['parentcatname']; $subcater[$key] = $row['subcatname']; $attributes[$key] = $row['attributes']; $name[$key] = $row['name']; } array_multisort(array_map('strtolower',$parcater), $subcater, array_map('strtolower',$name), $attributes, SORT_ASC, $products, SORT_ASC); -
Jack you are awesome! that worked. I don't have STS or BTS, but rather a custom template. THANKS!
-
More details: Catlog side shows replace me in page control for the title so I know it's installed right. OSC 2.3.1. template_top.php has: <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <?php } /*** End Header Tags SEO ***/ ?> In the admin section, header_tags_seo.php, where it says "Select an Option:" no matter which option I choose it doesn't load anything below. I think it has to do with $newfiles[$x]['text'] $pageTags_query = tep_db_query("select page_title, page_description, page_keywords, page_logo, page_logo_1 as alt_1, append_category as opt_0, append_manufacturer as opt_1, append_model as opt_2, append_product as opt_3, append_root as opt_4, append_default_title as opt_5, append_default_description as opt_6, append_default_keywords as opt_7, append_default_logo as opt_8, sortorder_category as opt_9, sortorder_manufacturer as opt_10, sortorder_model as opt_11, sortorder_product as opt_12, sortorder_root as opt_13, sortorder_title as opt_14, sortorder_description as opt_15, sortorder_keywords as opt_16, sortorder_logo as opt_17 from " . TABLE_HEADERTAGS . " where page_name like '" . $newfiles[$x]['text'] . "' and language_id = '" . (int)$languages[$i]['id'] . "' LIMIT 1"); If I add say "echo $newfiles[0]['text']" prior to this call it prints the options. echo $newfiles[0]['text']; //prints Select A File echo $newfiles[1]['text']; //prints Show All Files echo $newfiles[2]['text']; //prints Add Missing Pages Also, when I run a test it says: Missing Code in File explain The Header Tags head code for the index.php file cannot be found. The Header Tags head code for the product_info.php file cannot be found. The Header Tags head code for the product_reviews.php file cannot be found. The Header Tags head code for the product_reviews_info.php file cannot be found. The Header Tags head code for the product_reviews_write.php file cannot be found. The Header Tags head code for the specials.php file cannot be found. However, the code is definately there
-
Just installed, working good. However, in ADMIN, when I click "Page Control", there is a dropdown with "select a file", "show all files", etc... but the left side is blank. No matter which option I choose nothing happens. Any ideas?
-
Jquery vs Mootools for OSCv3 From what I've read OSCv3 will use jQuery. I like jQuery but I'm a bigger fan of mootools, will users have the option to easily change the javascript library, or is OSCv3 heavily dependent on jQuery?