Hi,
Indeed, that data is not available in the preload.
The line:
$t .= '<p class="hikashop_order_option_name">' . $optionElement->order_product_name;
is displaying the name of the variant of the option.
So you probably want to add custom code around there to :
- load the data of the variant of the option from the hikashop_product table:
$optionVariantSelected = $productClass->get($optionElement->product_id);
- load the data of the option from the hikashop_product table:
$option = $productClass->get($optionVariantSelected->product_parent_id);
- load the data of the characteristics, values and variants of the option:
$option = $productClass->loadProductVariants($option, array('user_id' => $data->cart->order_user_id, 'selected_variant_id' => $optionElement->product_id));
- then, in $option->variants you'll have an array of all the possible choices of $option and you can compare that with the variants available in the order to do the display.