B. Updating Products
After you have the exported file eg in .CSV or .TXT, please open the file in your local machine and try to update which product(s) you want that need updating.
For .CSV file you can open with Ms Office Excel.
Usually once you open the .CSV file in Ms Office Excel , you will see
irregular
columns like above screenshot.
You can make them
more organized
columns by clicking first Column A so it will select all text in Column A like screenshot below :
Then click "Data" tab at top and then click the "Text to Colums" icon.
You will see a popup and please choose the Delimited option as like screenshot below and then click Next:
In the next popup screen, please make sure the delimiters "Tab" and "Semicolon" checkboxes is ticked as like screenshot below and then click Finish:
You will see now your products columns / fields in the Ms Office Excel is more organized and easy for you to edit as like screenshot below:
You can start editing which products you need to update in the Excel sheet and save the file once done.
The catalogid column can be removed from excel sheet if you want as VPCart will not use this field as the Match Field. Instead we will use ccode field as the Match Field.
Make sure the "Hide" column/field always have value
When editing the products in Ms Excel, please make sure the "Hide" column always have value.
For site using Ms Access db, please set with value True or False. Set True if product will be hidden. Set False if product will be displayed.
For site using SQL db and MYSQL db, please set with value 1 or 0. Set 1 if product will be hidden. Set 0 if product will be displayed.
How to assign multiple category for a product when editing the excel sheet
To import multiple category for your product, please use the "ccategory" field for the main category, while the "level3" field is used to hold your other category.
If you have multiple category in your excel sheet, after you have done the import later, you will need to remember to run the page convertproducts.asp.
Example:
Http://www.domain.com/admin/convertproducts.asp
Please change domain.com with your VPCart site and please change the /admin/ with your actual admin folder.
How to save your edited Excel Sheet file
After you have finished editing the sheet in Excel, please go to File > Save As > And then in the dropdowns of file extension, please select "Text (Tab delimited) (*.txt)" and click Save.
C. Importing Products
Microsoft VBScript runtime error '800a0009'
Subscript out of range: 'index'
Most of the time, the error is related to the incorrect
Delimiter value you enter in the form before.
To fix the issue, please open the .CSV or .TXT file that you want to import before, in a notepad or text editor, and see what is the exact separator or delimiter for each columns whether it is a semicolon ; or a space TAB.
In the example below, after we open the sheet file using notepad+, we can see the actual delimiter there is using TAB ;
Once confirm the correct delimiter, please click back button in your browser to load the previous import form and enter the correct value for the Delimiter and click Continue to start import again.