PageSourceSearch

https://perfectmeasuringtape.com/app/mu-plugins/_woocommerce-uploa…/js/wcuf-frontend-add-to-cart-buttons.js

js perfectmeasuringtape.com collected 2026-10-02 22:12:53 UTC 714 bytes, 27 lines download raw bytes

1jQuery(document).ready(function()
2{
3	/* jQuery('.wc-products .button.add_to_cart_button').remove(); */
4	jQuery(".price-cart, .type-product").each(function(index, elem)
5	{
6		var elem_counter = 0;
7		jQuery( this ).find( '.summary a.button.add_to_cart_button' ).each(function(index, elem)
8		{
9			if(elem_counter++ > 0)
10				jQuery(this).remove();
11		});
12		
13		elem_counter = 0;
14		jQuery( this ).find( '.summary a.button.product_type_grouped' ).each(function(index, elem)
15		{
16			if(elem_counter++ > 0)
17				jQuery(this).remove();
18		});
19		
20		elem_counter = 0;
21		jQuery( this ).find( '.summary a.button.product_type_simple' ).each(function(index, elem)
22		{
23			if(elem_counter++ > 0)
24				jQuery(this).remove();
25		});
26	});
27});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.