To start the Web Store setup program start VFP in your Web Connection directory (using the standard Web Connection shortcut). Then type the following into the command window:

CLEAR ALL
CLOSE ALL
DO WWSTORE_SETUP

We suggest you use the default settings to create your first store. The wwStore setup program creates a new Web Connection project called WebStore and a process class called wwStore (which cannot be changed). You can also choose a Web Server on this page and if you're using IIS you have the option to select a specific Web site on your server.

The next step asks you to create a virtual directory wwstore, which contains the store HTML templates that are used to display the store's online user interface. This location defaults to a subdirectory called wwstore underneath your server's Web root.

Note:
that if you pick a site other than the default Web site this value is likely to point at the wrong location in the primary Web rather than the Web you selected. If so, change the path to the right directory manually.

It's highly suggested that you copy a separate version of wc.dll into your store application if you plan on running your Web store as a separate Web Connection application as is suggested for your first store. If you later on plan on running multiple stores this will also simplify things as you can isolate each store as a completely separate Web Connection application.

The final page of the Wizard asks you to create a scriptmap for the store application. Again it's highly recommended you stick to the default extension of wws, because all relative page links point at .wws pages off the menus etc. You can change this value, but you have to do a search and replace through all of the HTML template pages and the wwStore.prg file to not reference .wws page but whatever other template you choose.

The Wizard creates a new project for you - you may see a notice that says that the project wasn't fully compiled and that you manually have to go in and recompile the project into an EXE file.

Once the Wizard completes go into Visual FoxPro command window in your Web Connection install directory and type:

DO WEBSTOREMAIN

to run the main PRG file that controls the WebStore application. You can also open the project, recompile all files and then DO WEBSTORE.EXE if you rather work with a project.

If the server comes up OK, start up your browser and navigate to:

http://localhost/wwstore/default.wws

The Web Store home page should pop up as the request for Default.wws gets processed in the Web Connection server application.


Last Updated: 5/31/2003 | Send topic feedback