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.

  • Damian Green 452 posts 1433 karma points
    Apr 15, 2014 @ 17:43
    Damian Green
    0

    Where are UCommerce custom order properties stored?

    This is in v3.6.1.13149

    Third time i have typed this as the forum has lost it when ive posted it! :( copying before i post this time!!

    Anyway....

    I have created an order and set a custom property, saved and run basket pipeline.

    basket.PurchaseOrder["myProp"] = "value"; 
    basket.Save();
    

    And then run the pipeline.

    TransactionLibrary.CreatePayment(payment.Id, requestPayment: false);
    TransactionLibrary.ExecuteBasketPipeline();
    TransactionLibrary.RequestPayments();
    

    I canf access the properties from the emails and u cannot find them in the database or backend anywhere.

    Whats happened to them and how do I access? So far i have tried:

    @order["myProp"]
    @order.OrderProperties.Single(prop => prop.Key == "myProp").Value
    

    Any ideas whats wrong?

  • Martin 181 posts 740 karma points
    Apr 16, 2014 @ 15:25
    Martin
    0

    Hi Damian,

    It seems to me you are doing it right. uCommerce saves custom order properties in the database table uCommerce_OrderProperty. If it is saved correctly it should be in this table.

    Best regards Martin

  • Damian Green 452 posts 1433 karma points
    Apr 17, 2014 @ 10:20
    Damian Green
    101

    Hi Martin,

    Spotted the issue - was a forms problem and the items were never hitting the code!

    Thanks Damian

Please Sign in or register to post replies

Write your reply to:

Draft