Home Forums WoodMart support forum Change ‘Add to Cart’ Button to ‘Select Option’ in Product Carousel

Change ‘Add to Cart’ Button to ‘Select Option’ in Product Carousel

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #629448

    nzagazeta
    Participant

    Hello,
    I’m working on my website using the WoodMart theme, and I need help customizing the button that appears in the product carousel. Currently, the button says “Add to Cart,” but I would like it to say “Select Option” instead and redirect to the product details page when clicked.
    I’ve attached a reference image to clarify what I’m referring to.

    Could you please guide me on how to make this change through the theme settings, or let me know if I need to add any custom code?

    Thank you very much for your help.

    Best regards,
    Nicolas

    Attachments:
    You must be logged in to view attached files.
    #629651

    Hello,

    The “Add to Cart” button automatically adjusts based on the product type:
    • For Simple Products, it shows “Add to Cart” and allows direct purchase.
    • For Variable Products, it changes to “Select Options” and redirects users to the product page.

    Since you’re requesting customization for all products, you can either:
    1. Ensure your products are set as Variable Products for the “Select Options” button to appear by default.
    2. If you’d like to override the button text and redirect functionality for Simple Products, you need to use custom code in your theme’s functions.php file.

    Best Regards

    #629727

    nzagazeta
    Participant

    Hello,

    Thank you for your response. I would like to know how I can convert a simple product into a variable product. Could you please provide step-by-step instructions to make this change?

    Looking forward to your reply.

    Best regards,
    Nicolas

    #629751

    nzagazeta
    Participant

    Hello,

    I’m facing the following issue with the product setup on my website:

    When I set the product as simple and add “regular price” and “sale price” (before and after prices), the button doesn’t redirect correctly to the product page. When clicked, it seems to stay in a loading state without completing the action.
    If I set the product as simple but don’t add “regular price” and “sale price,” the button redirects properly to the product page. However, I need to display a text in the red box (as shown in the image) that says, for example, “S/.390 per month.”
    When I set the product as variable, the button works correctly and redirects to the product page. However, in this case, the price field doesn’t display the way I want (with “before and after” prices).
    My goal is to always have the product redirect to the product page (without adding it to the cart) and also display the price correctly (preferably with the ability to customize the text, such as “S/.390 per month”).

    Could you please advise on the best way to achieve this?

    Best regards,
    Nicolas

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)