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
- This topic has 3 replies, 2 voices, and was last updated 13 hours, 26 minutes ago by nzagazeta.
-
AuthorPosts
-
January 14, 2025 at 4:02 am #629448
nzagazetaParticipantHello,
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,
NicolasAttachments:
You must be logged in to view attached files.January 14, 2025 at 3:48 pm #629651
Aizaz Imtiaz AwanKeymasterHello,
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
January 14, 2025 at 6:15 pm #629727
nzagazetaParticipantHello,
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,
NicolasJanuary 14, 2025 at 8:09 pm #629751
nzagazetaParticipantHello,
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,
NicolasAttachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to create new topics. Login / Register