Guest pcjuice Posted May 22, 2006 Share Posted May 22, 2006 This does NOT work with CubeCart 3.0.10. I still hacked the mod into the respective pages but when you go into the Admin, there is just a blank line where "Product Options2" should be. Any ideas? I would love to see this work as "Product Options" still does not work and I need it bad. Possibly this will be addressed in the next version. Quote Link to comment Share on other sites More sharing options...
Guest pds Posted June 10, 2006 Share Posted June 10, 2006 Meltingsand's fix is the one that works in 3.0.10. THANK YOU! Quote Link to comment Share on other sites More sharing options...
Guest Bato Posted June 26, 2006 Share Posted June 26, 2006 This works great! Thank you very much! I just came up with an alternate workaround which is perhaps less wieldy if you don't mind editing a little php code ... 1. Open file /admin/products/options.php 2. Look for this line: $optionValues[$idKey] = $attributes[$i]['value_name']; 3. Comment out line like so: //$optionValues[$idKey] = $attributes[$i]['value_name']; 4. Look for this line $fullAttributes = $db->select($query); 5. Right after that add this: for ($i=0; $i<count($fullAttributes); $i++){ $idKey = $fullAttributes[$i]['value_id']; $optionValues[$idKey] = $fullAttributes[$i]['value_name']; } That should do it. Let me know if I forgot to put in some trivial detail that keeps it from working for you. What I would like to see is a hack or fix to make sure you cannot assign invalid attribute/option combinations. For example you can currently select a product then an option like Size and assign it an attribute like Blue. If anyone has a way to improve that let me know. Quote Link to comment Share on other sites More sharing options...
Guest Tony_B Posted July 15, 2006 Share Posted July 15, 2006 Worked like a charm on 3.0.10 - many thanks as it was driving me nuts. I just came up with an alternate workaround which is perhaps less wieldy if you don't mind editing a little php code ... 1. Open file /admin/products/options.php 2. Look for this line: $optionValues[$idKey] = $attributes[$i]['value_name']; 3. Comment out line like so: //$optionValues[$idKey] = $attributes[$i]['value_name']; 4. Look for this line $fullAttributes = $db->select($query); 5. Right after that add this: for ($i=0; $i<count($fullAttributes); $i++){ $idKey = $fullAttributes[$i]['value_id']; $optionValues[$idKey] = $fullAttributes[$i]['value_name']; } That should do it. Let me know if I forgot to put in some trivial detail that keeps it from working for you. What I would like to see is a hack or fix to make sure you cannot assign invalid attribute/option combinations. For example you can currently select a product then an option like Size and assign it an attribute like Blue. If anyone has a way to improve that let me know. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2006 Share Posted August 3, 2006 Elegant and precise bugfix. Works flawlessly in 3.0.11. Surprised this bug hasn't been fixed in the 10+ months since it was reported! Many thanks to Meltingsand! Smooth as glass N I just came up with an alternate workaround which is perhaps less wieldy if you don't mind editing a little php code ... 1. Open file /admin/products/options.php ... Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 17, 2006 Share Posted August 17, 2006 Many thanks for all your work. I've added it to 3.0.12 for release later today. Quote 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.