Changing the standard value of the gift card fields

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
14 anni tempo fa
Hallo,

I want to change the standard value of the sender field ("Your Name") for gift cards. At the moment it's the name of the logged in user. I can not find a line for this in the code.
14 anni tempo fa
ckoch1979 wrote:
Hallo,

I want to change the standard value of the sender field ("Your Name") for gift cards. At the moment it's the name of the logged in user. I can not find a line for this in the code.


The current logged in user's full name is set as the default sender name in the following files:

File: Templates\Products\OneVariant.ascx.cs (line # 111)
    txtSenderName.Text = NopContext.Current.User.FullName;

File: Modules\ProductVariantsInGrid.ascx.cs (line # 216)
    txtSenderName.Text = NopContext.Current.User.FullName;

You will need to recompile the solution to see any changes you make to the field.

.
14 anni tempo fa
Thank you for the answer.

I am new to nopCommerce. Is it possible to set "code-behind" to "code-file" (instead of recompiling)?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.