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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top