[resolved] Product Variations display key jquery not working (3 posts)

  1. Michael
    Posted 4 years ago #

    Tried using a display key to trigger a product variation input, but nothing was happening. After digging around in variation.process.jquery.js, I noticed that the updateVariations() function was looking for an attribute that doesn't exist (line 29: "displaykey" where it should have been "name").


  2. sparkweb
    Plugin Author

    Posted 4 years ago #

    The reason it uses the displaykey attribute is because anything that has a display key on it (supposed to be hidden until triggered on) gets one of those attributes. Here's how it should be setup on the backend:


    If it's still not working please post the url you are working on or email me at web at sparkweb [dot] net

  3. Michael
    Posted 4 years ago #

    Ah, I found the source of my confusion. I'm using a checkbox variation as the display key for a text input variation. I assumed that the name of the checkbox could be used as the display key for the text input. I didn't realize that I needed to append {dkey=the_display_key} to the label text of the checkbox.

    All set now. Thanks for the quick response.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic