One page checkout new billing address

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I have modified some code, but I still think this applies to the unfmodified release.

In the action OpcSaveBilling in the CheckoutController there is:


TryUpdateModel(model.NewAddress, "BillingNewAddress");


But from my tests, this doesn't update the model. Shouldn't it be:


TryUpdateModel(model.NewAddress, "NewAddress");


Or did I miss something? The model name is NewAddress, not BillingNewAddress
12 years ago
No, it works fine and the model is updated. Please open \Presentation\Nop.Web\Views\Checkout\OpcBillingAddress.cshtml file. There is the following line of code which indicates that we use 'BillingNewAddress' prefix
dataDictAddress.TemplateInfo.HtmlFieldPrefix = "BillingNewAddress";
12 years ago
a.m. wrote:
No, it works fine and the model is updated. Please open \Presentation\Nop.Web\Views\Checkout\OpcBillingAddress.cshtml file. There is the following line of code which indicates that we use 'BillingNewAddress' prefix
dataDictAddress.TemplateInfo.HtmlFieldPrefix = "BillingNewAddress";

Okay, great. Missed that
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.