Jump to content

Zappo

Members
  • Content count

    201
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Zappo reacted to celebman1 in [Contribution] Option Types v2   
    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?
  2. Like
    Zappo got a reaction from multimixer in [Contribution] Option Types v2   
    Nope. That's not ok... :D
    That great contribution isn't too hard to merge. You missed one line:
    You need to change your $cart->add_cart() (Where QPBPP changes are also made)
    FROM:
    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']);
     
    TO:
    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+$HTTP_POST_VARS['cart_quantity'], $real_ids);
     
    That should do it...
     
    (Explanation: $HTTP_POST_VARS['id'] contains the attributes array, which is replaced by $real_ids so that the uploads can be added to this array)
     
    This is because the Upload (and Text) option VALUES are input by the customer! (The value is the given text, or the file)
    You just need the Options for Text, Textarea and Uploads. (However, the Option-Value "0 - CUSTOMER-INPUT" has to be set! (Should be done automatically))
  3. Like
    Zappo got a reaction from ~Kira in [Contribution] Option Types v2   
    Well....
    Uuuuhhhmmm....
    This shouldn't be too hard, and I'm willing to help, but we'll have to do this together.
    Don't install OptionTypes v2 (or any other contrib for that matter) to handle this. That won't do you any good, as what you want is entirely different from admin- or attribute- uploading...
     
    1 ) depending on what you want to do with the upload(?), we'll have to decide IF and WHERE to add database fields
    2 ) decide if you want an "on/off" feature(?). We'll have to add configuration-database fields, or a setting in configuration.php
     
    a ) we'll have to handle the upload as if it were a "customer detail" (like "customer name" or whatnot)
    b ) we're gonna re-use the upload script from Option Types v2 to do the actual upload handling
     
    To start you off, create an upload field in create_account.php, and see that is has a proper name.
    Let me know the name of your field, and the decisions on points 1 and 2, and we'll continue.
  4. Like
    Zappo got a reaction from ~Kira in [Contribution] Option Types v2   
    You probably missed something while installing...
    The error occurs if you get something from the database (tep_db_query), and don't "convert" it to an array (tep_db_fetch_array)
    So you're missing some lines of code, or merged things wrongly...
  5. Like
    Zappo reacted to ~Kira in [Contribution] Option Types v2   
    I need to add a file upload to create_account.php and I tried using another contribution that actually allows admin to upload a pdf to a product. I changed it up a bit with bad results. The box is there on the edit customer page, but half the time I get a fatal error with "no file uploaded" and the other half the time, no file uploads or (obviously) has a visible filename in the box. All I want is to have the customer upload a file when they create an account. I really don't need all the ajax or sorting. Is there possibly another contribution or modified version of this one that I could use? I have tried google and searching contributions for "file upload" and I don't find much. Through the forum I have learned of this and some other contributions, but then again not exactly what I need (don't need 3 images, etc.). I'm a bit frustrated trying this through the typical osCommerce coding but would rather do that than add straight php or html. Any help would be much appreciated! Thanks! : )
×