Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
MiniVend 4.02
Browse files Browse the repository at this point in the history
  • Loading branch information
perusionmike authored and jonjensen committed Jan 2, 2009
1 parent 52c57ce commit f7a90f3
Show file tree
Hide file tree
Showing 41 changed files with 1,135 additions and 168 deletions.
13 changes: 13 additions & 0 deletions MANIFEST
Expand Up @@ -221,6 +221,18 @@ dist/simple/pages/action/get_password.html
dist/simple/pages/browse.html
dist/simple/pages/browse1.html
dist/simple/pages/canceled.html
dist/simple/pages/config/report_def/New.html
dist/simple/pages/config/report_def/Orders%20by%20SKU%20-%20Short.html
dist/simple/pages/config/report_def/Orders%20by%20SKU.html
dist/simple/pages/config/report_def/Orders%20by%20amount.html
dist/simple/pages/config/report_def/Products%20by%20category.html
dist/simple/pages/config/report_def/Products%20to%20edit.html
dist/simple/pages/config/reports/.html
dist/simple/pages/config/reports/Orders%20by%20SKU%20-%20Short.html
dist/simple/pages/config/reports/Orders%20by%20SKU.html
dist/simple/pages/config/reports/Orders%20by%20amount.html
dist/simple/pages/config/reports/Products%20by%20category.html
dist/simple/pages/config/reports/Products%20to%20edit.html
dist/simple/pages/deliver.html
dist/simple/pages/examples/test_banner.html
dist/simple/pages/feedback.html
Expand Down Expand Up @@ -316,6 +328,7 @@ dist/simple/upload/.empty
dist/src/compile.pl
dist/src/config.h.in
dist/src/configure
dist/src/mod_perl_tlink.pl
dist/src/mvctl.c
dist/src/syscfg.in
dist/src/testcgi
Expand Down
5 changes: 3 additions & 2 deletions Makefile.PL
Expand Up @@ -26,7 +26,7 @@ my $Prompt_sub;
my @mods_to_get;
my $Lock_troubles;

$VERSION = '4.01';
$VERSION = '4.02';

