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.

  • Matt Nolan 45 posts 65 karma points
    Jul 04, 2012 @ 12:49
    Matt Nolan
    0

    Multiple baskets with their own pipelines.

    Hi Soren,

    Is it posilble to create multiple baskets each with their own basket and checkout pipelines?

     

    Also, with the product definition attributes, is it possible to change the error message based on which attribute failed validation?

     

    Many Thanks,

    Matt

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 05, 2012 @ 11:47
    Søren Spelling Lund
    0

    You can create new pipelines to do exactly what you need. By default basket and checkout pipelines operate on the default basket, but in .NET you can control that completely.

    uCommerce Pipelines Explained shows you how to extend the existing ones.

    If you want to build a new one from scratch you can build a new config file and call that explicitly:

    var pipeline = PipelineFactory.Create<PurchaseOrder>("myCustomPipeline");

    The code above will look for a pipeline config called myCustomPipeline in the /umbraco/ucommerce/pipelines folder.

    I'll need a bit more detail to advice further. I'm not sure I understand what you're trying to do.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 05, 2012 @ 11:47
    Søren Spelling Lund
    0

    Errors messages for definition fields are not configurable. Sorry.

  • Matt Nolan 45 posts 65 karma points
    Jul 05, 2012 @ 11:55
    Matt Nolan
    0

    Hi Soren,

    Thanks for your response.

    We're in a bit of a strange situation, we're planning on adding a new type of product to our store. They would need to be purchased independantly from the existing products for bookeeping reasons hence the need for a second basket.

    The products will also need there own custom orderlines and basket and checkout pipelines related the kinds of details that will need to collected.

     

    I'm not sure that clarifies anything or is just more confusing.

     

    (shame about the error messages but oh well)

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 05, 2012 @ 13:03
    Søren Spelling Lund
    0

    If the requirements for checkout is vastly different between the two product types it makes sense to create separate pipelines to handle it.

    If you just need separation another option is to keep the checkout the same and then route the new order type to a separate store in the same install using Security Foundation to separate the two.

    You can add addtional info to order lines without affecting the checkout flow.

Please Sign in or register to post replies

Write your reply to:

Draft