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.

  • Steen Tøttrup 191 posts 291 karma points c-trib
    May 22, 2013 @ 08:14
    Steen Tøttrup
    0

    Custom text added to a basket item ?

    let's say I'm selling T-Shirts with a text print on. When putting the T-shirt in the basket, the buyer will have to enter some text (that will be printed on the T-shirt).

    Can anybody point me in the right direction? how would I go about doing that with uCommerce?

    Thanks in advance,

    Steen

  • Michael Hyldsgaard 64 posts 124 karma points
    May 22, 2013 @ 09:07
    Michael Hyldsgaard
    100

    You can save custom properties on an orderline like this:

    myOrderLine["t-shirt-text"] = "My Custom Text";

    Ref: http://www.publicvoid.dk/DynamicOrderPropertiesAddingCustomInformationToBasketsOrdersAndOrderLines.aspx

  • Nickolaj Lundgreen 233 posts 1132 karma points
    May 22, 2013 @ 09:08
    Nickolaj Lundgreen
    1

    You can combine this:

    http://www.publicvoid.dk/DynamicOrderPropertiesAddingCustomInformationToBasketsOrdersAndOrderLines.aspx

    Where you add custom data to an orderline, with the addtobasket function, so that when you add a product of a certain type to the basket, it will add the product (in a new orderline ofc.) to the basket. On of the add to basket helpers (can't remember the name) return the orderline id it was addeed to. This makes you able to add the custom property to the orderline.

     

    Hope it makes sense :)

  • Steen Tøttrup 191 posts 291 karma points c-trib
    May 22, 2013 @ 09:14
    Steen Tøttrup
    0

    Thank you both, that was spot on! Too bad I can only mark one reply the answer!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies