I am using the code from here: Conditionally alter specific product price in Woocommerce to increase the price of a specific product by $10 except on product pages from a certain category and if the cart contains anything from that category.
However now I have more than one product that I need to increase the price of. I tried altering line 7:
if( $product->get_id() != 87 ) return $price_html;
to something like
if( $product->get_id() != 87 || $product->get_id() != 2799 ) return $price_html;
to target product 87 or 2799 but it just breaks the code and even product 87 no longer displays as $10 more. I have tried variations on || and or but nothing I do works.
Help much appreciated :)