• Resolved ckmcgowan

    (@ckmcgowan)


    Hi, I’ve just done a clean install of WordPress and Woo Commerce and Installed the plugin and setup a test product but I’m getting an error when i click on the configure button, and if I click it again I just get blank screen with no choices / layers shown?

    The error is below:

    we had an error: TypeError: choices.first is not a function
    at i.add_choices (VM43 configurator.js:430)
    at underscore.min.js?ver=1.8.3:2
    at Function.v.each.v.forEach (underscore.min.js?ver=1.8.3:2)
    at i.each (backbone.min.js?ver=1.4.0:2)
    at i.add_layers (VM43 configurator.js:424)
    at i.render (VM43 configurator.js:410)
    at i.start (VM43 configurator.js:70)
    at HTMLDivElement.dispatch (jquery.js?ver=1.12.4-wp:3)
    at HTMLDivElement.r.handle (jquery.js?ver=1.12.4-wp:3)
    at Object.trigger (jquery.js?ver=1.12.4-wp:3)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi there,

    You have to set at least one choice per layer (even if you don’t add any image). I’ll fix this in the next release, but at the moment that’s the expected behaviour.

    If you do have that already setup but still get the issue, could you share your site’s URL for me to take a look?

    Marc.

    Thread Starter ckmcgowan

    (@ckmcgowan)

    Ok – That fixed it!

    Many Thanks

    Chris

    Thread Starter ckmcgowan

    (@ckmcgowan)

    Hi Marc,

    Is it possible if I know the product ID to initiate the configurator on a page other than the particular shop page with the product on?

    I’m looking to be able to launch the configurator for a specific product on the home page of a WordPress / Woo Commerce install.

    Many Thanks

    Chris

    Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi Chris,

    This isn’t currently possible without some custom coding, as the required scripts are only loaded on the product’s page.

    I’ll see if I can think of a good solution; such as adding a shortcode.

    Thread Starter ckmcgowan

    (@ckmcgowan)

    Hi Marc,

    Thought that might be the case.
    I tried looking around to see where you were loading scripts but see you require $POST->id to be configurable otherwise you exit out hence it only works on product page.
    Shortcode would be a great option where by you can just pass the post-id so the scripts are instantiated on any page and then you pass through product id to configure and add to cart.

    I’ve managed to ‘fudge’ it by linking directly to the specific product page then onload firing your .configurable-product-simple event which launches the configurator but would be great if we can remove this step.

    It’s a really good plugin though, I’m just running the tests then will purchase the variable addon so I can alter pricing based on the configurations.

    Cheers

    Chris

    Plugin Contributor Marc Lacroix

    (@marcusig)

    Hi Chris,

    Will look into it.

    It’s a really good plugin though,

    Thanks! ??

    I’m just running the tests then will purchase the variable addon so I can alter pricing based on the configurations.

    The extra price add-on might be the one you need? You can contact me here https://wc-product-configurator.com/contact/ if you want to make sure about this (Support for premium products isn’t allowed in the forums).

    Marc.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘choices.first is not a function’ is closed to new replies.