In my webpart I set cartItem.CartItemText to the description I wanted.
I also edited GetSKUName in CMSModles\Ecommerce\ShoppingCart\ShoppingCartContent.ascx.cs to return itemText
質問
I am trying to write code to add an item to the shopping cart.
I have been able to set the price of a product using
cartItem.CartItemPrice = price;
how can I set the description that displays?
I have looked at the ShoppingCartInfoProvider but I cant figure out what method to use
解決
In my webpart I set cartItem.CartItemText to the description I wanted.
I also edited GetSKUName in CMSModles\Ecommerce\ShoppingCart\ShoppingCartContent.ascx.cs to return itemText