hide paypal button and add default checkout button in product landing page

I have a problem on product landing page, I want to remove PayPal checkout button and add default and normal checkout button,

I want PayPal button to remain on cart page.

did anyone have any script.

  1. In the Themes section, locate your current theme and click on the “Actions” dropdown menu. Select “Edit Code.”

  2. In the code editor, navigate to the template file responsible for rendering the product landing page. Typically, this file is named “product.liquid” or “product-template.liquid.” If you’re using a different theme, the filename might vary.

  3. Search for the code that renders the PayPal checkout button. This code can vary depending on your theme and its customization options, but it usually contains the keyword “paypal” or references a specific payment gateway.

  4. Remove or comment out the code related to the PayPal checkout button. Select the relevant lines of code and either delete them or wrap them in comment tags ({%- comment -%} and {%- endcomment -%}) to prevent them from being executed.