{"id":292,"date":"2017-12-18T12:12:44","date_gmt":"2017-12-18T12:12:44","guid":{"rendered":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/?post_type=faq&#038;p=292"},"modified":"2018-09-28T06:58:18","modified_gmt":"2018-09-28T06:58:18","slug":"can-send-sku-product-title-form","status":"publish","type":"faq","link":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/faq\/can-send-sku-product-title-form\/","title":{"rendered":"How can I send the SKU \/ Product Title in my form?"},"content":{"rendered":"[vc_row][vc_column][vc_column_text]If you want to send the product SKU or product title into the fields of your enquiry form you need to do the following steps:[\/vc_column_text][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;][vc_column_text]By default our plugin looks for the following two fields inside your rendered form:<\/p>\n<pre>input[name=\"sku\"]\r\ninput[name=\"product\"]<\/pre>\n[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;401&#8243; img_size=&#8221;large&#8221; add_caption=&#8221;yes&#8221; style=&#8221;vc_box_outline&#8221; onclick=&#8221;link_image&#8221;][\/vc_column][\/vc_row][vc_row][vc_column width=&#8221;1\/2&#8243;][vc_column_text]So for example when you use Contact Form 7 and you want to send along the SKU or product name then use the following shortcodes:<\/p>\n<pre>[text* product]\r\n[text* sku]<\/pre>\n[\/vc_column_text][\/vc_column][vc_column width=&#8221;1\/2&#8243;][vc_single_image image=&#8221;400&#8243; img_size=&#8221;large&#8221; add_caption=&#8221;yes&#8221; style=&#8221;vc_box_outline&#8221; onclick=&#8221;link_image&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]If you use another contact form plugin like gravity forms you can change the SKU and Product field names within plugin settings. Go to\u00a0Single Product Pages and scoll to bottom. There you will find two fields to set your custom field-names.<\/p>\n<p>Important: our plugin takes the &#8220;name&#8221; attribute. So if gravity forms created a field with the input name=&#8221;123-sku&#8221;, then you need to change the SKU field according to this name.[\/vc_column_text][vc_single_image image=&#8221;402&#8243; img_size=&#8221;large&#8221; add_caption=&#8221;yes&#8221; style=&#8221;vc_box_outline&#8221; onclick=&#8221;link_image&#8221;][\/vc_column][\/vc_row]\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-292","faq","type-faq","status-publish","hentry","faq_topics-faq"],"_links":{"self":[{"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/faq\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":5,"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/faq\/292\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/faq\/292\/revisions\/405"}],"wp:attachment":[{"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/demos.welaunch.io\/woocommerce-bottle-deposit\/wp-json\/wp\/v2\/product_cat?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}