Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jan 13, 2015 @ 09:37
    Rasmus Eeg
    0

    uCommerce picker: failed to load

    The uCommerce picker doesn't work in Umbraco 7.2.1


    uCommerce picker failed to load

    Zero nodes show?

    Are the prevalues for this picker required? (they are left empty) But there is a hidden button:


    uCommerce picker hidden button


    When i click it, they following error shows in console:

    TypeError: Cannot set property 'selected' of undefined
    at swapSelectedNode (http://localhost:55014/umbraco/ucommerce/scripts/app/Controllers/content-tree.controller.js:191:17)
    at Object.treeSetSelected (http://localhost:55014/umbraco/ucommerce/scripts/app/Controllers/content-tree.controller.js:182:3)
    at http://localhost:55014/umbraco/lib/angular/1.1.5/angular.min.js:74:98
    at http://localhost:55014/umbraco/lib/angular/1.1.5/angular-mobile.js:270:9
    at Object.e.$eval (http://localhost:55014/umbraco/lib/angular/1.1.5/angular.min.js:92:272)
    at Object.e.$apply (http://localhost:55014/umbraco/lib/angular/1.1.5/angular.min.js:92:379)
    at HTMLDivElement.<anonymous> (http://localhost:55014/umbraco/lib/angular/1.1.5/angular-mobile.js:269:13)
    at HTMLDivElement.x.event.dispatch (http://localhost:55014/umbraco/lib/jquery/jquery-2.0.3.min.js:10:11778)
    at HTMLDivElement.y.handle (http://localhost:55014/umbraco/lib/jquery/jquery-2.0.3.min.js:10:7906)
    
  • Morten Skjoldager 440 posts 1499 karma points
    Jan 13, 2015 @ 14:18
    Morten Skjoldager
    0

    Hi Rasmus, 

    Yes prevalues are required. It is not that obvious but you need to set which tree to select from (we have different configurations that shows different parts of the tree) and then what type you want to be able to select (which node types are selectable). 

    Can you explain what it is that you're trying to achieve so i can provide an exact answer :) ? 

    Best regards

    Morten

  • Rasmus Eeg 91 posts 457 karma points c-trib
    Jan 14, 2015 @ 20:50
    Rasmus Eeg
    0

    Hi Morten,

    I'am trying to select products from uCommerce.

    Do you have any documentation on this picker?

    Best regards/venlig hilsen

    Rasmus

  • Morten Skjoldager 440 posts 1499 karma points
    Jan 23, 2015 @ 10:07
    Morten Skjoldager
    100

    Hi Rasmus, 

    and sorry for the late reply.

    I would like to change the property editor so it is a little more easy to configure. Unfortunately i haven't had the time :( 

    The "selector" prevalue points to the different node types rendered in the tree. It is a comma seperated list you can type in, so for products and variants it is:

    product,productVariant (just remove either if you only need to select one thing). 

    The "tree" prevalue points to a configuration in uCommerce, that chooses what part of the tree to render. Right now we have configured it to be with or without products from the catalog section. 

    Choose between "products" and "catalog".

    More specifically:

    if you look in Core.config under "/umbraco/ucommerce/configuration" it points to the implementations of ContentNodeService"

           <component id="ProductNodeService"
                service="UCommerce.Web.Api.Services.Nodes.ITreeNodeService, UCommerce.Web.Api"
                type="UCommerce.Web.Api.Services.Nodes.Impl.ContentNodeService, UCommerce.Web.Api">
                <parameters>
                    <serviceType>Products</serviceType>
                    <treeNodeContentToTreeNodeConverter>${TreeNodeConverterService}</treeNodeContentToTreeNodeConverter>
                    <treeContentService>${CatalogProductTreeService}</treeContentService>
                </parameters>
            </component>
           <component id="CatalogNodeService"
                service="UCommerce.Web.Api.Services.Nodes.ITreeNodeService, UCommerce.Web.Api"
                type="UCommerce.Web.Api.Services.Nodes.Impl.ContentNodeService, UCommerce.Web.Api">
                <parameters>
                    <serviceType>Catalog</serviceType>
                    <treeNodeContentToTreeNodeConverter>${TreeNodeConverterService}</treeNodeContentToTreeNodeConverter>
                    <treeContentService>${CatalogTreeService}</treeContentService>
                </parameters>
            </component>

    The injected "serviceType" is the available options :) 

    Hope this helps you in the right direction.

Please Sign in or register to post replies

Write your reply to:

Draft