MiniVend Akopia Services

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

Re: [mv] Browse1 problem - update





betty c wrote:
> 
> ******    message to minivend-users from betty c <bc90007@yahoo.com>     ******
> 
> sort your products.asc using another tool like MS EXCEL
> the blank record will flow to the top of the file (missplace crlf)

Tried this also; there does not appear to be any blank records.
I have blank fields, ie size and for the Accessories here and there but
no blank categories.
I just figured that it works correctly if I change code in browse1 : 


[perl arg=scratch]
	$start = tag_data('session', 'arg') || 6;  
### was $start = tag_data('session', 'arg') || 1;###
	$chunk = 1;
	if($start =~ /(\d+):(\d*)/) {
		$start = $1;
		$chunk = $2 || 1;
	}
	$prev = $start - $chunk;
	if($prev < 1) {
		$prev = 0;
	}
	$Safe{'scratch'}{'start'} = $start;
	$Safe{'scratch'}{'chunk'} = $chunk;
	$Safe{'scratch'}{'next'} = $start + $chunk;
	$Safe{'scratch'}{'prev'} = $prev;
	$Safe{'scratch'}{'not_shown'} = 1;
	return '';
[/perl]


I don't understand why.

SB


Search for: Match: Format: Sort by: