cgi scripting for Miva
Richard Gaskin
ambassador at fourthworld.com
Wed Mar 2 16:36:19 EST 2005
Marty Knapp wrote:
>>>I haven't done any cgi scripting with Rev, but I'm needing to put together
>>>something for a Miva Merchant store that I'm just setting up. Here's the
>>>scenario:
>>>
>>>A customers orders products from our Miva store, I get the order as a simple
>>>email. I then forward it along with the attachment of a .pdf file of the
>>>product and a .pdf mailing label to a fulfillment center that prints the
>>>product and the label on demand and sends the order on to the customer.
>>>There will be hundreds of different .pdf files, with new ones being added
>>>from time to time. Storing my .pdfs at the fulfillment center is not an
>>>option.
>>>
>>>There are modules that you can add to Miva that will send emails with
>>>attachments to the customer, but none that I'm aware of that will send
>>>attachments to a vendor. I did find a module that will send XML data to a
>>>vendor, but not an attachment without the help of something else.
>>
>>Miva sales emails are consitently formatted. Why not just parse those?
>>Does it have to be XML?
>
> What I'd like to do is store my pdf files online and when an order is
> placed, somehow have them automatically sent to my fulfillment center
> without any interaction on my part. And no it doesn't have to be XML, that's
> just what that particular module provides.
One method would be to have a copy of the order emails sent to a
separate mailbox, and then make a mail client with Rev that will get the
mail, parse the messages and respond as you like.
But perhaps simpler would be to modify the XML of whatever Miva
component is currently the closest match to what you need. The Miva
scripting language is pretty flexible and sometimes kinda fun, so it
could be customized with a little effor (provided, of course, that the
vendor of the Miva module distributes a non-compiled version, or can
make one available for you).
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge: Publish any database on any Web site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list