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.
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
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 :)
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.
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
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.
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
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 :)
is working on a reply...