I need to replace the Add to Cart button (only on certain categories) with a custom button for “Text a Dealer.” The “Text a Dealer” button will trigger a gravity form in a lightbox which allows the user to submit a text message over the Twilio SMS service.
Here is a screenshot
I think I know how to link the button to a form in a lightbox but I do not know how to replace the button.
You can replace button code with your desired code.
This will replace the default button code with your custom code.
You also want this customization to be applicable only on certain categories. This can be achieved by addition of some more code. See below.
Hope this helps.