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.

  • David 29 posts 110 karma points
    Jul 13, 2013 @ 21:27
    David
    0

    Razor Demo store ucommerce API

    Hi,

    Can someone point me in the right direction to find the code for the methods in the ucommerceapi in the Razor Demo store?  I'm having trouble tracing it back in Solution Explorer.

    • AddToBasket
    • GetBasket
    • GetProductVariations
    • GetVariantSkuFromSelection
    • Search
    • UpdateLineItem
    I'm evaluating uCommerce and would like to see the code behind these methods.
    Thanks.

  • Martin 181 posts 740 karma points
    Jul 14, 2013 @ 00:56
    Martin
    0

    Try to look in app_code folder in root of your website. I recall they should be in there in a folder called uCommerce.

    Best regards Martin

  • David 29 posts 110 karma points
    Jul 15, 2013 @ 00:33
    David
    0

    Hi Martin, I can't see the code in the folder you suggested.  There's only some functions (basket, product, review) and helpers (category, product, productreview).  

    Any other ideas?  I really need to understand how they added calls to services which use uCommerce.API

    Thanks.

  • Martin 181 posts 740 karma points
    Jul 15, 2013 @ 20:24
    Martin
    0

    Hi David,

    Check this out: https://bitbucket.org/uCommerce/ucommerce-razor-store

    It is source code for the demo store. Take your time to look around. There are some examples on how to add products to basket etc. https://bitbucket.org/uCommerce/ucommerce-razor-store/src/6af602da1ae0cb260776ccba8933a374559a1096/src/uCommerce.RazorStore/Services/Commands/AddToBasket.cs?at=default

    I hope it is more useful this time :)

     

    Best regards Martin

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 29, 2013 @ 14:29
    Søren Spelling Lund
    0

    Hi David,

    The service code is compiled and thus not available when installing the Razor Store demo.

    Martin is correct that you need to download the code from Bitbucket to get a look at the services. They're essentially just wrapped versions of the UCommerce.Api namespace :)

Please Sign in or register to post replies

Write your reply to:

Draft