Jump to content

Zappo

Members
  • Content count

    201
  • Joined

  • Last visited

Everything posted by Zappo

  1. This contribution is built on top of osCommerce 2.2rc2a. It is an update/upgrade/revision/compilation of the following contributions: * Option Type Feature v3 (Originally by Chandra Roukema) * Option Type File Feature v.8 (Originally by Matt Fletcher) * AJAX Attribute Manager v2.8.6 ((Almost unchanged) Originally by Sam West) * Improvements by me (AvanOsch aKa Zappo the Wizard of Osch) Please post questions, comments, request, etc. right here! The Contribution Page can be found here: http://www.oscommerce.com/community/contributions,xxxx
  2. This contribution is built on top of: * osCommerce 2.2rc2a * "Product Types" Contribution Product Types is used as base, to seperate the Main and Linked products This allows us to Link Products (and Types) together, and display/use them in various ways. The Contribution can be found here: http://addons.oscommerce.com/info/6842
  3. Zappo

    [Contribution] Option Types v2

    Hi everyone, Stepping in for a second, to tell ya'll I am no longer an osCommerce user (and thus no longer actively developing contributions for osCommerce) Sorry everyone, but the osCommerce code was getting too messy, old (using deprecated HTTP_*_VARS 'n stuff), and difficult to keep up to date (especially when using multiple 'conflicting' contributions). To be fair, I haven't really checked out the new release (>= 2.3), but noticed the deprecated HTTP_VARS are still implemented... I won't promote any other Open source shopping Cart software, but I am converting to another package. Now, to properly reply to your question, Celebman1: I have searched for that function (tep_show_category), even in the latest release (with which I had nothing to do), but that function is not used, nor set by the Option Types v2 Contribution... Any chance it's caused by another conrtibution??? (Maybe something involving Left/Right column) I'll explain what I do to track back this error while I go: First, to explain the error: It says: I know a function (named "tep_show_category", which you told me about in the file "includes/boxes/categories.php"), and now you're trying to tell me about "tep_show_category" again! So, I searched ALL FILES for "tep_show_category": - 3 hits in 1 file (surprise surprise, found in: "includes/boxes/categories.php") So, the original code does not have 2 functions called "tep_show_category" that could be called at the same time. This can mean 2 things: 1) You've added a new function somewhere, called "tep_show_category" (for a contribution). 2) The function "tep_show_category" is called twice, because the page "includes/boxes/categories.php" is called twice. So, I searched ALL FILES for "categories.php": - Couple of hits, in a couple of files... We can ignore the files in "admin/" (that's not where the error is), and we can ignore anything in "languages/" The only thing I end up with, is include(DIR_WS_BOXES . 'categories.php'); in "includes/column_left.php" That is of course the correct location for this file (and the function "tep_show_category") to be called. I advise to search ALL YOUR FILES for "tep_show_category", and then "categories.php" (use a descent editor, like Notepad++), and see if if anything's different from what I found above. If you're really stumped, better email me than post on the forum. Your problem is too specific to be helpful for anybody... Regards.
  4. Zappo

    TNTPOST V1.4 [HELP]

    The TNT Website seems to have changed once again... I Changed it: // define('TNTPOST_SITE', 'https://securepostplaza.tntpost.nl/TPGApps/tarievenwijzer/control/rateInquiry'); define('TNTPOST_SITE', 'http://tarievenwijzer.tntpost.nl'); And now the prices are "0", but at least the radio-boxes show up again... Still troubleshooting...
  5. This contribution is compatible with anything. I also use it for other projects. It is a Universal one-file configuration script. While developing, I got tired of making changes to the database or making entire configuration-pages for all the settings I was creating, so I created this file. It can be used as temporary solution, but turned out usable enough to use in a production site too. Features: - Generates/Displays settings in tabs, separated by headings - Generates/Displays a help tooltip for each option - Uses Textfields and various Dropdowns (seconds, numbers, yes/no, colors, align....) - Save settings as a variable or a define - Saves a configuration file to be directly included - Configuration file is automatically commented - Ability to Delete entries that are also found in the DataBase Options to set: - SettingsFile: File to save the settings to - DeleteDB: Set to anything to delete duplicate values from DataBase - CommentPre: Text to add to each comment - Settings: Array with all the settings. Contains: Tab => Heading => Row => Option => Option Settings The file has some example settings to get you started. Download the contribution from: http://addons.oscommerce.com Please post questions, comments, request, etc. right here!
  6. Zappo

    [Contribution] Option Types v2

    Wow. You've been busy! Good stuff!
  7. Zappo

    [Contribution] Option Types v2

    Good question. - What does the % bar on product_info page say? Also unlimited? - Is this also the case with normal text? Could [edit] most likely [/edit] be a Javascript problem...
  8. Zappo

    [Contribution] Option Types v2

    That's great! I currently have no time for testing (let alone updating, and releasing a new version), but I hope I can do this in the following weeks... You go get that beer, you deserved it! One step closer to perfection. Thanks George!
  9. Zappo

    [Contribution] Option Types v2

    Maybe we should circumvent the problem: How about detecting the CUTOMER-INPUT attribute, and make the input field behave like it does in products_attributes.php? We could steal the code from products_attributes, and the only downside would be (one I would find a BIG downside) that the prices wouldn't get updated through AJAX. I mostly use the Attribute Manager without submitting changes to the product itself (edit attributes, click BACK button), and that won't work in this situation... But I believe if you would echo the price input fields with the correct names, they will get posted with the rest of the product information (And then be processed the same way as they would in the products_attributes.php file...) Again, not really a solution. More like a workaround...
  10. Zappo

    [Contribution] Option Types v2

    Hi MultiMixer, Thinking about it, I believe I also was struggling with some AttributeManager problems during development. Javascript is just not my cup of tea. I even thought about changing everything to not use OPTION_VALUE_TEXT_ID at all, but as I see it, we can't do without that value... And because we want to change a VERY integrated part of the code, there can be quite some complications. Integrating the "CUSTOMER-INPUT" as it, is was already a headache. I wish an experienced Attribute Manager user would help us out with this one...
  11. Zappo

    [Contribution] Option Types v2

    Apart from that it has something to do with images, I have no idea what the problem is.
  12. Zappo

    [Contribution] Option Types v2

    Well, exactly like the message says... Can't find TEMP_DIR I suggest you check your entire installation. Those things have nothing to do with each other...
  13. Zappo

    [Contribution] Option Types v2

    Well, that's obviously there... The error means "can't find the column products_options_order" given in the "order by" command... The query below the error (select * from products_options where language_id='2' order by products_options_order) seems to be OK too...
  14. Zappo

    [Contribution] Option Types v2

    did you run the sql file? You are missing the column 'products_options_order'...
  15. Zappo

    [Contribution] Option Types v2

    Hmmm.... That IS strange... And what happens if you only comment out the two break 2; lines? Also, is the file (when it DOES upload) renamed, and is it renamed correctly? Is there also a record of the upload in the database? (TABLE_FILES_UPLOADED) The lines you are commenting out save the file to the new location with the new name, and should exit the code if this fails. I'm thinking something is wrong with either the $TEMP_FILE or $insert_id variables...
  16. Zappo

    [Contribution] Option Types v2

    Hi everyone, Yeah... I WISH :D Just dropping a note to let y'all know this thread is not dead, and I still want to improve upon/support Option Types v2. However, I run my own business, and it's hard to find the time. PLEASE don't PM or email me for assistance. I always receive an email when someone posts here, and if I don't reply on the forum it's because: - I don't know the answer (I'm only a novice PHP programmer myself) - I'm too busy As is stated on this thread before, Option Types v2 works perfectly "out of the box", and any (or all) problems are caused by faulty merging, or a combination of other contributions. It never hurts to help, but you'll all understand I'm not going to spend hours to solve your problems for you. Now, for some answers: @Maria Cafe: I think you should check all the <table> <tr> <td> tags, and see if they are opened/closed properly. @Ibissen: I suspect the 500 error is caused by not being able to save the file on the server. Make sure the correct folders are in place, and that they are writable. @DenominatorX: Don't know. Why not try it out, and see for yourself. (Please post results for future visitors) @nutlog13: Best way to have fields as required would be some javascript. That way, you could have a message popup if the customer did not enter anything. Doing it with PHP is possible, but that will need a page-refresh for customers to discover they need to enter info... (which would be annoying IMO) Also, I seem to remember somewhere in this thread someone also needed this, and found a script to do the job. Not sure though... @amyburns: As the error states, the values you're trying to put in the Database do not match the number of colums in the database... I suspect you did not merge all the files correctly. (After the SQL command, you should have 7 columns in "products_attributes", and you're trying to input 6 values...) Check if you merged the file admin/products_attributes.php correctly... And finally, @MultiMixer: A big thanks for all the support you have given. (as only I seem to get all the thanks around here ;) )
  17. Zappo

    [Contribution] Option Types v2

    :-" -edit- Well, I guess I could have asked first if you knew about that too :blush:
  18. Zappo

    [Contribution] Option Types v2

    What's your code for that? I have the following: //BOF - Zappo - Option Types v2 - Rearanged Product(s) cart-listing, and added Options Column $products_name = '<table border="0" cellspacing="2" cellpadding="2">' . ' <tr>' . ' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b>' . $stock_check . '</a></td>' . ' </tr>' . ' <tr>' . ' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . ' </tr>' . '</table>';
  19. Zappo

    [Contribution] Option Types v2

    Yeah... Correct me if I'm wrong, but I believe to have it look like the first screenshot, you just have to hide the Product's name in the Shopping Cart Option Listing, no?
  20. Zappo

    [Contribution] Option Types v2

    Ok, but then what exactly do you want to do, except from removing the product name from the attributes?
  21. Zappo

    [Contribution] Option Types v2

    I mean, in your Shopping Cart, you have checkboxes next to attributes. Can those attributes be separately removed from the product? Try getting the product id by using tep_get_prid (or maybe uprid...) like this: $products_id = tep_get_prid($products_id_string);
  22. Zappo

    [Contribution] Option Types v2

    Aaaaah! That's what you where making! Looks nice that way! Does it also remove seperate attributes? Maybe this should be an option to turn on/off... And the sorting of the cart should be an option too... I'm not on my development PC, so I can't test/check anything right now, but you'll have to sort the $products array to get that done. -Edit- I think I'd do that in the shopping_cart.php class...
  23. Zappo

    [Contribution] Option Types v2

    Try echo'ing the $products array (with some different products/options), and see what comes up. We'll have to find a specific item we can filter with... Ow, use print_r($products) and the <pre></pre> tags to nicely format the data...
  24. Zappo

    [Contribution] Option Types v2

    You'll have to adjust the "if" statement. I believe the Text attribute (and upload & Textarea) actually have "0" as options_values_id...
  25. Zappo

    [Contribution] Option Types v2

    Option Types v2 doesn't do that "out of the box" You'll have to get (query) the Option Types from catalog/includes/modules/product_listing.php and echo them from there. I certainly wouldn't use Master Products, as that's a really big contribution, and it doesn't do what you ask (as far as I know) It also doesn't support different Option Types...
×