Possibly a bug in nop2.2 when importing the products from xls

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 年 前
I imported around 800 products , all the fields were correctly imported apart from sku , as sku is nvchar , so it should accept numbers or string or combination of both , but only the sku starting as a number is imported for instance 199 is added while C199 is not added similarly 201C is added but BP104 is not added, any ideas
12 年 前
Doesn't sound right.  Step through the ImportProductsFromXls code found in the ImportManager.cs found in Libraries/nop.Services/ExportImport folder.
12 年 前
Make sure there is an apostrophe before the SKU otherwis it won't import the SKU
12 年 前
With apostrophe it imports fine
12 年 前
I have a macro I use for the apostrophe if you want it.
12 年 前
thrifty34 wrote:
I have a macro I use for the apostrophe if you want it.


Yeh that will be great :)
12 年 前
Macro 1 for SKU


Sub Add_Apostrophe()
Dim rng As Range
Set rng = Range("K2:K" & Range("K65536").End(xlUp).Row)
For Each cell In rng
cell.Select
If cell.Value <> "" Then
cell.Value = "'" & cell.Value
End If
Next
End Sub

Macro 2 for MPN



Sub Add_Apostrophe()
Dim rng As Range
Set rng = Range("L2:L" & Range("L65536").End(xlUp).Row)
For Each cell In rng
cell.Select
If cell.Value <> "" Then
cell.Value = "'" & cell.Value
End If
Next
End Sub
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.