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.

  • Anne 8 posts 48 karma points
    Jan 28, 2013 @ 14:57
    Anne
    0

    ucommerce add a step in checkout

    Hi,

    Im new to umbraco and ucommerce, but i think that ucommerce can do the trick for me.

    I want a webshop where the customer can buy membership to the website. If the customer adds the product "membership" to the basket and go to checkout i want a page where the customer can add information so the membership can be created. Ex date of birth etc. But this page should only show if the customer have added the product "membership", and not if it is "normal" products. Can anyone please help me how to do this? i have been searching for a while now.. Is it the pipelines i need to change?

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jan 28, 2013 @ 15:18
    Nickolaj Lundgreen
    0

    I would do it like this:

     

    var nextStep = "url from umbraco node for the next checkout step";
                if (basket.OrderLines.Any(x => Product.FirstOrDefault(y => y.Sku == x.Sku).ProductDefinition.Name == "membershipdefinitionName"))
                {
                    nextStep = "alternative url for membership information entry";
                }

    So you make a "optional" checkout step, and the content of the basket defines the next step in the checkout flow.

     

    I hope this helps

  • Anne 8 posts 48 karma points
    Jan 29, 2013 @ 06:36
    Anne
    0

    I have never tried to make a website with ucommerce.. Where should i put this code? how do i make the checkout?

    The url's you are refering to, where do i get the url to "the next checkout step" and "alternative url for membership information entry"? is it normal pages i should use as checkout?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jan 29, 2013 @ 06:49
    Nickolaj Lundgreen
    0

    Yes, its normal pages you use for the checkout.

     

    I make a "Checkout" content section like this:

    Checkout

    1. Basket
    2. Addressinformation
    3. Shipping and payment method
    4. Order confirmation
    5. Order Complete confirmation
    6. Order Declined
    (So Checkout is the parentnode for the individual checkout steps)
    So when you are on the basket node, you can make a link for the next checkout step in a couple of ways.
    Fx.
    var currentNode = uQuery.GetCurrentNode();
    var nextCheckOutStep = currentNode.Parent.GetChildNodes().FirstOrDefault(x => x.SortOrder > currentNode.SortOrder);

     

    This will return the next step in the checkout flow  (in my example the Addressinformation node).

Please Sign in or register to post replies

Write your reply to:

Draft