Skip to content

Commit

Permalink
Merge branch 'issue-1609-Product-editor-setting-Add-manufacturers' in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
skoshelev committed Aug 1, 2016
2 parents 9ed13f7 + bb6e468 commit 17ba434
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,5 +345,10 @@ public class ProductEditorSettings : ISettings
/// Gets or sets a value indicating whether 'Specification attributes' tab is shown
/// </summary>
public bool SpecificationAttributes { get; set; }

/// <summary>
/// Gets or sets a value indicating whether 'Manufacturers' field is shown
/// </summary>
public bool Manufacturers { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/Libraries/Nop.Services/ExportImport/ExportManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ public virtual byte[] ExportProductsToXlsx(IEnumerable<Product> products)
new PropertyByName<Product>("Width", p => p.Width, IgnoreExportPoductProperty(p => p.Dimensions)),
new PropertyByName<Product>("Height", p => p.Height, IgnoreExportPoductProperty(p => p.Dimensions)),
new PropertyByName<Product>("Categories", GetCategories),
new PropertyByName<Product>("Manufacturers", GetManufacturers),
new PropertyByName<Product>("Manufacturers", GetManufacturers, IgnoreExportPoductProperty(p => p.Manufacturers)),
new PropertyByName<Product>("Picture1", p => GetPictures(p)[0]),
new PropertyByName<Product>("Picture2", p => GetPictures(p)[1]),
new PropertyByName<Product>("Picture3", p => GetPictures(p)[2])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,8 @@ public partial class ProductEditorSettingsModel : BaseNopModel

[NopResourceDisplayName("Admin.Configuration.Settings.ProductEditor.SpecificationAttributes")]
public bool SpecificationAttributes { get; set; }

[NopResourceDisplayName("Admin.Configuration.Settings.ProductEditor.Manufacturers")]
public bool Manufacturers { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@
</script>
</div>
</div>
<div class="form-group">
<div class="form-group @(Model.ProductEditorSettingsModel.Manufacturers ? null : "advanced-setting")">
<div class="@leftColumnClass">
@Html.NopLabelFor(model => model.SelectedManufacturerIds)
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,15 @@
@Html.ValidationMessageFor(model => model.ProductEditorSettingsModel.Stores)
</div>
</div>
<div class="form-group">
<div class="col-md-10">
@Html.NopLabelFor(model => model.ProductEditorSettingsModel.Manufacturers)
</div>
<div class="col-md-2">
@Html.NopEditorFor(model => model.ProductEditorSettingsModel.Manufacturers)
@Html.ValidationMessageFor(model => model.ProductEditorSettingsModel.Manufacturers)
</div>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6456,6 +6456,9 @@
<LocaleResource Name="Admin.Configuration.Settings.ProductEditor.ManufacturerPartNumber">
<Value>Manufacturer part number</Value>
</LocaleResource>
<LocaleResource Name="Admin.Configuration.Settings.ProductEditor.Manufacturers">
<Value>Manufacturers</Value>
</LocaleResource>
<LocaleResource Name="Admin.Configuration.Settings.ProductEditor.MarkAsNew">
<Value>Mark as new</Value>
</LocaleResource>
Expand Down
3 changes: 3 additions & 0 deletions upgradescripts/3.70-the next version/upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2174,6 +2174,9 @@ set @resources='
<LocaleResource Name="Admin.Configuration.Settings.Tax.ShippingTaxClass.Hint">
<Value>Select tax category used for shipping tax calculation.</Value>
</LocaleResource>
<LocaleResource Name="Admin.Configuration.Settings.ProductEditor.Manufacturers">
<Value>Manufacturers</Value>
</LocaleResource>
</Language>
'

Expand Down

0 comments on commit 17ba434

Please sign in to comment.