wordpress woocommerse quick view and hover button

I’ve been working on this for about three hours, and I’m honestly stuck. Here’s the situation: we have two types of products—some are for rent, and others are for purchase. We’ve already changed the buttons as shown in the screenshot above, but we’re trying to change the “Buy Now” button to “Rent Now” on certain products. The rule we’re going with is that the button should say “Rent Now” unless the product is on a page with “general-retail” in the URL (though there may be a better way to differentiate between rental and purchasable products, that’s the best I’ve come up with so far).

We need the button text to change in three situations:

When someone clicks “Quick View” on a product photo.
When the button is hovered over.
When the button is clicked.
Right now, we’ve managed to change the button text to “Rent Now” when you’re on the product page itself, but it’s applying to all products regardless of whether they should be rented or bought. What we’re aiming for is to have it show “Buy Now” on the products that can be purchased and “Rent Now” on the rental products.

Praying someone can help me!!

Our theme: woodcart
We are using wordpress and woocommerse

what we want to be changed depending on the type of product: enter image description here

what it looks like now for all product pages: enter image description here

ive tried all the online resouces i could find on the topic