|
Page 3 of 6
Setting Up Categories You first need to define your categories; otherwise your products will be "orphans" and not have any place to reside in your store. In Merchant you assign Products to Categories, not the other way around. For Merchant, a category spreadsheet needs to have, at least, the following columns: (A) CODE - Category Code (no spaces) (B) NAME - This is what is displayed (C) ACTIVE - Is this category active? Values = TRUE/FALSE (D) PARENT_CODE - If this will be a subcategory, put the parent category code here (E) PAGE_LEN - How many products per category page? 0 = Unlimited (F) TITLE - Display the title of this category? Values = TRUE/FALSE (G) HEADER - Display a header for your category. Can contain HTML, images, etc. You will need some basic HTML knowledge or the WYSIWYG Module for Merchant from XXX. Displays the same on every category "page" if your category spans many pages due to large number of products. (H) FOOTER - Same thing, as the Header. (I) TREE_IMG - You can replace the default HTML navigation of the Category tree with images. Put the PATH to the image here. Typically you would put your images in your www/Merchant2/ folder, so they will always be secure if your customer is logged in. So the path the image might be something like this: graphics/00000001/uniquecatcode_cattree.gif (J) TITLE_IMG - You can also replace the default title text with an image, as with the Tree. This path could look something like this: graphics/00000001/uniquecatcode_title.gif If you have enhanced your store with OpenUI, you have many more options for items that you can import in. We strongly suggest a site owner invest in this "Swiss-Army" tool for Merchant. I will be reviewing more OpenUI site enhancements in future articles. The spreadsheet columns now represent all the data elements that define your standard store structure. The great thing about Excel is that you can use the cells to hold text that you can then combine into another cell to string together things like category codes, descriptions, etc. How? By using columns beyond J to hold extra data that can be reused. Follow along If you set-up a formula in cell A2 in Excel, like this: =+D2&"_"&K2&L2 where - D2 is the Parent Code in Row 2 K2 is in a column outside of the table. It holds a value for the subcategory's code. L2 is the value if your navigation goes down to a third level. Need more? add more. This will produce a Category code like this: Parent_SubCatSubcat2. This gives you up to three levels of hierarchy of navigation. It also uses consistent naming conventions that lets you then create nice navigational effects in your site. This will be the topic of another article. You can also use this method if you have descriptions that require lots of bits of technical data to change, but you can have a basic template for the information, since it's the same data fields (dimensions, gauges, country of origin, strengths, etc) or other quantitative data for your products or categories. If you can create a common template for the data then you can use the extra columns to drag and drop sets of repetitive data. Or if you have your data in another legacy system that you can output all the fields needed, you can probably do some simple cut-n-pastes to get your data in the right places. Then you use the same format to create what is basically a form-letter approach to data manipulation. If you combine this with some basic HTML you can get some great mileage out of some simple data manipulation tricks.
|