How to copy button functionality?

Topic summary

Main issue: The original poster wants a button in an “Image with Text” section to behave like their existing “Personalize” button, which opens a personalization window/modal.

Current behavior: The top “Personalize” button correctly launches the personalization window. The lower “Buy” button in the “Image with Text” area no longer works, and they want it to trigger the same personalization workflow as the top button.

Context: The poster has searched the theme’s snippets (template code files) to find how the personalization action is implemented but lacks the coding skills to replicate it. Two screenshots illustrate the working “Personalize” button and the non-functioning “Buy” button, which are central to understanding the UI placement.

Status: No solution or code references provided yet. The request is for guidance on copying/attaching the same click functionality to another button. Discussion remains open.

Summarized with AI on December 14. AI used: gpt-5.

How do I get my “Image withText” button to function like my personalized purchase button?

Here the customer is able to click the personalize button and a personalization window appears

but down here the buy button doesnt work anymore. I want to have the same functionality as the personalize button above. I’ve been looking around the snippets folder but my coding skills are lacking.