投稿総数: 9 カルマ: 45 参加: 2014/02/09 ロケーション: United States Hi All Brothers and Sisters, Pretty Urgent, could you tell me which link that contain this information or just suggest me where to change this code ? Thank you so much...
投稿総数: 11370 カルマ: 101402 参加: 2011/05/22 ロケーション: United States Search the code for CustomerEntersPrice
投稿総数: 9 カルマ: 45 参加: 2014/02/09 ロケーション: United States Hi, New York VIP, thanks for your reply.. it works 50%... addToCartWarnings = _shoppingCartService.AddToCart(_workContext.CurrentCustomer, product, cartType, _storeContext.CurrentStore.Id, string.Empty, 99, quantity, true); After setting CustomerPrice to 99, and added into shopping cart, I want to reset the Product back to product.CustomerEntersPrice = false; _productService.UpdateProduct(product); But the cart item also changes back to the product.Price instead of CustomerPrice, could you please help me ? THanks
投稿総数: 11370 カルマ: 101402 参加: 2011/05/22 ロケーション: United States Cart price is dynamically calculated (due to discounts, etc.). So you need to leave CustomerEntersPrice to true. Disable the functionality so that the customer can't enter price on the product page ... \Presentation\Nop.Web\Controllers\CatalogController.cs //customer entered price model.AddToCart.CustomerEntersPrice = product.CustomerEntersPrice;
投稿総数: 9 カルマ: 45 参加: 2014/02/09 ロケーション: United States Hi New York VIP... Many Many thanks for your help !!