Grabbing Product_ID via Query to get SKU text for contact form

Hi there,

I’m currently putting together an Enquiry form on a lightbox that I want to auto fill one of the fields with the product SKU of the current product page the customer is on. I’m struggling to pull the SKU data to the field.

I have tried a few different ways but am struggling with the queries getting the Product_ID and the sku.

Can someone help please!

I ended up using a query based on the product page slug to pull the SKU from the Stores/Products database.

If anyone needs more info on this in the future respond to this thread :+1:t3:

hi, I am struggling to get the SKU info on my enquiry form too so any help would be appreciated