Thank you for your, as ever, prompt reply Nicolas.
I was not referring to a dynamic pop-up, which with multiple characteristics will cause all sorts of confusion for the use, not to mention in the code.
What I am saying is that any characteristic value, which is not in use as a published variant, in any combination, should not appear in a popup on the product.
E.G. I have the following:
Size | Colour | Published |
M | Red | Yes |
M | Blue | Yes |
M | White | Yes |
L | Red | Yes |
L | Blue | Yes |
L | Black | No |
Black should not be in the colour pop-up. The popup should be "Blue, Red, White".
I am not certain how the selection for the pop-up is currently done, but I would base it on a join to the variants of the parent product.
The SQL example would be:
select c.characteristic_id, c.characteristic_value
from hikashop_characteristic c, hikashop_variant v, hikashop_product p
where c.characteristic_parent_id = $characteristictypeid
and v.variant_characteristic_id = c.characteristic_id
and v.variant_product_id = p.product_id
and p.product_parent_Id = $productparentid
and p.product_published =1
That should give you a quick short list to stick in an array without having to remove any elements. It also does not matter if they are or are not in use in a combination with other characteristic types.
Having said that you, know your product better than I so I shall wait for you to reach the point in your to do list
I hope I do not come across as too critical of Hikashop, as I think it is an excellent product. I am just looking to make it even better