Jump to content

Product Attributes Not Displaying


Guest
 Share

Recommended Posts

Guest pcjuice

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.

Link to comment
Share on other sites

  • 3 weeks later...

  • 3 weeks later...

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.

Link to comment
Share on other sites

  • 3 weeks later...
Guest Tony_B

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.

Link to comment
Share on other sites

  • 3 weeks later...

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

...

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...