Hi,
Disregard the previous post. The custom field appears
only if you are NOT in the catalog mode. Because the custom fields you have created are "Cart Variant" which means, those are effective in the checkout. If you are in the catalog mode, then it is normal if the add to cart button and the custom fields get hidden.
To force to show custom field in the "Catalog" mode too, please do these code changes:
Open this PHP file:
ROOt//templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php which ever layout you are using for product details page)
1- look for this line:
if (!VmConfig::get('use_as_catalog', 0) and (!empty($this->product->prices['salesPrice']))) {
?>
<div class="addtocart-area">
and replace it with this:
if ((!empty($this->product->prices['salesPrice']))) {
?>
<div class="addtocart-area">
2- look for this line:
<div class="addtocart-bar FlexibleProductDetailsAddToCartBar">
replace it with this:
<?php if (!VmConfig::get('use_as_catalog', 0)) { ?>
<div class="addtocart-bar FlexibleProductDetailsAddToCartBar">
3- Look for this line:
<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $this->product->product_name ?>" />
replace it with this:
<?php } ?>
<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $this->product->product_name ?>" />
If you do the coding changes exactly as i provided above, then the custom fields will be visible in the "catalog mode" too. (while "add to cart" button is still invisible)
Regards.