Nombre de messages: 9 Karma: 45 Inscrit: 09/02/2014 Localisation: 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...
Nombre de messages: 11370 Karma: 101402 Inscrit: 22/05/2011 Localisation: United States Search the code for CustomerEntersPrice
Nombre de messages: 9 Karma: 45 Inscrit: 09/02/2014 Localisation: 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
Nombre de messages: 11370 Karma: 101402 Inscrit: 22/05/2011 Localisation: 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;
Nombre de messages: 9 Karma: 45 Inscrit: 09/02/2014 Localisation: United States Hi New York VIP... Many Many thanks for your help !!