
Originally Posted by
mc12345678
No problem. The questions were asked to help ensure that we are/would be on the same page.
Okay, so... If English is the only language that is used, then when working with fields that are language based such as "v_categories_name" the _1 that follows will assign the data to the language that is identified as having a language_id of 1... In a standard default install of Zen Cart that will be English.
So, to identify the category name information for English in a standard install, that data will go into the column that is titled v_categories_name_1. For a products_description, the v_products_description_1 column will be populated with the description to be presented in English.
So... How are sub-categories handled? Well, for English, all information has to be placed under the v_categories_name_1 column, but somehow the main category has to be identified to have a sub-category.... This is done by listing the main category separated by something and then followed by the sub-category of that main category. In a default EP4 installation, that dividing character is the carat (^) (shift 6 on a Standard US based computer keyboard).
For your example, the category information to put a product in the sub-category of Size 6 under Shoes, then the information in the field (column of v_categories_name_1) would be:
Shoes^Size 6
For the product that is to be in Size 7 of Shoes:
Shoes^Size 7
Now if you had a category that was a sub-sub-category, then something like:
Shoes^Blue^Size 6
Would place the product of that row into the Size 6 sub-category of the Blue category that is in the Shoes category....
Such above information would also be displayed in the output file if product were exported.
As to "several years ago", EP4 has been around for a long time thanks to the work of several others before me (as can be seen by going to the first post of this thread). This version though works differently than others have worked.
Does that help at all?
If you look back through this thread (use a search in the forum or perhaps even better from your favorite internet search tool) for say CONCATENATE, then there are instructions provided throughout about how you can "convert" an existing import file from the way that/those versions of Easy Populate operated to how EP4 works.... I know that I have provided such instruction multiple times but haven't gone back myself anytime recently to locate the posts...
For an example in say cell Y2:
=IF(N2<>"", CONCATENATE(M2,"^",N2),M2) & IF(O2<>"",CONCATENATE("^",O2),"") & IF(P2<>"",CONCATENATE("^",P2),"")
That would combine four cells together into a single cell where all of the content is combined as "expected". That result could then be copied to your v_categories_name_1 field....