CotswoldEngraver Posted April 27, 2011 Share Posted April 27, 2011 Hi all. Does any one know if it is possible to change an attribute on all products containing that particular attribute in bulk? We want to change an option that costs £1.00 to free and I don't really relish going through every product manually to change it. Any help much appreciated. Regards Andy ASE Awards Quote Link to comment Share on other sites More sharing options...
nick1234 Posted April 28, 2011 Share Posted April 28, 2011 RE: http://www.oscommerce.com/forums/topic/338661-contribution-option-types-v2/page__view__findpost__p__1503443 how to set the option calculation way per unit or per item 1. file admin/products_attributes.php Can not find FIND $CommentInput .= tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . TABLE_HEADING_OPT_COMMENT . '<br><input type="text" name="option_comment[' . $languages[$i]['id'] . ']" size="24" value="' . $option_name['products_options_comment'] . '"><br>'; Regards Nick Quote Link to comment Share on other sites More sharing options...
multimixer Posted April 29, 2011 Share Posted April 29, 2011 RE: http://www.oscommerce.com/forums/topic/338661-contribution-option-types-v2/page__view__findpost__p__1503443 how to set the option calculation way per unit or per item 1. file admin/products_attributes.php Can not find FIND $CommentInput .= tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . TABLE_HEADING_OPT_COMMENT . '<br><input type="text" name="option_comment[' . $languages[$i]['id'] . ']" size="24" value="' . $option_name['products_options_comment'] . '"><br>'; Regards Nick You are right, I included by mistake also an other mode I have regarding options comments Please follow following instructions as a correction to the previews In 2 cases it says FIND $CommentInput = ''; make it to be FIND $NameInput = ''; In 2 cases it says FIND $CommentInput .= tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . TABLE_HEADING_OPT_COMMENT . '<br><input type="text" name="option_comment[' . $languages[$i]['id'] . ']" size="24" value="' . $option_name['products_options_comment'] . '"><br>'; make it to be FIND $NameInput .= tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . TABLE_HEADING_OPT_NAME . '<br>' . '<input type="text" name="option_name[' . $languages[$i]['id'] . ']" size="24" value="' . $option_name['products_options_name'] . '"><br>'; There are 2 more cases related to $commentInput, added into <td></td>, just ignore it Has to be like this FIND td class="smallText"><?php echo $NameInput; ?></td> <td class="smallText"><?php echo $CommentInput; ?></td> <td class="smallText" colspan="3"><?php echo TABLE_HEADING_OPT_LENGTH . ': <input type="text" name="option_length" size="4" value="' . $options_values['products_options_length'] . '"><br>' . TABLE_HEADING_OPT_ORDER . ': <input type="text" name="option_order" size="3" value="' . $options_values['products_options_order'] . '"><br>' . TABLE_HEADING_OPT_TYPE . ': ' . draw_optiontype_pulldown('option_type', $options_values['products_options_type']); ?></td> REPLACE BY <td class="smallText"><?php echo $NameInput; ?></td> <td class="smallText"><?php echo TABLE_HEADING_OPT_TYPE . ': ' . draw_optiontype_pulldown('option_type', $options_values['products_options_type']); ?></td> <td class="smallText"><?php echo TABLE_HEADING_OPT_ORDER . ': <input type="text" name="option_order" size="3" value="' . $options_values['products_options_order'] . '">' ; ?></td> <td class="smallText"><?php echo TABLE_HEADING_OPT_LENGTH . ': <input type="text" name="option_length" size="4" value="' . $options_values['products_options_length'] . '">' ; ?></td> <!-- BOF multimixer add 2 columns for calculation way and per name --> <td class="smallText"><?php echo TABLE_HEADING_OPT_CALC . ': ' . draw_calcway_pulldown('option_price_calc', $options_values['products_options_price_calc']) ; ?></td> <td class="smallText"><?php echo $PerInput; ?></td> <!-- EOF multimixer add 2 columns for calculation way and per name --> FIND td align="center" class="smallText"> <?php echo $next_id; ?> </td> <td class="smallText"><?php echo $NameInput; ?></td> <td class="smallText"><?php echo $CommentInput; ?></td> <td class="smallText" colspan="3"><?php echo TABLE_HEADING_OPT_LENGTH . ': <input type="text" name="option_length" size="4"><br>' . TABLE_HEADING_OPT_ORDER . ': <input type="text" name="option_order" size="3"><br>' . TABLE_HEADING_OPT_TYPE . ': ' . draw_optiontype_pulldown('option_type'); ?></td> <td align="center" class="smallText"> <?php echo tep_image_submit('button_insert.gif', IMAGE_INSERT); ?> </td> REPLACE BY <td align="center" class="smallText"> <?php echo $next_id; ?> </td> <td class="smallText"><?php echo $NameInput; ?></td> <td class="smallText"><?php echo TABLE_HEADING_OPT_TYPE . ': ' . draw_optiontype_pulldown('option_type'); ?></td> <td class="smallText"><?php echo TABLE_HEADING_OPT_ORDER . ': <input type="text" name="option_order" size="3">' ; ?></td> <td class="smallText"><?php echo TABLE_HEADING_OPT_LENGTH . ': <input type="text" name="option_length" size="4">' ; ?></td> <!-- BOF multimixer set price per unit / per item add 2 columns for calculation way and per name --> <td class="smallText"><?php echo TABLE_HEADING_OPT_CALC . ': ' . draw_calcway_pulldown('option_price_calc'); ?></td> <td class="smallText"><?php echo $PerInput; ?></td> <!-- EOF multimixer set price per unit / per item add 2 columns for calculation way and per name --> <td align="center" class="smallText"> <?php echo tep_image_submit('button_insert.gif', IMAGE_INSERT); ?> </td> Have a nice day Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
nick1234 Posted May 1, 2011 Share Posted May 1, 2011 Thanks for your fast reply. I also have another problem. open: catalog/includes/application_top.php find: $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $attributes))+1, $attributes); replace with: <!--- BOF: Quantity Input Field mod --> $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']); <!--- END: Quantity Input Field mod --> I have $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids); I try to get Quantity Input Field on product_info.php to work. And to everyone else does anyone have a working Quantity Input Field with this add-on Regards Nick Quote Link to comment Share on other sites More sharing options...
multimixer Posted May 2, 2011 Share Posted May 2, 2011 I have $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids); I try to get Quantity Input Field on product_info.php to work. And to everyone else does anyone have a working Quantity Input Field with this add-on Replace what you have $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids); with this $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $real_ids))+ $_POST['cart_quantity'], $real_ids); Illustrated instructions to add a quantity input field are here. Working example (temporary online) is here (please note, that's a test store that will disappear again in a couple of days, I'm sorry but I don't have an other example. Also it's a 2.3.1 store showing some of the features hat will be included in the next option types release) Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
nick1234 Posted May 2, 2011 Share Posted May 2, 2011 Replace what you have $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids); with this $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $real_ids))+ $_POST['cart_quantity'], $real_ids); Illustrated instructions to add a quantity input field are here. Working example (temporary online) is here (please note, that's a test store that will disappear again in a couple of days, I'm sorry but I don't have an other example. Also it's a 2.3.1 store showing some of the features hat will be included in the next option types release) Thanks it look fantastic, when do you expect next option types to be released ? Best Regards Nick Quote Link to comment Share on other sites More sharing options...
Guest Posted May 13, 2011 Share Posted May 13, 2011 Hi All, I have loaded a purchased template 2.2 and have attemped to install the options types v2 add-on but the add on over writes some of the files which results in the shop looking really bad, the options install but fails when i open the shop do i need to merge the shop files with the options type files? if so can somebody please point me the the right direction on how to do this? Any help would be fantastic. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
multimixer Posted May 13, 2011 Share Posted May 13, 2011 Hi All, I have loaded a purchased template 2.2 and have attemped to install the options types v2 add-on but the add on over writes some of the files which results in the shop looking really bad, the options install but fails when i open the shop do i need to merge the shop files with the options type files? if so can somebody please point me the the right direction on how to do this? Any help would be fantastic. Thanks in advance. Since you have a purchased template, your files different than the original osCommerce files, the addon was written for. Ofcourse it can be installed, but the installation instructions can not be followed as if on a original store. The best for you will be to take a file comparison program and compare/merge each file manually. Also possible that some of the option types files will need to be modified in order to match your template structure, eg the file includes/modules/option_types.php that display the options on the product info page. The layout of this display will need to be adjusted too, maybe. Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Guest Posted May 13, 2011 Share Posted May 13, 2011 (edited) Since you have a purchased template, your files different than the original osCommerce files, the addon was written for. Ofcourse it can be installed, but the installation instructions can not be followed as if on a original store. The best for you will be to take a file comparison program and compare/merge each file manually. Also possible that some of the option types files will need to be modified in order to match your template structure, eg the file includes/modules/option_types.php that display the options on the product info page. The layout of this display will need to be adjusted too, maybe. 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? Edited May 13, 2011 by celebman1 Zappo 1 Quote Link to comment Share on other sites More sharing options...
Zappo Posted May 13, 2011 Author Share Posted May 13, 2011 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... Regards. Quote Like Eek said... It never hurts to help!---------------------------------------- Link to comment Share on other sites More sharing options...
thenexgen Posted June 3, 2011 Share Posted June 3, 2011 Hi i use this contribution and work good but now i see that i have a problem i use also Option price update. http://addons.oscommerce.com/info/1385 If i have a option type image with price, add right in cart but not update price in product_info. i check the code, also modify option_types.php again not work, someone can help me? Quote Link to comment Share on other sites More sharing options...
Mort-lemur Posted June 4, 2011 Share Posted June 4, 2011 Hi, Not sure if anyone can help, but I have a problem that is costing me money, and I would like to resolve it. I sell an item that has several spares available so what I have done is set up a product called "Spares" and given it a price of £0.00. I then add the spares as options with the price of the spare set as the option price. This works great and the item is added to the shipping cart. BUT if the customer tries to increase the number ordered in the shopping cart then the price changes to £0.00 instead of twice the option price etc. What could be causing this ?? Thanks Quote Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members. Link to comment Share on other sites More sharing options...
thenexgen Posted June 14, 2011 Share Posted June 14, 2011 Someone can help me? Quote Link to comment Share on other sites More sharing options...
♥mattjt83 Posted August 8, 2011 Share Posted August 8, 2011 Hi guys, I have this successfully implemented on my 2.3.1 shop with ONE exception. For some reason the text attributes do not show up on account_history_info. They show up everywhere else- admin orders, shopping cart, order emails... Any ideas? Thanks. Matt Quote Matt Link to comment Share on other sites More sharing options...
Tidbeck Posted September 8, 2011 Share Posted September 8, 2011 im about to give up... Want to start a store, need the option types add on so that customers can upload files. Started with OSC 2.3.1 and and the add on did not work ofcourse...and i don't know how to recode. Now i installed a older version of OSC RC2.2a and tried the add on and i keep getting errors... right now i get the following error: Parse error: syntax error, unexpected T_CASE in /home2/myownart/public_html/RC2.2a/includes/application_top.php on line 431 any clue? Quote Link to comment Share on other sites More sharing options...
Tidbeck Posted September 8, 2011 Share Posted September 8, 2011 ignore the abouve post, i managed to solve it. Quote Link to comment Share on other sites More sharing options...
clazzid Posted September 11, 2011 Share Posted September 11, 2011 hello! i really could use help i installed the option types v2.1.3, i really need to be able to see who uploaded which file in admin and to be able to upload .zip and .mp3 files, where do i go to do this? i saw that someone made a enhancement to matt fletchers dile type that allows this but i cant see to incorporate it to this one, this is the one i used http://addons.oscommerce.com/info/6818 and here is says that the solved this but i cant get it to work http://www.oscommerce.com/community/contributions,1540 thanks in advance Quote Link to comment Share on other sites More sharing options...
clazzid Posted September 11, 2011 Share Posted September 11, 2011 ok i found hello! i really could use help i installed the option types v2.1.3, i really need to be able to see who uploaded which file in admin and to be able to upload .zip and .mp3 files, where do i go to do this? i saw that someone made a enhancement to matt fletchers dile type that allows this but i cant see to incorporate it to this one, this is the one i used http://addons.oscommerce.com/info/6818 and here is says that the solved this but i cant get it to work http://www.oscommerc...tributions,1540 thanks in advance ok i managed to find the allowed upload extentions in shop/includes/classes/upload.php could still use help on knowing who uploads files in admin panel thanks Quote Link to comment Share on other sites More sharing options...
wrequine Posted September 16, 2011 Share Posted September 16, 2011 After some trial and error I finally got this add-on working beautifully; from customer side (including options images) through the checkout process, and into the admin side all works as it should. My problem is with the display on product_info. Regular options display as they should. But options that have been touched by Option Types V2 are duplicated - they are displayed once correctly, and once as drop-downs with "customer-input." My first thought is I have some duplicated code somewhere in product_info.php, but after a couple different sessions of scouring this page I have been unable to find it. Does anyone have any suggestions as to what may be causing this? You can see the display problemt here. Quote Link to comment Share on other sites More sharing options...
droper Posted September 27, 2011 Share Posted September 27, 2011 Hello, @wrequine in what version of osCommerce You are? It's look like You running on 2.3.1? Please share how You integrate option types into it? Thank You. Quote Link to comment Share on other sites More sharing options...
kja03 Posted September 29, 2011 Share Posted September 29, 2011 Can anyone help with this problem please? I've installed Option Types V2 into my store and now when I go to the site I get this: Fatal error: Call to a member function buildBlocks() on a non-object in /home/colorvo2/public_html/store/includes/template_top.php on line 13 I've searched the forums and cannot find anything to help me with this - maybe i'm not looking hard enough. Like DROPER above i'm trying to run OTV2 on OSC 2.3.1 Any help appreciated please. Many thanks Kieron :) Quote Link to comment Share on other sites More sharing options...
CotswoldEngraver Posted September 29, 2011 Share Posted September 29, 2011 Hi all not sure if this has already been covered elsewhere, so my apologies if I am asking something that has already been solved. Two issues really that I need help on. 1) Is there a way of setting up a text box input with centred text? 2) I need to pass the above text box attribute to the completed order with the same formatting as the customer inputs in the text box. We sell engraved items and I want to be able to have the customer input their engraving exactly as if the text box were a trophy plate and see it come through with their order, or even on an email in the same format so I do not have to follow up with an email proof of the layout. Take a look at our site, the text box in the example needs to have its curser centred so the customer will type the layout just as it will be engraved. Hopefully you can see what I am trying to achieve. http://www.aseawards.co.uk/product_info.php?products_id=334 Thanks in advance Andy ASE Awards Quote Link to comment Share on other sites More sharing options...
WillianRoberg Posted October 3, 2011 Share Posted October 3, 2011 can anyone shed some light as how they got this to work on version 2.3.1? I´ve been trying for the past 5 hours, but no luck. Thanks! Quote Link to comment Share on other sites More sharing options...
montyrach Posted October 5, 2011 Share Posted October 5, 2011 I have this working on my 2.3.1 shop. What part of the installation are you having trouble with? Quote Rachel M. Link to comment Share on other sites More sharing options...
montyrach Posted October 5, 2011 Share Posted October 5, 2011 Can anyone give me an idea on how to make this work with the AJAX attribute manager? Thank you! Quote Rachel M. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.