Jump to content

Zappo

Members
  • Content count

    201
  • Joined

  • Last visited

Everything posted by Zappo

  1. Zappo

    [Contribution] Option Types v2

    I believe that should be a complete path, e.g. /[www path]/public_html/catalog/images/temp/ Also, check if the folder is writeable
  2. Zappo

    [Contribution] Linked Products

    Sorry everyone for not following this thread, but Linked Products had so much troubles, I started rewriting a lot of code, and it's all quite a mess right now... I'll have to find the time to re-engage this contribution, and for the time being I have to advise against using this contribution in a Live installation...
  3. Zappo

    [Contribution] Option Types v2

    If I understand you right, uploads DO show up and work, and Text inputs don't show up? Or do you mean the dropdown in the Admin side? I'm guessing you haven't included a (or both) configure.php file: (admin/)includes/local/configure.php If you HAVE included those files, please check if the file is included by application_top.php (I believe around line 25)
  4. Zappo

    [Contribution] Option Types v2

    I'm really pressed on time right now, and don't even know if this is a bug, but here's a pointer: Look for the file(s) where this happens, and search for: order by I'm guessing somewhere, it's set to order by option_name. you should change that to "order by" whatever you want. (Mind you, I'm guessing here...) IF this is a bug (Someone else seen this behaviour?) of course, a package update should be made...
  5. Zappo

    [Contribution] Option Types v2

    Indeed! Very simple, and easy to add...
  6. Zappo

    [Contribution] Option Types v2

    To be honest, this contribution was never tested with downloadable products. I had no idea things would be any different with those, so there is a probability of incompatibility...
  7. Zappo

    [Contribution] Option Types v2

    Well.... Not always :lol: Is it worth a Package-Update? Maybe send it to me so I can get it integrated, or maybe you can add an update package to the contribution yourself?
  8. Zappo

    [Contribution] Option Types v2

    Couldn't leave this hanging somehow... To help you on your way, I found a script (and tweaked it a little) to block entering anything but 0-9 and a-z HOWEVER, it seems this isn't as simple as I thought: it seems validating what key was pressed by the customer, depends on his/her keyboard settings! We can only check what physical button was pressed, not what (special-)character. I would imagine you'd want to let the user enter "." as well, which already gave me too much hassle to investigate further... ("." is key Code 190 on my keyboard) Anyway, checkout the code I found: In product_info.php, BEFORE: // EOF - Zappo - Option Types v2 - Added for Form Field Progress Bar //--></script> </head> ADD: (as you can see, I added some comments to help tweak the code) function checkchars(e) { var key; var keychar; if (window.event) { key = window.event.keyCode; } else if (e) { key = e.which; } else { return true; } keychar = String.fromCharCode(key); //alert(key); // - Zappo - Un-comment to check what key Code is passed. Passed key can be added below to ALLOW if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) || (key==27) ) { return true; // - Zappo - You can modify ALLOWED characters here... } else if ((("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ").indexOf(keychar) > -1)) { return true; } else return false; } Then, in option_types.php, find the onKeyDown, onKeyUp and onFocus events of the OPTIONS_TYPE_TEXT option (around line 32), and add the following code to EACH EVENT: return checkchars(event); So the events look like this: onKeyDown="return checkchars(event); textCounter(this,\'progressbar...... I added debugging code in the javascript to help you tweak the script a little to accept the correct characters (doesn't accept spacebar for example, (key=32)), so this should get you on your way...
  9. Zappo

    [Contribution] Option Types v2

    You added the onsubmit wrongly: Add it like this (onsubmit and enctype together): ...roduct'), 'post', 'onSubmit="return ray.ajax()" enctype="multipart/form-data"' Let us know how it works out! (And post an update if it works)
  10. Zappo

    [Contribution] Option Types v2

    OOooh... Now I see... That can only be accomplished by javascript... (and shouldn't be too hard (not as hard as an upload script)) But as I'm not good with Javascript, can't really help you out here... I could devise something with PHP, but that would change the text AFTER adding it to cart.
  11. Zappo

    [Contribution] Option Types v2

    Yep. In "Product Attributes -> Product Options" notice the "Value Length" field...
  12. Zappo

    [Contribution] Option Types v2

    You'll need AJAX uploading for that, and I'm really not good with javascript...
  13. Zappo

    [Contribution] Option Types v2

    Well, I looked at it, and it seems that's gonna take quite a bit of coding to accomplish... The fields use the Option's ID to identify themselves, so when we check more than 1 box, only one is added to cart. (all the checkboxes have the same name) So, this would involve changing the names of the Checkbox Fields to include the OptionValueID, and add special handling for the checkboxes in application_top.php Then, we'll have to hope osCommerce (the shoppingcart, checkout, etc) doesn't really care about products having multiple attributes of the same option... I don't have time to investigate this further now, but it does seem like a nice functionality to add... (Anyone?)
  14. Zappo

    [Contribution] Option Types v2

    Hold on! I just now remember how the checkboxes are setup! :blush: They don't show the name, as it's a yes/no question, and only accepts 1 option value. So with the option name: "Wrapping paper", and option value "Yes Please", if customer checks the box, the cart says: "Wrapping paper: 'Yes Please'" If the customer doesn't check the box, nothing is shown (or added) with the product. Just to add to this, for multiple Checkboxes, you'll have to add multiple Attributes! It's not possible to add different values of the same attribute to a single product. (Notice all the other Option Types are "either this OR that", never "this AND that") And thinking of it, I'll look into this... To use the default installed stuff: maybe changing "Memory" to option type Checkbox, should trigger being able to select 4mb, 8mb and 16mb at the same time... That's not really wanted in that example, but for pizza toppings, it could be great! I'll only implement this if it IS possible (osC "standard") to add multiple attributes of the same option... To be continued...
  15. Zappo

    [Contribution] Option Types v2

    Ok, could you try that again with a non-standard option, like radio? (the contribution always falls back to (default) select options when something goes wrong) I was working on (and am going to use myself) a contribution (Linked Products) with a "Products as Options" option, but that's currently not working and "On Pause", but I will eventually pick that contribution up when I have the time. (As I said, I'll be needing it myself)
  16. Zappo

    [Contribution] Option Types v2

    Any other Contributions? Seems Option_Types.php doesn't find (or set) the values from database table products_options_values Maybe you can check with different option types (do they show there?)
  17. Zappo

    [Contribution] Option Types v2

    So you were also reporting the wrong error <_< No need to post images for each error. Just post the error. (I know what phpMyAdmin looks like :P ) The field configuration_group_id SHOULD automatically increment, so there should be no need to give a value for it... Did you change the Configuration_Group table (for some other contribution)??? To get around this (although this should not be needed): Change the first '' (before 'Option Types') to '99' That should do the trick...
  18. Zappo

    [Contribution] Option Types v2

    Ok... Can see your image now... Doesn't change the fact that you must select the Database before you can insert any data into it!!! Those mySQL errors are not just some Hocus Pocus!!! This error seems pretty clear to me: No database selected To show you what a selected database looks like: (You should really study mySql/PHP somewhat before you go and customize osCommerce... This is REALLY basic)
  19. Zappo

    [Contribution] Option Types v2

    The error says: MySQL : #1046 - No database selected So, select the correct database before running the sql... (Can't see your image by the way)
  20. Zappo

    [Contribution] Option Types v2

    :lol: You're kidding right?
  21. Zappo

    [Contribution] Option Types v2

    Well, I CAN tell you, it probably has to do with the file modules/option_types.php not being included... That's where all the option types are collected, identified, and "printed". I don't know anything about STS, so I'm just guessing away here.
  22. Zappo

    [Contribution] Option Types v2

    Maybe you can look on STS forum topic for solutions on your problem. Solutions regarding the "old" Option Types contribution can help you a great deal too! (Maybe check that forum topic as well)
  23. Zappo

    [Contribution] Option Types v2

    You should check the forum first! The sort order is set via admin, per Product. To sort things by alphabetical order, read this post
  24. Zappo

    [Contribution] Option Types v2

    Correct. This is indeed a small bug... (Adding Options in Attribute Manager) I don't have time to dig through the AttribManager code, so in short: To add Options for Text, TextArea or Uploads (Customer-Input Option Types), add them in the "normal" Products Attributes page first! (or Products Options page)
×