Add Cart Link to Another Application
Add Cart Link to Another Application
Is it possible to add the "Cart" link that displays the quantity and takes you to the basket page(shopping cart) on another application if the username/email is known?
Re: Add Cart Link to Another Application
Well does that other application is running ablecommerce? If its some other software then you will have to check with their process of how to add an item to cart from a link. If its ablecommerce then you can find sample code in this thread viewtopic.php?f=65&t=17169
In order to add item to user with given email address instead of current user you will have to load user with given Email.
In order to add item to user with given email address instead of current user you will have to load user with given Email.
Code: Select all
BasketItem basketItem = BasketItemDataSource.CreateForProduct(productId, 1);
var user = UserDataSource.LoadForEmail(email);
user.Basket.Items.Add(basketItem);