Okay
  Public Ticket #3791999
Hide Tax Status & Class from product form
Open

Comments

  •  2
    Remco started the conversation

    I would like to hide these two fields from the product edit form. I enabled tax since all items on this marketplace are taxable and I dont want vendors to be able to change this when the add or edit a product. 

    Attached files:  Screenshot 2024-12-28 at 5.06.29 PM.png

  •  2,281
    WebWizards replied

    Hi there,

    Thank you for purchasing our plugin!

     

    To achieve this, you can add the following PHP code snippet to your site:

    add_action('marketking_dashboard_head', function(){
    	?>
    	<script>
    		jQuery(document).ready(function(){
    			jQuery('._tax_status_field, ._tax_class_field').remove();
    		});
    	</script>
    	<style>
    		._tax_status_field, ._tax_class_field {
    		    display: none !important;
    		}
    	</style>
    	<?php
    });

     

    This code can be added to functions.php of the site, or to any code snippets plugin.

     

     

    Let me know if I can help with anything, or if you have any questions,

    Kind regards,

    Stefan

  •  2
    Remco replied

    brilliant! worked! Happy New Year!!