WooCommerce hooks/shortcodes to dynamically add to gravity form
-
Hello! I’m new to woocommerce and have inherited a site from a previous developer.
We have a contact form that is available from each product page. It is a gravity form – not woocommerce – since we’re just collecting a message about the product.
The previous developer made it so that the subject line would dynamically update with product_name based on the page the user clicked the Contact button from. From what I can tell, this isn’t a standard woocommerce shortcode, but I also can’t find where the previous developer added it to the php file.
The client is requesting that in addition to the subject line being dynamically pulled in, the link to the product URL and/or the featured image of the product also be pulled in so that he can easily click on it and go to the product page from the notification email. I am planning to make a hidden field on the gravity form and dynamically update it, but I am not sure what shortcode to use for the parameter (or if I will need to create one).
Data can be passed dynamically to gravity forms query strings, shortcode, or hooks.
The page I need help with: [log in to see the link]
The topic ‘WooCommerce hooks/shortcodes to dynamically add to gravity form’ is closed to new replies.