MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: crazy search-results?



******    message to minivend-users from Kyle Cook <kyle@invisio.com>     ******

Thomas,

	I just recently installed minivend and am in the process of setting up a
store catalog. I also needed a list of categories (as links to a
subcategory page) After spending 8-10 hours trying everything including
reading the manual :) I came up with the following which works good for my
ASCII database of 1,500 products:

[loop arg="[search arg='sf=4/tf=4/rf=4/ra=yes/un=yes']"]
	<UL>
		<LI>[page href="category" arg='[loop-code]'][loop-code][/page]
		</LI>
	</UL>
[/loop]

The above code assumes that your catagory is column #4 (columns start with
0) you may need to change all of the 4's with your column number.

The above is searching field 4, sorting field 4, returning only field 4,
returning all results, and only giving me unique results.

You'll notice that in setting up the [page] link I had to use [loop-code]
to display the categories. That is because I told the search to only return
1 field and so that field is now the "code"

Hope this helps
Kyle


At 01:11 PM 3/3/99 +0100, you wrote:
>******    message to minivend-users from Thomas Walter <tw@mail.itreff.de>   
>  ******
>
>Hi all.
>
>I am trying to get a list of all categories in my products.asc. So I did
>the following:
>
>  [loop search="di=category/tf=category"]
>  [loop-change category][condition][loop-field category][/condition]
>    [loop-field category]<br>
>  [/loop-change category][/loop] 
>
>The index-file for the categories is created via the
>INDEX-database-operator in the catalog.cfg.
>This worked with a small products-file with about 10-20 products, but
>after adding more products (now about 300) and more categories MV only
>displays three of them?
>If I take the tf away it displays more categories (now 5), but some of
>them are double - and still not all categories are displayed. I have
>also added ra=yes into the search-parameter, but this makes no
>different.
>
>This one works:
>  [tag each products][sort products:category]
>    [loop-change category][condition][loop-field category][/condition]
>      [loop-field category]<br>
>    [/loop-change category]
>  [/tag] 
>
>Can someone tell me why (not why this one works, but why the above does
>not)?
>  
>     Balu
>
>PS: Actually I am thinking of creating a category-database (containing
>only categories and subcategories) when my customer uploads the new
>products-file. I want to use
>[tag op=log file="products/categories.index"]
>But this gives me the following questions:
>    - How Do I delete the old index-file and do not append to it?
>    - How can I display if the building of the index was successfull or
>not?
>    - Can I nest more [tag]-tags (perhaps with with="" as in nested
>[loop]-tags)?
>-
>To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list

Kyle Cook 
http://www.invisio.com 
Web site design, database driven sites,
and shopping cart programming. 
Great sites, value priced!

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: