MiniVend Akopia Services

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

Re: [mv] Possibly newbie questions but I'm asking anyway



Hi Joachim,

First, apologies to all for such a long post!

    Thanks for your suggestions.  Unfortunately, the price doesn't work correctly yet.  I've been desperately trying to find
other things to do at work, but my files are filed and my desk is clean, so I guess it's back to MiniVend  :-)

> Maybe, your products.asc isnīt right? Did you compare your products.asc
> file with the file from sample?
> Maybe, anywhere is a typo (the html page? the products.asc file?
> catalog.cfg?)? Maybe, If you can see all other field from your
> products.asc, is anywhere in your catalog.cfg wrong?
> Compare catalog.cfg with sample catalog.cfg.

    I've compared my catalog.cfg to the simple catalog.cfg, and aside from the size difference (mine is 2 pages, simple is 27
pages) all the pertinent information seems to be the same, or at least appropriate.  The products database that I am using is
TAB delimited, so naturally I have set that.  MiniVend is obviously looking at that file correctly since I can display the
appropriate information "on-the-fly."

> Check the locale setting (catalog.cfg) e.g.
>  Locale en_US mon_decimal_point .
>  Locale en_US mon_thousands_sep ,
>  Locale en_US frac_digits 2
>  Locale en_US currency_symbol $
>  Locale en_US p_cs_precedes 1

    As far as all the locale stuff goes, am I wrong to assume that MiniVend defaults to U.S. style of currency, etc.?

> Can you post the part of your codes?
> Can you post some lines of your products.asc with the first line (with
> the field names)?

Gladly:
    Here is part of the catalog.cfg file:

Variable   MV_USERDB_ACL_TABLE  userdb
Variable   MV_USERDB_ACL_COLUMN acl
Variable   HEADERBG_COLOR       BGCOLOR=#000000
Variable   HEADER_TEXTCOLOR     BGCOLOR=#FFFFFF

ParseVariables      Yes
MailOrderTo         __ORDERS_TO__
VendURL             http://__SERVER_NAME____CGI_URL__
SecureURL           __SECURE_SERVER____CGI_URL__
AutoLoad             flycat
Database             products     products.asc     TAB
Database             products     MEMORY           1
Database             vendor       vendor.txt       TAB
Database             transactions transactions.txt TAB
Database             userdb       userdb.asc       TAB
Database             country      country.asc      TAB
Database             locale       locale.asc       TAB
AlwaysSecure         ord/checkout
AsciiTrack           etc/tracking.asc
BackendOrder name,company,address,city,state,zip,country,account,mv_shipmode

    Here is a snipped section of the products.

code    title   description     price   image   category
11      AT&T 9400 900Mhz Digital Spread Specturm Cordless Telephone     <li>Direct sequence spread spectrum technology reduces
noise and interference<li>Extended range up to twice the range of 46/49 MHz cordless telephones<li>900 MHz transmission to
penetrate barriers more easily than conventional cordless phones<li>Advanced digital voice privacy is virtually immune to
eavesdroppers<li>Belt clip to keep your handset at your fingertips so you never miss a call $126.50 11.gif
47      AT&T 922 2-Line Speakerphone    <li>Auto-redials busy numbers every 40 seconds up to 10 attempts<li>Improved
speakerphone sound quality<li>32-number memory, up to 24 digits each<li>3-way conferencing $75.87  47.gif

(NOTE:  I know in this e-mail that everything is space seperated, but they are really tabs in the products.asc file.)

Here is the appropriate section of the basket.html:
<TD BGCOLOR="#FFFFFF" VALIGN=TOP ALIGN=CENTER><FONT COLOR="#000000">
        <INPUT TYPE="text"
                NAME="[quantity-name]" VALUE="[item-quantity]" size=3>

        </TD>
        <TD BGCOLOR="#FFFFFF" VALIGN=TOP ALIGN=RIGHT><FONT COLOR="#000000">
                [item-price]
        </TD>
        <TD BGCOLOR="#FFFFFF" VALIGN=TOP ALIGN=RIGHT><FONT COLOR="#000000">
                [item-subtotal]
        </TD>


> If you use a win machine and your shop is running in a unix machine,
> make sure all asccii file is transfered in ascci mode (not binary).

    I'm telnetted into the Unix machine and am using vi, so if there were any weird win characters in there, I think I'd be
able to see them with a :<line number>l which only shows tabs.

Thanks so much!

Dan



Search for: Match: Format: Sort by: