• Resolved archiewildsbull

    (@archiewildsbull)


    I have tried to make a get a quote form at checkout but when I try to capture the SKU of the product page that the form is on it doesn’t seem to work.

    This is the code is use:

    [dynamichidden SKU “CF7_get_custom_field key=’_sku'”]

    and then place the [SKU] in the mail page. This however doesn’t return anything when running tests. It shows nothing at all.

    Wondering if anyone knows where I am going wrong or some other code that will work better.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    What are you using for managing products? WooCommerce perhaps?

    Thread Starter archiewildsbull

    (@archiewildsbull)

    Yes we are using WooCommerce.

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Thank you for your patience! I was out of town all this week.

    So it looks correct. I went ahead and created a demo form on my website using this snippet:

    [dynamic_text product_sku placeholder:SKU "CF7_get_custom_field key='_sku'"]

    And inputted cf7-dtx as the SKU for my digital product here and it seems to be working as intended. I also used your exact form tag below the dynamic text so if you inspect the code on the webpage I just linked, you’ll see the hidden field as well.

    Can you double check a few things:

    • the SKU field has value in the product’s backend
    • the form is on that product page (if not, form tag will need to specify the product ID)
    • the form tag uses the correct syntax/quotes: [dynamichidden SKU "CF7_get_custom_field key='_sku'"]
    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    I haven’t heard back from you in a while so I’m marking this as resolved. Please reach out if you continue to experience this issue. Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SKU capture not working in Contact Form’ is closed to new replies.