WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Michael
    Member
    Posted 1 year 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").

    http://wordpress.org/extend/plugins/foxyshop/

  2. sparkweb
    Member
    Plugin Author

    Posted 1 year 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:

    http://i46.tinypic.com/e199w5.png

    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
    Member
    Posted 1 year 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