Home › Forums › WC Vendors Pro Support › Force Downloadable and Virtual products › Reply To: Force Downloadable and Virtual products
Thanks HEAPS for that.
However, I don’t believe it is doing what it ought to be doing 🙁
Can I just confirm that I’ve done everything right?
I have copied the template in to my theme folder – thus it is located …
…mytheme/wc-vendors/dashboard/product-edit.php
and the area around where I was supposed to edit looks like this …
<!-- Product Attributes (if any) -->
<?php
//Product Type
WCVendors_Pro_Form_Helper::input( array(
'post_id' => $object_id,
'type' => 'hidden',
'id' => 'product-type',
'value' => 'simple',
)
);
// Virtual Product
WCVendors_Pro_Form_Helper::input( array(
'post_id' => $object_id,
'type' => 'hidden',
'id' => '_virtual',
'value' => 'yes',
)
);
// Downloadable Product
WCVendors_Pro_Form_Helper::input( array(
'post_id' => $object_id,
'type' => 'hidden',
'id' => '_downloadable',
'value' => 'yes',
)
);
?>
</div>
<div class="all-100">
<!-- Media uploader -->
etc etc.
Is that correct?