Toplam Gönderi: 9 Karma: 45 Katılım: 9.02.2014 yer: 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...
Toplam Gönderi: 11370 Karma: 101402 Katılım: 22.05.2011 yer: United States Search the code for CustomerEntersPrice
Toplam Gönderi: 9 Karma: 45 Katılım: 9.02.2014 yer: 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
Toplam Gönderi: 11370 Karma: 101402 Katılım: 22.05.2011 yer: 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;
Toplam Gönderi: 9 Karma: 45 Katılım: 9.02.2014 yer: United States Hi New York VIP... Many Many thanks for your help !!