clothncraft

force downloadable product in wc vendors

Oct 19th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php WCVendors_Pro_Form_helper::attribute( $object_id ); ?>
  2.  
  3.  
  4. </div>
  5.  
  6. <div class="all-100">
  7. <!-- Media uploader -->
  8. <div class="wcv-product-media">
  9. <?php //Product Type
  10. WCVendors_Pro_Form_Helper::input( array(
  11. 'post_id' => $object_id,
  12. 'type' => 'hidden',
  13. 'id' => 'product-type',
  14. 'value' => 'simple',
  15. )
  16. );
  17. // Virtual Product
  18. WCVendors_Pro_Form_Helper::input( array(
  19. 'post_id' => $object_id,
  20. 'type' => 'hidden',
  21. 'id' => '_virtual',
  22. 'value' => 'yes',
  23. )
  24. );
  25. // Downloadable Product
  26. WCVendors_Pro_Form_Helper::input( array(
  27. 'post_id' => $object_id,
  28. 'type' => 'hidden',
  29. 'id' => '_downloadable',
  30. 'value' => 'yes',
  31. )
  32. ); ?>
  33. </div>
  34. </div>
  35.  
  36. <hr />
  37.  
  38. <div class="all-100">
  39. <!-- Product Type -->
  40. <div class="wcv-product-type">
  41. <?php WCVendors_Pro_Product_Form::product_type( $object_id ); ?>
  42. </div>
Add Comment
Please, Sign In to add comment