Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by Zappo

  1. Thank you for your advice, I have been playing around and have got the optins type showing fine in the admin area but when i go to the product page in the live store i get the following error


    Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/users/uks28349/html/xxxxx-xxxx.co.uk/includes/boxes/categories.php:12)


    Any ideas on how to solve this?


    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...



  2. 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...

  3. 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.



    - 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!

  4. After setting value length to text area its still taking unlimited characters...Why???

    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...

  5. Good news: I think I have the solution


    Now I go for a beer !

    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!

  6. Honestly I have no idea what to do now

    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...

  7. The value need to be '0' (thats the OPTIONS_VALUE_TEXT_ID as set in admin/includes/local/configure.php) so that shopping_cart.php etc can separate this options properly and display the text (or link to the file) that the customer typed in.


    The issue still remain

    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...

  8. My products_options table looks like this

    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...

  9. If I use the original code of "option type", the file IS uploaded and the product IS not added to the basket, AND I get the 500 error by the application_top - add product - function.


    In the meanwhile I de-installed the contributions STS and PWA, which couldn't be the reason.


    But in my option this can't be responible for that error too ...


    If comment out the following section (trail and error solution), I don't get an 500-error, the product (with attribut) is transfered to the basket, BUT the file wasn't uploaded

    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...

  10. Hi everyone,


    BTW, I think this time Zappo is really somewhere in paradise drinking a cool pina colada

    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 ;) )

  11. 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>' .

  12. yes they can , but dont let you mislead.

    The screenshot is how i want it (i edited it).

    i also found a topic abouth sort order


    But it not handles correctly how i want, it keeps products together , but it mix the ones with attributes and non-attributes

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

  13. i dont understand i think.

    But there is a issue here , by default of this contribution.


    When you added a product that contain a textfield ,but not used this field, the link to this product (in shopping_cart.php) is created like this:


    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);

  14. There's another issue i need to solve.

    I need to trick it so it re-orders it + when a product without an attribute is added it adds the main product on top like in this screenshot.

    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.


    I think I'd do that in the shopping_cart.php class...

  15. I'm wondering that whenever i add a product with a specific attribute , it would be posseble to disable the quantity field inside the shopping_cart.php page.

    something like:


    Should normaly do the trick no? however it disable all quantity field for all product.

    FYI: in my specific case it is for when a product has used the text attribute.

    You'll have to adjust the "if" statement.

    I believe the Text attribute (and upload & Textarea) actually have "0" as options_values_id...

  16. Hey...


    Not sure if anyone read this - but i'd love to hear if anyone has a solution... To re-state the problem - when displaying a category page, under the price column (for example) i would like to display all the options with their price beside them. Is this something that this contrib does, or do i need to go to something like the Master Products contrib?



    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...

  17. What I mean by turned off, is that if I have a product that needs personalization, that it would have the text boxes, etc. appear for that product in product info. However, if I have lets say a bed that does not need any of the contrib that it is hidden and not showing up in product info.


    In regards to the attrib manager, I am wondering if I already have it installed prior to this contrib, is it necessary to redo it with this one to make it all come together with this contrib?

    You assign the attributes normally (just as osCommerce's normal functionality)

    Just assign the proper Options (Attributes) to each product. Those will be the only ones that show up...


    The Attrib manager needs to be adjusted, but if I remember correctly, you can just overwrite the files inside the admin/AttribManager folder, and everything will be in place for OptionTypes v2. The other files are not changed in any way...

    (I suggest you make a backup of that folder, and just try it out.)

  18. On this contrib, can the text, etc. be turned off or on per product or does it show up for all products?


    Is there a difference in the attrib manager through this contrib vs the dedicated contrib attrib managner?

    Don't know what you mean by "turned off"... They're Options (or Attributes), and can be assigned to products as such...

    There's no real difference in the Attribute Manager.

    The code is just adjusted for use with Option Types. Functionality is the same, and it is an optional feature (OptionTypes v2 works perfectly without it)