After this code rtuns the 'added' text apeears at the top of the page but the smallcart xslt still shows the cart is empty. How can i add a product to a cart in c#?
darn wish i saw this sooner. i ended up using your xslt for add to basket but changing it to match how my site works. I needed to add more datatypes to the products and couldnt find a way to do this in the ucommerce section of the cms. so i created a custom datatype where i could select a product from ucommerce. then created my product pages as you would created any standard umbraco page in the cms but i had the flexibility of adding my own datatypes i could then select the product this page will sell from a radiobutton list. I did some xslt to find the product that had been selected for that page.
adding item to basket using c#
Im trying to create a usercontrol that adds one of the default products from the ucommerce 2.0 package to the shopping cart:
After this code rtuns the 'added' text apeears at the top of the page but the smallcart xslt still shows the cart is empty. How can i add a product to a cart in c#?
3 Steps to Managing Multiple Basket Items as One has some good information on the API to use to add to cart from C#.
darn wish i saw this sooner. i ended up using your xslt for add to basket but changing it to match how my site works. I needed to add more datatypes to the products and couldnt find a way to do this in the ucommerce section of the cms. so i created a custom datatype where i could select a product from ucommerce. then created my product pages as you would created any standard umbraco page in the cms but i had the flexibility of adding my own datatypes i could then select the product this page will sell from a radiobutton list. I did some xslt to find the product that had been selected for that page.
If it gets the job done. No worries :)
For future reference many articles are available from our site in the support section.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.