hook of integration folder help
-
hi im using a snippet to hide the meta product box and only show sku meta only`remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_meta’, 40 );
add_action( ‘woocommerce_single_product_summary’, ‘wooexplorer_show_sku_again_single_product’, 40 );function wooexplorer_show_sku_again_single_product() {
global $product;
?>
<div class=”product_meta”>
<?php if ( wc_product_sku_enabled() && ( $product->get_sku() || $product->is_type( ‘variable’ ) ) ) : ?>
<span class=”sku_wrapper”><?php esc_html_e( ‘SKU:’, ‘woocommerce’ ); ?> <span class=”sku”><?php echo ( $sku = $product->get_sku() ) ? $sku : esc_html__( ‘N/A’, ‘woocommerce’ ); ?></span></span>
<?php endif; ?>
</div>
<?php
}`but i have a plugin intregate with wcfm free woocommerce barcode & isbn that show the barcode and isbn in meta box but with the snippet they dissapear in the wcfm-view-integrations-products-manage.php this is the code ` <div class=”wcfm_clearfix”></div>
<?php } ?><?php if( $allow_barcode_isbn = apply_filters( ‘wcfm_is_allow_barcode_isbn’, true ) ) { ?>
<?php if(WCFM_Dependencies::wcfm_wc_barcode_isbn_plugin_active_check()) { ?>
<!– collapsible 12 – WooCommerce Barcode & ISBN Support –>
<div class=”page_collapsible products_manage_barcode_isbn simple external non-variable-subscription” id=”wcfm_products_manage_form_barcode_isbn_head”><label class=”wcfmfa fa-barcode”></label><?php _e(‘Product Identifiers’, ‘wc-frontend-manager’); ?><span></span></div>
<div class=”wcfm-container simple external non-variable-subscription”>
<div id=”wcfm_products_manage_form_barcode_isbn_expander” class=”wcfm-content”>
<?php
$WCFM->wcfm_fields->wcfm_generate_form_field( apply_filters( ‘product_manage_fields_barcode_isbn’, array(
“GTIN” => array(‘label’ => __(‘Global Trade Item Number’, ‘wc-frontend-manager’) , ‘type’ => ‘text’, ‘class’ => ‘wcfm-text wcfm_ele simple external non-variable-subscription’, ‘label_class’ => ‘wcfm_title wcfm_ele simple external non-variable-subscription’, ‘value’ => $barcode, ‘hints’ => __( ‘Enter yout product global trade identification number code: GTIN codes, ITF-14, UPC, EAN, ISBN, JAN, it only comes in numbers.’, ‘wc-frontend-manager’ ) ),
“MPN” => array(‘label’ => __(‘Manufacturer Part Number.’, ‘wc-frontend-manager’) , ‘type’ => ‘text’, ‘class’ => ‘wcfm-text wcfm_ele simple external non-variable-subscription’, ‘label_class’ => ‘wcfm_ele wcfm_title simple external non-variable-subscription’, ‘value’ => $ISBN,’hints’ => __( ‘If you don\’t have a GTIN for your products, you can use an identification number supplied by the manufacturer to identify specific products, It normally comes in a series of numbers and letters. .’, ‘wc-frontend-manager’ ) )
) ) );
?>
</div>
</div>`
how do i make them appear again
- The topic ‘hook of integration folder help’ is closed to new replies.