HI Nicholas,
I am not sure if this is a change in how we started setting up our products or if the code that I am about to share was part of a recent update.
In /templates/g5_helium/html/com_hikashop/product/show_default.php, we have...
Value of '$this->itemFields' is NULL
We found the issue in components / com_hikashop / views / product : view.html.php at line: 1722
There is a check for whether or not a variant has a price. If it does not the custom fields will not display. Here is the code
$display_item_fields = true;
if(!$this->config->get('display_add_to_cart_for_free_products') || ($this->config->get('display_add_to_wishlist_for_free_products', 1) && $this->params->get('add_to_wishlist') && $this->config->get('enable_wishlist', 1))) {
if(empty($element->variants)) {
if(empty($element->prices))
$display_item_fields = false;
} else {
$variants_are_all_free = true;
foreach($element->variants as $variant) {
if(!empty($variant->prices)) {
$variants_are_all_free = false;
}
}
if($variants_are_all_free)
$display_item_fields = false;
}
}
I thought the original behavior was that if a variant does not have a price it would inherit the price of the parent product.
In any event our problem of custom fields not showing is solved by making sure that all variants have a price.
Thanks,
Brian