# See if we have the CPAN module
my $Cpan = 0;
Expand Down Expand Up @@ -382,7 +382,8 @@ sub initialize {
}
chdir '..';
my (@minimate) = sort grep -d $_, glob '../MiniMate-4*';
if(my $minimate = pop @minimate) {
my $minimate = pop @minimate;
if( $minimate and ! $ENV{RPM_BUILD_ROOT} ) {
my $dir = $realdir;
$dir = "$X{RPMBUILDDIR}/$dir"
if $X{RPMBUILDDIR};
Expand Down
23 changes: 12 additions & 11 deletions WHATSNEW
@@ -1,11 +1,11 @@

Minivend-4.02 changes:

W H A T ' S N E W

Everything. Well, not completely -- many MiniVend 3.x catalogs can
run with few changes, but there will be changes.

MiniVend 4.x is a major rewrite that restructures many things.
* Report generator for Minimate, with MV support.
* Additional Filter entries.
* Updated "expire" and "expireall" to work with file-based sessions.
* Fixed bugs in Internal HTTP server headers.
* Fixed "Next" problem in [more-list].

Minivend-4.01 introduces the following:

Expand Down Expand Up @@ -37,13 +37,14 @@ Minivend-4.01 introduces the following:
* Bug in build procedure found, should prevent binaries and man
pages ending up in strange places.

Minivend-4.00 is the initial release version.
Everything. Well, not completely -- many MiniVend 3.x catalogs can
run with few changes, but there will be changes.

W H A T ' S N E W

Minivend-4.0alpha12:
Minivend-4.00 is the initial release version.

-- added [banner ...] tag to replace random/rotate,
includes complete documentation
-- Glimpse works again.
MiniVend 4.x is a major rewrite that restructures many things.

Major new features are almost too many to mention, read the documentation
for the most complete description. Some highlights:
Expand Down
10 changes: 5 additions & 5 deletions dist/basic/products/shipping.asc
Expand Up @@ -3,7 +3,7 @@ code description criteria min max formula query opt
default No shipping weight 0 99999999 g PriceDivide

upsg UPS Ground weight 0 0 e Nothing to ship!
upsg UPS Ground weight 0 150 u Ground [default zip 98366] 3.00
upsg UPS Ground weight 0 150 u Ground [value name=zip filter=digits default=45056] __MVC_UPSADDER__
upsg UPS Ground weight 150 999999 e @@TOTAL@@ lbs too heavy for UPS

upsb: UPS Two Day
Expand All @@ -18,15 +18,15 @@ upsb: UPS Two Day
zone 450
table 2ndDayAir
geo zip
default_zip 98366
adder 3
default_zip 45056
adder __MVC_UPSADDER__

min 150
max 999999
cost e @@TOTAL@@ lbs too heavy for UPS

upsr UPS Next Day weight 0 0 e Nothing to ship!
upsr UPS Next Day weight 0 150 u NextDayAir [default zip 98366] 3.00
upsr UPS Next Day weight 0 150 u NextDayAir [value name=zip filter=digits default=45056] __MVC_UPSADDER__
upsr UPS Next Day weight 150 999999 e @@TOTAL@@ lbs too heavy for UPS

surf_A Int'l Surface A weight 0 0 e Nothing to ship!
Expand Down
4 changes: 3 additions & 1 deletion dist/build/makecat.redhat
Expand Up @@ -12,7 +12,7 @@ elif test -d /usr/local/minivend -a -w /usr/local/minivend
then
VENDROOT=/usr/local/minivend
BASEDIR=/var/lib/minivend
elif -d /usr/local/minivend -a -w /usr/local/minivend
elif test -d /usr/local/minivend -a -w /usr/local/minivend
then
VENDROOT=$HOME/mvend
else
Expand Down Expand Up @@ -69,6 +69,7 @@ do
--basedir=$BASEDIR \
--documentroot=$DOCROOT \
--minivenduser=minivend \
--minivendgroup=minivend \
--serverconf=$SERVERCONF \
--vendroot=$VENDROOT \
--catroot=$BASEDIR/$i \
Expand All @@ -79,6 +80,7 @@ do
--demotype=$i \
--mailorderto=minivend@$HOST \
--catuser=minivend \
--permtype=user \
--samplehtml=$DOCROOT/$i \
--imagedir=$DOCROOT/$i/images \
--imageurl=/$i/images \
Expand Down
7 changes: 7 additions & 0 deletions dist/simple/etc/profiles.login
Expand Up @@ -14,6 +14,13 @@ __NAME__ Login

[if type=explicit compare="[userdb login]"]
mv_nextpage=[either][cgi mv_successpage][or][cgi mv_nextpage][/either]
[perl minimate]
$Session->{mm_username} = tag_data( '__MINIMATE_TABLE__',
'username',
$Session->{username},
);
return;
[/perl]
[else]
mv_nextpage=[either][cgi mv_failpage][or][cgi mv_nextpage][/either]
[/else]
Expand Down
5 changes: 5 additions & 0 deletions dist/simple/pages/config/report_def/New.html
@@ -0,0 +1,5 @@
[perl]
$Values->{saved_report} = {
};
return;
[/perl][bounce href='[area config/report]']
@@ -0,0 +1,32 @@
[perl]
$Values->{saved_report} = {
'column2' => "subtotal",
'summary2' => "subtotal",
'report_table' => "orderline",
'summary_only' => "0",
'sort_option0' => "x",
'sort_option1' => "x",
'sort_option2' => "x",
'edit0' => "products",
'filter2' => "currency",
'table0' => "orderline",
'table1' => "products",
'table2' => "orderline",
'report_title' => "Orders by SKU - Short",
'generate_page' => "Generate definition",
'num_columns' => "3",
'mv_session_id' => "F9DMuxFH",
'sort_order0' => "sku",
'search_op' => "eq",
'break0' => "1",
'key1' => "sku",
'align0' => "LEFT",
'align1' => "LEFT",
'align2' => "RIGHT",
'column0' => "sku",
'align3' => "LEFT",
'mv_nextpage' => "config/report_results",
'column1' => "title",}
;
return;
[/perl][bounce href='[area config/report]']
49 changes: 49 additions & 0 deletions dist/simple/pages/config/report_def/Orders%20by%20SKU.html
@@ -0,0 +1,49 @@
[perl]
$Values->{saved_report} = {
'report_table' => "orderline",
'edit0' => "products",
'table0' => "orderline",
'edit2' => "transactions",
'table1' => "products",
'edit4' => "orderline",
'table2' => "orderline",
'edit5' => "pricing",
'table3' => "orderline",
'table4' => "orderline",
'table5' => "products",
'report_title' => "Orders by SKU",
'editkey4' => "code",
'editkey5' => "sku",
'sort_order0' => "sku",
'search_op' => "eq",
'align0' => "LEFT",
'align1' => "LEFT",
'align2' => "MIDDLE",
'column0' => "sku",
'align3' => "RIGHT",
'mv_nextpage' => "config/report_results",
'column1' => "title",
'align4' => "RIGHT",
'align5' => "RIGHT",
'column2' => "order_number",
'align6' => "LEFT",
'column3' => "quantity",
'summary3' => "subtotal",
'column4' => "subtotal",
'summary4' => "subtotal",
'column5' => "price",
'summary_only' => "0",
'sort_option0' => "x",
'sort_option1' => "x",
'sort_option2' => "x",
'filter4' => "currency",
'filter5' => "currency",
'generate_page' => "Generate definition",
'num_columns' => "6",
'mv_session_id' => "F9DMuxFH",
'break0' => "1",
'key1' => "sku",
'key5' => "sku",}
;
return;
[/perl][bounce href='[area config/report]']
46 changes: 46 additions & 0 deletions dist/simple/pages/config/report_def/Orders%20by%20amount.html
@@ -0,0 +1,46 @@
[perl]
$Values->{saved_report} = {
'report_table' => "transactions",
'edit0' => "userdb",
'edit1' => "transactions",
'table0' => "transactions",
'table1' => "transactions",
'table2' => "userdb",
'table3' => "userdb",
'table4' => "userdb",
'table5' => "userdb",
'report_title' => "Orders by amount",
'editkey1' => "code",
'sort_order0' => "total_cost",
'search_op' => "eq",
'align0' => "LEFT",
'align1' => "RIGHT",
'align2' => "LEFT",
'column0' => "username",
'align3' => "LEFT",
'mv_nextpage' => "config/report_results",
'summary1' => "subtotal",
'column1' => "total_cost",
'align4' => "MIDDLE",
'align5' => "LEFT",
'column2' => "lname",
'align6' => "LEFT",
'column3' => "city",
'column4' => "state",
'column5' => "email",
'summary_only' => "0",
'sort_option0' => "nr",
'sort_option1' => "x",
'sort_option2' => "x",
'filter1' => "commify",
'filter5' => "mailto",
'generate_page' => "Generate definition",
'num_columns' => "6",
'mv_session_id' => "F9DMuxFH",
'key2' => "username",
'key3' => "username",
'key4' => "username",
'key5' => "username",}
;
return;
[/perl][bounce href='[area config/report]']
41 changes: 41 additions & 0 deletions dist/simple/pages/config/report_def/Products%20by%20category.html
@@ -0,0 +1,41 @@
[perl]
$Values->{saved_report} = {
'report_table' => "products",
'edit0' => "products",
'edit1' => "cat",
'table0' => "products",
'table1' => "products",
'table2' => "products",
'table3' => "products",
'table4' => "products",
'report_title' => "Products by category",
'sort_order0' => "category",
'search_op' => "eq",
'sort_order1' => "artist",
'align0' => "LEFT",
'align1' => "LEFT",
'align2' => "LEFT",
'column0' => "sku",
'align3' => "LEFT",
'mv_nextpage' => "config/report_results",
'column1' => "category",
'align4' => "RIGHT",
'align5' => "LEFT",
'column2' => "artist",
'column3' => "title",
'column4' => "price",
'summary4' => "subtotal",
'summary_only' => "0",
'sort_option0' => "x",
'sort_option1' => "x",
'sort_option2' => "x",
'filter2' => "name",
'filter4' => "currency",
'generate_page' => "Generate definition",
'num_columns' => "5",
'mv_session_id' => "F9DMuxFH",
'break0' => "1",
'break1' => "1",}
;
return;
[/perl][bounce href='[area config/report]']
36 changes: 36 additions & 0 deletions dist/simple/pages/config/report_def/Products%20to%20edit.html
@@ -0,0 +1,36 @@
[perl]
$Values->{saved_report} = {
'report_table' => "products",
'edit0' => "products",
'table0' => "products",
'table1' => "products",
'edit3' => "pricing",
'table2' => "products",
'table3' => "products",
'report_title' => "Products to edit",
'editkey3' => "sku",
'sort_order0' => "title",
'search_op' => "eq",
'align0' => "LEFT",
'align1' => "LEFT",
'align2' => "LEFT",
'column0' => "sku",
'align3' => "RIGHT",
'mv_nextpage' => "config/report_results",
'column1' => "title",
'align4' => "LEFT",
'column2' => "artist",
'column3' => "price",
'matchlimit' => "10",
'summary_only' => "0",
'sort_option0' => "x",
'sort_option1' => "x",
'sort_option2' => "x",
'filter1' => "20",
'filter3' => "commify.0",
'generate_page' => "Generate definition",
'num_columns' => "4",
'mv_session_id' => "F9DMuxFH",}
;
return;
[/perl][bounce href='[area config/report]']

0 comments on commit f7a90f3

Please sign in to comment.