Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Zappo

Pioneers
  • Posts

    201
  • Joined

  • Last visited

Everything posted by Zappo

  1. Simple question indeed ;) open up includes/classes/upload.php and check out line 18. Maybe this should be an admin setting, or at least a setting in local/configure.php... Next release :lol: I believe Upload file size limit is set by php.ini... This could be override-able with a .htaccess in the root (php_value upload_max_filesize 10M)
  2. Yeah... Many problems indeed, and Option Types has to do with just a tiny fraction of it... Looks like quite a mess...
  3. You probably didn't merge application_top.php (-correctly) the call to boxes.php should be moved up from below... (from about line 505 to about line 315) So should the call to messagestack...
  4. It COULD be the PayPal module, as Option Types makes some minor changes to the standard PayPal module... However... Come to think of it, that was for Text options... It COULD be the database, exactly as you say. no decimal places. You should check what values are inserted into the database. When creating your database, be sure to use UTF8_general_ci Collation. That always works best for me...
  5. No, there's no font option available. If you are talking about the font option on shop.crystalcopy.nl, that one is hardcoded. VERY messy... It is possible to add just about any option type (I'm working on Products at the moment) so adding fonts can certainly be done, but there are no manuals of how to do it. The different Option Types are added in includes/modules/option_types.php (except the standard dropdown, that's (still) handled by product_info.php) That's where new types can be added, and processed the way that's needed... (By adding a new 'case')
  6. I just released Option Types v2.0.1: - Previous Uploads List was not correct when using Multiple Upload fields - Couple of Bugs fixed for multiple fields - Separated Attribute Manager from installation (Easier to just Add it if needed) - Added Attribute Manager installation guide - Fixed some bugs in Attribute Manager - Prepared Attribute Manager for "Products as Options" - Added Comments for changes made in Attribute Manager - Found some small mistakes in the Admin Language files - Updated (and renamed) the ReadMe
  7. Are you sure you used a clean, standard installation of version 2.2rc2(a) ?!?? I have a separate test store running, and can't get that behavior.... Also can't imagine how it happens. Try echo'ing the price like this: FIND in product_info.php: if ($products_options['options_values_price'] != '0') { AND ADD BEFORE THAT: echo "Testing Option Price = ".$products_options['options_values_price']."<br>"; And check if the prices are requested correctly... (*Maybe you could also try it with the newly released version?)
  8. That doesn't help much. The following line: require (DIR_WS_CLASSES.'sts.php'); means the file sts.php gets processed at that point... What that file actually does is the question... This looks more like a problem with STS than with Option Types v2. I suggest you look for help there, as Option Types v2 uses STANDARD osCommerce behavior when it comes to Attribute's prices... Seems to me, STS is the "conflicting" contribution here...
  9. The lines I previously posted normally make sure the price is hidden: (IF 'options_values_price' IS NOT '0' --> Display price) Something seems to be going wrong there... As I do not know what changes are made by STS, I can't exactly say what the problem is...
  10. The code you posted is not where the problem is... I have no idea what that "Hiding the Price" contribution does, but if the price is '0', it's automatically hidden by OptionTypes v2... The contribution probably changes the way 'options_values_price' is handled or something... You'll have to look at the lines in product_info.php and includes/modules/option_types.php where the prices are collected: if ($products_options['options_values_price'] != '0') AND if ($products_attribs_array['options_values_price'] != '0')
  11. That's currently not possible.... As the Prices for Attributes are set per Product/Option combination, it's also not very easy to implement...
  12. I too have a feeling that both these problems are because of a conflict between contributions... Could you as a start show me the code from product_info.php, where the dropdowns are made? Can't troubleshoot without more info...
  13. It is possible... I don't think it's very pretty, as when the customer uploads a lot of files, the list get's quite long... Anyway... Here goes... In the file catalog/includes/option_types.php Replace this: while ($uploaded_files = tep_db_fetch_array($uploaded_files_query)) { $uploaded_array[] = array('id' => $uploaded_files['files_uploaded_name'], 'text' => $uploaded_files['files_uploaded_name'] . ($tmp_html_price ? ' - ' . $tmp_html_price : '')); $old_uploads = true; } $tmp_html = '<input type="file" name="id[' . TEXT_PREFIX . $ProdOpt_ID . ']">' . // File field with new upload tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $ProdOpt_ID); // Hidden field with number of this upload (for this product) $tmp_html .= $tmp_html_price; if ($old_uploads == true) $tmp_html .= '<br>' . tep_draw_pull_down_menu(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $uploaded_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$ProdOpt_ID]); With this: $tmp_upl_html = '<table>'; while ($uploaded_files = tep_db_fetch_array($uploaded_files_query)) { if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$ProdOpt_ID]) && ($uploaded_files['files_uploaded_name'] == $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$ProdOpt_ID])) { $checked = true; } else { $checked = false; } $tmp_upl_html .= '<tr><td class="main">'; $tmp_upl_html .= tep_draw_radio_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $uploaded_files['files_uploaded_name'], $checked); $tmp_upl_html .= $uploaded_files['files_uploaded_name']; if ($products_options_array['options_values_price'] != '0') { $tmp_upl_html .= ' (' . $products_options_array['price_prefix'] . $currencies->display_price($products_options_array['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } $tmp_upl_html .= '</tr></td>'; $old_uploads = true; } $tmp_upl_html .= '</table>'; $tmp_html = '<input type="file" name="id[' . TEXT_PREFIX . $ProdOpt_ID . ']">' . // File field with new upload tep_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $ProdOpt_ID); // Hidden field with number of this upload (for this product) $tmp_html .= $tmp_html_price; if ($old_uploads == true) $tmp_html .= $tmp_upl_html; That should do the trick...
  14. No idea, but as it seems to involve products attributes, it'll probably have to be merged in some files.
  15. Option Types v2 SQL.sql It's in the root of the zip file (when you open the zip, it's right there!) along with the index.html I don't see how you could miss it!! Run it (via phpMyAdmin), and you should be fine. It could be that because you manually added fields to the dB, the script will fail. Maybe it's best to remove those manual dB changes before running the sql...
  16. 1- Did you run the SQL file included with the installation? 2- Did you copy the file catalog/includes/local/configure.php? 3- Check in application_top.php, Line 25, (Set the local configuration parameters) if includes/local/confige.php is included (Default = enabled) 4- Did you copy/create the folders images/temp and images/uploads? If all above are answered 'yes', I'll need more info on your problem... That should not occur...
  17. No, Sorry... You'll have to use a comparison software like kDiff3 to compare your installation with Option Types v2 (I really can't imagine merging contributions without file comparison!) All changes are very well commented throughout the files...
  18. Come to think of it, you need something like "Linked Options", or "Dependent Options"... Have one option hide, until an other is known. I think I have read about that on the forum or in the contribution section somewhere... Long time ago, but it might be worth a search... Might also be a nice function to incorporate in another contribution of mine: Option Types v2....
  19. 1 - Nice! I'll be using SPPC/QPBPP myself (When I'm done with the rest) 2 - I'm ALMOST done... Need some (ok... a lot of) cleaning up, and some kind of readme... Then I'll release it. 3 - Good to know it'll probably be appreciated! 4 - My pleasure.
  20. Linked Products does not exactly do what you want. I'm currently working on a contribution that probably would, but it isn't finished yet (Products as Options) What you could do with Linked Products: Have the "Main" product: "Diamond Ring" Linked with 3 products: "UK, US and EU" Then set the 3 Linked products up with the correct sizes. When selecting a linked product, you can show a dropdown at the main product with the correct sizes. However, Currently the products will then both be added to the cart ("Diamond Ring" and "EU + Size") As Linked Products is VERY configurable, it might be possible accomplish it in another way. If I think of (or develop) something, I'll let you know.
  21. I forgot to add a line (resetting the dropdown)... Here's what to do: in catalog/includes/modules/option_types.php FIND: //BOF - Zappo - Option Types v2 - Added dropdown with previously uploaded files (around line 110) beneath it ADD: if ($old_uploads == true) unset($uploaded_array); That should to the trick! (This will of course be added to the next OptionTypes release)
  22. 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))
  23. Hello Rich. -1: Thanx! -2: The upload destination is set in application_top. This is done by checking for a registered session. It's VERY strange the files end up in both! Does this happen when logged in (registered customer), as a guest, or both?!? -3a: Please Note: crystalcopy.nl is NOT using Option Types v2!! (Basic functionality is the same however) -3b: The text used in the cart is the same define as the text in product_info ("Option Name" is used, just like with other types) I'm guessing something is wrong in application_top.php (case 'add_product' around Line: 370) Have you merged with other contributions there?
  24. I don't fully understand what you want to do. - What do you mean with "Links"? Linked products, or links to something, or....? - Do you want to have different Options per Customer location? Please elaborate...
  25. Nope, Sorry... There are however a descent number of screenshots included in the package.
×
×
  • Create New...