We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Simulate a button click on user action (pressing a different button).

Home Forums Programming Simulate a button click on user action (pressing a different button).

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60871
    saranjivac
    Customer

    Hi, I am close to finishing a woocommerce 3D configurator for a customer but we realized there are some dependancies (when certain options are picked, others are then hidden and have to default to something else).

    We resolved the hiding part within UI but the other part is the issue.

    Ideally the woocommerce part of Verge3D would have some sort of “Set” option, where we could set a product attribute to a specific value but in it’s absence I am trying to resolve it via a java script.

    The solution in the attachment should work in theory, but I believe perhaps the issue is that the .click() function does not know how to from iFrame to parent files?

    I am somewhat familiar with programming (was schooled for it but never actually practiced it after).

    Attachments:
    You must be logged in to view attached files.
    #60873
    kdv
    Participant

    First:
    VARS.weight.click();
    Second:
    Your variables are not HTML elements.

    Use JS

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #60878
    saranjivac
    Customer

    I figured it out, this seems to work, and explains why the variables weren’t HTML elements.

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.