Is this possible in rev?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BillyBlue
Posts: 4
Joined: Tue May 18, 2010 12:26 pm

Is this possible in rev?

Post by BillyBlue » Tue May 18, 2010 12:40 pm

Hey there,
I've to build an online-shop-system as a RIA. So first I wanted to build it in Flex, but maybe rev is the better way!?

This is what the system have to do:

- works in a browser
- different ways of walk through - for buying people with AND without a log in (special customers got % - so they need a login)
- normal productlist with pictures (data should come from a database, maybe an employer could add new stuff to the database with a second separated App)
- after the customer select a product the App has to read an entry in the DB to check, if this product is customizable - if yes a product-create should appear where the customer can set some text into a box (the App decides the box-width/high from the database). After the customer is ready, the App have to build an PDF with this text (and the same positions as the customer set it before in the 'creator') and send this PDF as an email-attachment after sale-checkout to the company.

I think this shouldn't be a problem in rev, or?

Here a few more questions:
- does the website-visitor needs a plugin or can I setup a runtimeenigine on the server, so no visitor needs a plugin?
- if the plugin is needed, does the browser tells you, you need to install it, if you don't have it already installed?
- can rev shows the user all fonts are installed on his own-computer like Flex can do? (for font-selection, to write text)?

Thank you!
- bb

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Is this possible in rev?

Post by Mark » Tue May 18, 2010 3:11 pm

Hello BB,

Yes, RunRev needs a plug-in to work in the browser. Unfortunately, the plug-in should not be used for a commercial project like this, which should work securely, reliably and instantly on any computer. I would not make this in RunRev. I'd use something that runs natively in the browser, without RunRev or Flash.

If it were not necessary to run the web shop in a browser, then you could have chosen to create the web shop with RunRev as an independent standalone application.

The RunRev browser plug-in is nice for experiments, for running software created with RevMedia on school networks where the plug-in is pre-installed, for games and probably for a few other applications, but the browser plug-in is currently unsuitable for critical business applications such as a web shop.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Is this possible in rev?

Post by bangkok » Tue May 18, 2010 5:05 pm

I think the best solution would be to use OnRev.

http://on-rev.com/

As Mark said, the plug-in is not really designed for visitors coming "on the fly" on a webshop.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is this possible in rev?

Post by FourthWorld » Tue May 18, 2010 5:26 pm

Shopping carts are a lot of work. If it's going to run in a browser, why not just use one of the many freely available solutions like ZenCart?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

BillyBlue
Posts: 4
Joined: Tue May 18, 2010 12:26 pm

Re: Is this possible in rev?

Post by BillyBlue » Tue May 18, 2010 6:05 pm

bangkok wrote:I think the best solution would be to use OnRev.

http://on-rev.com/

As Mark said, the plug-in is not really designed for visitors coming "on the fly" on a webshop.
What is the difference to the planed way (buy rev and use our own OSX Servers)?

BillyBlue
Posts: 4
Joined: Tue May 18, 2010 12:26 pm

Re: Is this possible in rev?

Post by BillyBlue » Tue May 18, 2010 6:06 pm

FourthWorld wrote:Shopping carts are a lot of work. If it's going to run in a browser, why not just use one of the many freely available solutions like ZenCart?
It is very simple..

because we need this special feature integrated in the shopsystem:

- after the customer select a product the App has to read an entry in the DB to check, if this product is customizable - if yes a product-create should appear where the customer can set some text into a box (the App decides the box-width/high from the database). After the customer is ready, the App have to build an PDF with this text (and the same positions as the customer set it before in the 'creator') and send this PDF as an email-attachment after sale-checkout to the company.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Is this possible in rev?

Post by Mark » Tue May 18, 2010 6:14 pm

Hi BB,

You can't create a PDF with a revlet (yet). Also, are you sure you want to request installation of a plugin for a shopping cart that might require a credit card?

If there is no shopping cart available that can do what you need, then make your own. I think it can be done with html/javascript/php.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is this possible in rev?

Post by FourthWorld » Tue May 18, 2010 9:14 pm

BillyBlue wrote:
FourthWorld wrote:Shopping carts are a lot of work. If it's going to run in a browser, why not just use one of the many freely available solutions like ZenCart?
It is very simple..

because we need this special feature integrated in the shopsystem:

- after the customer select a product the App has to read an entry in the DB to check, if this product is customizable - if yes a product-create should appear where the customer can set some text into a box (the App decides the box-width/high from the database). After the customer is ready, the App have to build an PDF with this text (and the same positions as the customer set it before in the 'creator') and send this PDF as an email-attachment after sale-checkout to the company.
ZenCart and some of the others have an extensible architecture that supports third-party plugins. I would imagine it would save significant time to use ZenCart for most of the cart, and just write a plugin to trigger a CGI to handle this specific task you need.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

BillyBlue
Posts: 4
Joined: Tue May 18, 2010 12:26 pm

Re: Is this possible in rev?

Post by BillyBlue » Tue May 18, 2010 9:49 pm

Hm.. and are there any tutorials or examples about this? In which language I've to write the plug-in?

Are there differences between ZenCart and Magento?

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Is this possible in rev?

Post by bangkok » Wed May 19, 2010 9:17 am

BillyBlue wrote: What is the difference to the planed way (buy rev and use our own OSX Servers)?
I see many differences :

-you want to host yourself, on your own OSX servers, a webshop application ? Why not after all, but it would be much more convenient to use a hosting company (cost, bandwith, reliability, maintenance etc.)

-OnRev is one package : a "server" version of RunRev, mixed with a web server (Apache) and a hosting offer. Its allow you to create easily HTML pages, mixed with scripts in RunRev language. It's like the best of both world.
You can do it the "hard way" (look at "cgi" articles here on this forum, a solution where people use RunRev runtime as an engine to create cgi, linked to an apache webserver), but for a whole website, it's too complicated.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Is this possible in rev?

Post by FourthWorld » Wed May 19, 2010 4:41 pm

BillyBlue wrote:Hm.. and are there any tutorials or examples about this? In which language I've to write the plug-in?

Are there differences between ZenCart and Magento?
I'm not a ZenCart expert, but their site has all the info you'd need: http://www.zen-cart.com/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Rogue123
Posts: 5
Joined: Sun May 23, 2010 2:31 am

Re: Is this possible in rev?

Post by Rogue123 » Sun May 23, 2010 2:53 am

Yes, it would be possible, but I concur with the other replies to your question. And honestly, this kind of web application is easy to create in a server side language, such as php/mysql/apache (which is kinda the standard these days). There are even free open source solutions: http://php.opensourcecms.com - Or go with onrev, if you prefer to use revtalk. Hosting your own server will cause you a lot of headaches and much more money.

Post Reply