Akopia Akopia Services

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

RE: [mv] PATCH - MV4.04a: Changing "salestax.asc"



> -----Original Message-----
>>>
>>> The "Special" directive is actually derived from SpecialPage after
>>> config is run in lib/Vend/Config.pm. Can you describe the problem
>>> that you had?
>>>

Just wanted to finish this thread up... If you use "SpecialPage" to rename
the shipping.asc and accessories.asc databases, things should work fine.
(The documentation needs to reflect this:
http://www.minivend.com/minivend/docindex/16.01.Shipping_Cost_Database.html
is wrong, it should say "SpecialPage", not "Special")

However, it will not work if you try to rename the salestax.asc database.

The attached patch is needed if the SpecialPage directive is to work across
all three databases.

--
Jeff Carnahan - jcarnahan@networq.com
--- Data-dist.pm        Sun Jul 23 16:28:32 2000
+++ Data.pm     Sun Jul 23 16:46:37 2000
@@ -453,7 +453,8 @@
     my($code, $percent);
 
        return unless $Vend::Cfg->{SalesTax};
-       my $file = Vend::Util::catfile($Vend::Cfg->{ProductDir}, "salestax.asc");
+       my $file = $Vend::Cfg->{Special}{'salestax.asc'}
+                               || Vend::Util::catfile($Vend::Cfg->{ProductDir}, "salestax.asc");
        $Vend::Cfg->{SalesTaxTable} = {};
     open(Vend::SALESTAX, $file) or do {
                                        logError( "Could not open salestax file %s: %s" ,

Search for: Match: Format: Sort by: