1. Home
  2. Pick List
  3. Hooks & Custom Code
  4. Hide product name and bundle/details in Pick Order

Hide product name and bundle/details in Pick Order

If you only want to show the product thumbnail, SKU, and barcode/scanner support in the Pick Order table, you can use a custom snippet.

This snippet removes the visible product name, variation/bundle details, and other extra product fields from each order row, while keeping the SKU and the plugin’s barcode element intact. That means barcode scanning and related Pick List JavaScript functionality will continue to work as normal.

Important notes:

  • This only affects the Pick Order table view
  • It does not change the actual order data
  • It does not affect PDF/print output
  • It does not affect Grid View unless separately customized


You can add the snippet with a snippets plugin or in custom admin-side code.

Code:

add_action( 'admin_footer', function() {
	$page = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : '';
	$tab  = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : '';

	if ( 'picklist' !== $page || 'single' !== $tab ) {
		return;
	}
	?>
	<script>
	document.addEventListener('DOMContentLoaded', function () {
		document.querySelectorAll('#cas-picking-table td.cas-tbl-head').forEach(function (cell) {
			Array.from(cell.childNodes).forEach(function (node) {
				if (node.nodeType === Node.ELEMENT_NODE) {
					if (
						node.classList.contains('cas-tbl-sku') ||
						node.classList.contains('cas-barcode')
					) {
						return;
					}

					node.remove();
					return;
				}

				if (node.nodeType === Node.TEXT_NODE) {
					node.remove();
				}
			});
		});
	});
	</script>
	<?php
} );

How can we help?