Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dailce

Pioneers
  • Posts

    511
  • Joined

  • Last visited

Everything posted by dailce

  1. 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.
  2. 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.
  3. 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?
  4. 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.
  5. 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']; } } }
  6. 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.
  7. 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.
  8. I just installed it and seem to be having the same issue.
  9. Installed successfully on 2.3.1 with very little modifications. What's the best way to remove Tell a Friend?
  10. Can this be used with 2.3.1 ?
  11. 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);
  12. Jack you are awesome! that worked. I don't have STS or BTS, but rather a custom template. THANKS!
  13. 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
  14. 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?
  15. Installed and seems to be working great. Problem is if I enter say 10% off shipping at the checkout_confirmation.php shipping is shown to be $9.00 and discount shows -$0.90 however, the $0.90 is not taken off from the total?
  16. Not sure but /_cart/postapproval.mhtml is not part of this contribution. Maybe it's a part of InternetSecure's?? If you check the code of this contribution mhtml is not used anywhere! Are you sure your InternetSecure settings are set up correctly? Check your InternetSecure Export Script options at Internetsecure.com. These are the only settings I have in the export scripts: Domain Name: should be the domain of your catalog directory ie. http://www.mysite.com OR http://www.mysite.com/catalog Web Page: /internetsecure_ml.php HTTP Authentication Details (if applicable) Set up a Password and user name here if using http auth. Approvals Only: should be checked. and finally set your alert email
  17. This worked like a charm for me. Seems to be running great now! Thanks :)
  18. I'll look into it, but can't promise you anything - sorry :( I do want to add more features and hop I can soon - just need time. If there are any more experts that can help, then that would be great.
  19. Contact InternetSecure.com directly to setup an account. There is a set up fee, I think we paid $100 and there is also a monthly fee. Transactions have a small fee and merchant discount rate (percentage the credit card companies charge).
  20. That's a great idea. Anyone have mad skillz to do this? I currently need both the credit card and interac modules.
  21. Try using a Authorize.net contribution, apparently you can use one of these contributions as a substitute for InternetSecure. So basically, you can have customers use their credit card directly on your site without being directed to InternetSecure's site for processing.
  22. Sorry my bad, has to do with some code I changed on my site for payment images. I have the following. I will set it back to previous versions. <?php //Payment Image for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) { echo $selection[$i]['fields'][$j]['payment_image']; } ?>
  23. Ok, I narrowed it down to this bit of code if ( MODULE_SHIPPING_FREECATS_ONLY_OR_ANY == 'Only' ){ //check if product id exist elsewhere except free cats $check_query = tep_db_query('select * from '.TABLE_PRODUCTS_TO_CATEGORIES.' where categories_id not in ('.MODULE_SHIPPING_FREECATS_CATEGORIES.') and products_id in ('.$pID_list.')'); if (tep_db_num_rows($check_query)){ $is_free = false; } } Basically if you have Only selected then it checks if product id exist elsewhere except free cats. Just need to write it to say, check if all products are in FREECATS How?
  24. I've tested this contribution, seems to be working quite well. However, I noticed one problem I'm trying to fix. I have products in CAT1, and CAT1 offers free shipping for all products in CAT1 - Works great. However, I can't get Free shipping to work if I link a product to CAT1. For instance, I want to copy an existing product by linking it from CAT2 to CAT1, but the free shipping for this product won't work if I do this. If I create a "Duplicate" product from CAT2 to CAT1 it works, but I'd like to be able to create the "linked" product. Any ideas?
  25. I had the same error, but realized that I updated the wrong files. Careful, you may have done the same, make sure you update the admin files and catlog files as needed.
×
×
  • Create New...