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.

  • bek 3 posts 23 karma points
    Aug 04, 2011 @ 10:48
    bek
    0

    Adding a field for amount, for example indemnification amount to a product in uCommerce Store/Umbraco..

    I have a problem in Umbraco/Ucommerce.

    I'm trying to find a way of adapting uCommerce Store for my specific needs. What I'm aiming to do is add an indemnification amount to an insurance product, but can't seem to figure it out.

    All the other fields are predefined; downloadable (yes, no), license type (dev, per, corp) and so on...

    Anybody got any ideas?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 04, 2011 @ 12:45
    Søren Spelling Lund
    0

    Hi bek,

    You'll probably want to take a look at the product definitions defined in the system. With those you can add custom fields are various types including "number", which sounds like what you need.

    Catalog Foundation Explained: Product Definitions will tell you all you need to know about product definitions (they're like Document Types only for products :)).

     

    Hope this helps.

  • bek 3 posts 23 karma points
    Aug 04, 2011 @ 13:37
    bek
    0

    Hi, thanks for your reply!

    I've been playing around wih the definition but can't seem to make it work.

    When I add a defintion, say for example IndemnificationAmount as a number, I can only edit it in the product. At best I can create a variant with a list of all the number from 0-whetever and let the customer choose..

    But what I need is for the customer in the store to be able to enter an amount of their choice. This is where I fall short..

    Regards bek

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 04, 2011 @ 13:55
    Søren Spelling Lund
    0

     

    I misunderstood the case. You basically need to store some custom information with each order line is this correct?

    You'll want to take a look a dynamic order properties. You can set them on the order itself or individual order lines.

    In XSLT you use CommerceLibrary:SetOrderProperty("myProp", "myValue") or SetOrderPorperty(lineIndex, "myProp", "myValue").

    In .NET you use myOrder["myProp"] = "myValue or myOrderLine["myProp"] = "myValue".

  • bek 3 posts 23 karma points
    Aug 05, 2011 @ 09:52
    bek
    0

    Just realised that I didn't understand your answer, pardon me for being a bit unprecise in my question.

    My question was regarding a product, and your anwers concerns the order, that's where you lost me :)

    On the product page I want to have a field where you can input a number (the indemnification amount) which will be used to present the insurance premium via some service (not realy import for the question). When the amount is entered and the customer is happy with the premium and adds the product to the basket, I want the product property to be populated and added to the basket...

    Thanks for taking your time!

  • Jason 22 posts 41 karma points
    Dec 12, 2011 @ 01:30
    Jason
    0

    Hi bek,

    Did you come up with a solution to your issue. I'm looking for the same, need some of my products to allow for custom field that the user will need to fill out when the product is added to the cart.  I've looked at the dynamic properties but not sure if that will work since those look to be specific to the entire order.

    Thanks,

    Jason

  • Søren Spelling Lund 1797 posts 2786 karma points
    Dec 13, 2011 @ 12:58
Please Sign in or register to post replies

Write your reply to:

Draft