Score:1

Adding Current Product page Variant ID/SKU to webform submission Drupal 8

it flag

I have product type event, this event have registration fees if price value not zero.

Product page built with views and I embed related webform inside it.

am using module called commerce webform order: which add handler to webform to create order and redirect user after submit webform to checkout page.

Currently I use fixed selected variant as screenshot below

enter image description here

This field needs to be filed with product ID, and accept token. However I don't have direct token can be used in webform as hidden field to read this value (I want to store this value like screenshot below) enter image description here

Any ideas how can this be done? or at least what token can be read in webform to set this value (I did some research and did try [webform_submission:source-entity:variation_sku]) but its not working.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.