MiniVend Akopia Services

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

[mv] Product Delivery via Download



******    message to minivend-users from Karl Swisher <kswisher@iolinc.net>     ******

Hello,
	I found a reply by Mike Heins on the list archieve with the subject of
"Selling software/data files with Minivend".

I added 'AllowGlobal binary_download' to minivend.cfg.

The following code is only slightly rearanged from Mike's example.  However I
had to put this code in minivend.cfg.  Putting the code into catalog.cfg caused
an error on restart.

UserTag include-url Order binary
UserTag include-url hasEndTag
UserTag include-url Routine <<EOF
sub  {
	my($binary, $url)=@_;
	package UserTag::URL;
	use LWP::jtbm;
	$url=~s/^\s+//;
	$url=~s/\s+$//;
	my $page = get $url;
	return $page if $binary;
	$page=~s/.]*>//is;
	$page=~sreturn $page;
}
EOF

I've have a directory call products inside of pages.  Inside of this products
directory are files that are links to the actual data file.

I created a new html page called freedownload.html.


Put this code on the freedownload.html page

[new][include-url binary]
http://localhost.localdomain/cgi-bin/jtbm/products/freedownload.html
[/include-url]


Also have this code.
[tag header]Content-type:binary/data[/tag][new][include-url binary]
[scratch cylinkdownload]    <---- This is from SQL database
[/include-url]

I have been trying to get this to work off the flypage.  The scratch variable
is obtained from an SQL database.  Have tried different variations of the
following code along with  variations of  <A href=[area scan ect..........

     [page scan  or [area scan args="....
            st=sql                              <----search type
	sp=freedownload.html        <----return page
	se=[sql-param productid]   <----search spec
	sf=productid                     <----search field
	rf=productid                     <----return field
	fi=products                      <----search file
       ]

When I click on the search link,  the download requester appears in Netscape
however the file name is "fi=products" and the download file produced is that
of the html page not the data file.   If the "fi=productd" line is deleted then
you get the same result with "rf=productid" being the file name.  I've used
this one click search before with success.

I have no problem getting and passing product codes and the link data field to
another page as well as accessing the SQL database.
Could someone show me what I'm doing wrong ?  Any help will be appreciated

I have
MiniVend 3.14-3
RH 5.2

Thanks
Karl


-
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: