MiniVend Akopia Services

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

Re: [mv] Inventory Tracking in Sample



In a message dated 11/25/99 8:41:13 AM Eastern Standard Time, 
lchiriac@ntkcom.com writes:

> Handytman@aol.com wrote:
>  
>  > ******    message to minivend-users from Handytman@aol.com     ******
>  >
>  > Before you change receipt.html, look at report.html. That's the page that
>  > happens whe Minivend eamils you an order. There, you'll see that 
inventory 
> is
>  > already handled.
>  
>  hmm... in the sample that I have there is no report.html. There is only a
>  receipt.html.

Whoops! I erred in assuming that everyone's sample catalog looks like mine.

I'm using the simple, "art store" demo without frames that comes with MV 
3.10. If you don't have a report.html, then doing what you want to do in the 
receipt.html should work OK. I'm not knowledgable about other Minivend 
versions or their samples.

The important thing is to have your code run in a page that's used at the 
time of sale. The receipt page is one of those.

>  
>  There is a report.html, but in the 'etc' directory of what I unzipped
>  (mevnd/flycat/etc/report.html), not in the 'etc' directory of my simple 
> catalog.
>  Is there another, more complicated demo that I can build?
>  
>  > However, you are right that the updated (decremented)
>  > inventory doesn't show in products.asc. It's in products.gdbm. To 
> automatically
>  > update products.asc, make sure the following appears at the top of  
report.
> html:
>  
>  you mean update 'inventory.asc', right? (i.e. not 'products.asc')

Yes. Really goofed up that one, didn't I?

>  
>  > [tag flag write]inventory[/tag]
>  > [tag touch inventory][/tag]
>  > Now, at the end of report.html, place...
>  > [tag export inventory][/tag]
>  
>  I will try.
>  
>  > It's been awhile since I did that, but I think that's right. Let me know.
>  > When an order is placed, your inventory.asc file should now be updated to
>  > reflect the changes.
>  
>  The reason I though that inventory does NOT work, is because in inventory.
> asc I
>  did not put inventory for all my products, and for some of them I have a 
qty 
> of 0.
>  I restart the minivend server (which should update the data in gdbm) and 
the 
> items
>  that are not listed or have an inventory qty of 0 are still added to the 
the 
> user
>  shopping cart if he wants to buy them! (But, they are out of stock!!)

He He! :o)   Minivend won't check to see if an item is in stock before 
selling it, displaying it, listing it or whatever. You must see to that. I 
have included some code on the search results page and the details page that 
checks the inventory database and displays "out of stock" if inventory is 
zero; also in that case an "add to cart" button will not appear. Also, on the 
shopping cart page I added code to loop through the basket and check 
quantities ordered against quantities available. Where then amount is too 
much, I reset the quantity to the available amount (none, for instance.) -Rob 
Maurer

>  
>  THANKS AGAIN,
>           Liviu
>  
>  > HTH,
>  > Rob Maurer
>  >
>  > In a message dated 11/24/99 4:33:00 PM Eastern Standard Time,
>  > lchiriac@ntkcom.com writes:
>  >
>  > > ******    message to minivend-users from Liviu Chiriac
>  > <lchiriac@ntkcom.com>
>  > >    ******
>  > >
>  > >
>  > >  I build the simple demo, and I am trying to understand how tracking
>  > >  works. It doesn't seem to work.
>  > >
>  > >  I even added the following to receipt.html
>  > >          [data inventory qty [item-code] -[item-quantity] decrement]
>  > >  to decrement the quantities with how many one orders. But 
inventory.asc
>  > >  does not change at all.
>  > >
>  > >  I am running version 3.14-4 - the latest one I just downloaded last
>  > >  week.
>  > >
>  > >  Do I have to "touch" something? I am quite struggling. I did some
>  > >  searches, and there was some talk of a report.html.... but that does 
> not
>  > >  have anything about modifying the inventory in it either!.
>  > >
>  > >  Am I missing something obvious? Maybe, but I cannot see it... ;-))
>  > >
>  > >  Thanks in advance,
>  > >     Liviu
>  > -
>  > 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: