Inquire now button leading to Contact Info

Topic summary

A user implemented a custom “Inquire Now” button on product pages that redirects to a contact form, but the form remains blank with no product information pre-filled.

Current Issue:

  • Button successfully navigates to contact form
  • No product data transfers from the product page to the form
  • Screenshots provided showing the blank form state

Proposed Solution:
A workaround involves:

  • Passing the product page URL as a parameter when redirecting to the contact form
  • Extracting the product name from that URL on the contact page
  • Auto-populating the contact form with the extracted product information

Status: The responder offered to implement the custom code changes if the original poster is unable to do so themselves. No direct code snippet exists for this functionality—it requires custom development work.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hi,

So I’ve used a bit of custom code (nothing advanced) to have an inquire now button on my products page. It works in a very basic sense that when you click it while on a product it’ll immediately bring you to a contact form. However, no information actually transfers onto the contact form so it is left blank (as shown in the pictures below). Is there any snippet of code that would allow for the information on the product page to be transferred to the contact form?

Thanks in advance.

Hi @ADG-Ireland there is no direct code snippet that can be provided to accomplish the same, but there is a workaround you need to achieve it with custom coding, in such a way that from where the customer have clicked the Button the URL of that page should be transferred to the contact us page URL and then from that updated URL you will extract the Product name and add it in the contact us form.

Hopefully you got my point as I know it seems little confusing but this is the only way you have achieve this.

If you will unable to implement the same then I’m happy to do this for you, let me know. I can implement the code changes so that this will work well for you.

Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!

Best Regards

Sahil