回帖总数: 9 业力: 45 注册日期: 2014/2/9 位置: 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/5/22 位置: United States Search the code for CustomerEntersPrice
回帖总数: 9 业力: 45 注册日期: 2014/2/9 位置: 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/5/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/2/9 位置: United States Hi New York VIP... Many Many thanks for your help !!