سؤال

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