let arrayOfHardwares = [168788, 168785, 168781, 168778, 168776, 168773, 168770, 168142, 164061, 163702, 163393, 161793, 160571, 152681, 135030, 117852, 117850, 117320, 116161, 115349, 113652, 113656, 109305, 106723, 106004, 105952, 96304, 96299, 96294, 53757, 51214, 51139, 51022, 23111, 21960, 21526, 16954, 7967, 7924, 7899, 7669, 7639, 6556, 6219]; let classesString = jQuery('.add_to_cart_inline .wcpbc-price').attr('class'); let id = parseInt(classesString.replace('wcpbc-price ','').replace('wcpbc-price-','')); if(arrayOfHardwares.includes(id)){ jQuery('a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart').attr('style','display:none !important'); }
was successfully added to your cart.