close ad
 
Important WebAssist Announcement
open ad
View Menu

Web development tutorial

Create a product catalog II (eCommerce Series)

Tutorial created by Ray Borduin, WebAssist

Categories: Data Bridge, Dreamweaver, PHP

rating

In this tutorial, Create a product catalog II of the eCommerce series, you will learn how to complete a dynamic product catalog by creating product administration pages, product catalog pages, and order pages. This tutorial follows Create a product catalog I where you determined if a dynamic product catalog is appropriate for your online store and how to complete the initial set-up.

You'll find a linked index including an overview of each tutorial belonging to the eCommerce series at the bottom of this page.

arrow downWhat do you need to start?

  1. Dreamweaver CS4 or higher.
  2. Data Bridge (alternatively, DataAssist) installed and activated in Dreamweaver.
  3. Site defined in Dreamweaver. For assistance, view these tutorials: Define a dynamic site in CS4 or Define a dynamic site in CS5+.
  4. PHP web page and connection in Dreamweaver to your database. For assistance, view this tutorial: Create a PHP database connection.
  5. MySQL database. If you do not have one, you can download our free eCommerce MySQL database in this tutorial.
  6. Refer to Create a product catalog I for initial set-up of your dynamic product catalog.

arrow downCreate product administration pages

Now it is finally time to create your catalog pages. We'll begin with the Product Administration pages. These administrative pages will allow you to add new products to your database and manage existing products.

Important! Occasionally a Dreamweaver window pops up with this message, "This file has been modified outside of Dreamweaver. Do you want to reload it?" This happens when Dreamweaver lags behind your last action for a second or two. You should know this is harmless and of no concern. Always respond by clicking the No button.
  • Go to WebAssist > Database > DataAssist Pages in the menu bar.

  • In the interface that opens, select your connection that you previously set up. Example: conn_eCommerce.

  • Select Product Administration from the Application Type list.

  • Check Create the database table for me if it isn't already checked. This will create the needed table within the database that you connected to above.

  • Take note of the database table name that is created for the administration pages.


  • Click Finish to make the pages.

  • Close all pages in Dreamweaver that were opened by the interface.

arrow downCreate product catalog pages

Next, you will create the Product Catalog pages that will be seen by the public.

In the next eCommerce tutorial, you will learn how to set up a shopping cart which you can link to these pages using eCart.

  1. Go to WebAssist > Database > DataAssist Pages in the Dreamweaver menu bar.

  2. In the interface that opens, select your connection that you previously set up. Example: conn_eCommerce.

  3. Select Product Catalog from the Application Type list.

  4. Uncheck Create the database table for me to make the product catalog pages use the same database as the product administration pages. This will link all products correctly.


  5. Go to the Manage Pages tab where you can select which pages are created and their specific options.

  6. Select the Results page.

  7. Click the second pencil icon labeled Make changes to: products_results.php.


  8. For Layout Type, select Public.

  9. Uncheck Include delete button in results list.

  10. Click OK.


    Why should you uncheck the delete button? This is an error in the existing preset that potentially allows your customers to permanently remove the record from your database. Obviously, this is a function that should not be on a public page! When you are finished with this section, save the preset. Then the next time you use the product catalog preset, it won't attempt to create a delete button.

  11. Select the Detail page so you can uncheck its delete button for the same reason.

  12. Click the second pencil icon labeled Make changes to: products_detail.php.


  13. As you did before, uncheck Include delete button in detail list and click OK.


  14. Now select the Search page. Click the first pencil icon labeled Set up field labels and form validations under Configure Field Settings.


  15. This allows you to update labels, fields, and form validations.


  16. Repeat for Results page.


  17. Repeat once again for the Detail page.


  18. You may wish to add additional fields to your search page especially if you are using your own product database.
    The product search page created by the DataAssist wizard is configured to search three fields, ProductName, ProductMetaKeywords, and Product Price. These fields may be sufficient if your ProductMetaKeywords are populated properly. If so, feel free to skip straight down to the Finish and Save as preset steps.

  19. In the Manage Pages tab, select the Search page once again and click on the second pencil icon labeled Make changes to: products_search.php.


  20. From there, click the plus button to open the Add Selected To List interface.


  21. Now make your selections, for example, ProductSKU or ProductShortDesc to add these fields to your search form.


  22. Now you can adjust the search Criterion. For example, you could change ProductSKU to = instead of Includes. This way if your customer already knows the SKU of the product they're interested in, they can search for it directly in the product catalog.



  23. After you are done with your customizations, click OK.

  24. Click Finish.


  25. To store these settings as a preset, check the box and name your preset. In this example, I named it ecommerce.


  26. Close all pages in Dreamweaver that were opened by the interface.

arrow downCreate order pages

Lastly, you will create Order pages so you can manage your customers' orders.

In the next eCommerce tutorial, you will learn how use eCart to set up your shopping cart. Additionally, eCart will sync with your database table and automatically log new orders.
  1. Go to WebAssist > Database > DataAssist Pages in the Dreamweaver menu bar.

  2. In the interface that opens, select your connection that you previously set up. Example: conn_eCommerce.

  3. Select Orders from the Application Type list.

  4. Check Create the database table for me if it isn't already checked.


  5. Click Finish to make the pages.


Congratulations! You've finished creating your administrative pages, product catalog pages, and order pages for a product catalog.

arrow downWhat's your next step?

Peruse the following section for an overview of the WebAssist eCommerce series to determine your next step in the process of setting up your site. For further help, check our Community Forums or post comments to any of the tutorials.

arrow downWebAssist eCommerce series

With eCart technology as the cornerstone of the WebAssist eCommerce series, these in-depth tutorials will walk you through the steps of building an eCommerce site: product catalogs, shopping carts, product options (both static and dynamic), and checkout including payments. Completing the eCart portion of the series is help for setting up a back-end administration to manage your eCommerce business. Additionally, to be used with or without eCart, you will learn about payment gateway providers, hosting solutions, and online shipping accounts.

  1. Introduction to the eCommerce series: An overview of the WebAssist eCommerce series including a detailed description of each tutorial.

  2. Create a product catalog: Learn to create a dynamic product catalog for an online store.

    1. In Create a product catalog I, you will learn if a dynamic product catalog is appropriate for your online store and how to complete the initial set-up.
    2. In Create a product catalog II, you will learn how to create product administration pages, product catalog pages, and order pages for your dynamic product catalog.


  3. Add a shopping cart: Learn about using eCart to create a responsive shopping cart for selling your products online.

    1. Create an eCart object to define the structure of your shopping cart.
    2. Place an Add to Cart button on a product catalog which your customers can use to select items to purchase and add them to their shopping cart.
    3. Design a responsive shopping cart page that holds informational details about the products a customer is purchasing.


  4. Add dynamic product options I: Learn how to add dynamic product options to your website's online store using eCart's shopping cart functionality.

  5. Add dynamic product options II: Learn how to add dynamic product options, which include options within themselves (for example, incremental pricing), to your website's online store using eCart's shopping cart functionality.

  6. Add static product options: Learn how to add static product options to your online catalog store.

  7. Add checkout and administration: Learn how to manage checkout, payments, and the back-end administration of your eCommerce site using the seven tabs in the eCart Checkout Wizard - Settings, Payments, Shipping, Tax, Orders, Email, and Form Design.

    1. In the Settings tab, you will choose the general settings for your site and checkout pages.
    2. In the Payments tab, you will set up payment provider and checkout options.
    3. In the Shipping tab, you will choose shipping providers and set charges.
    4. In the Tax tab, you will set the rules for sales tax or VAT.
    5. In the Orders tab, you will configure your order storage options.
    6. In the Email tab, you will enter your email server settings.
    7. In the Form Design tab, you will select your checkout form from preset designs.


  8. Online payment solutions: Learn about online payment solutions including seamless checkout, remote checkout, and various PayPal checkout options.

  9. Hosting provider solutions: Learn about and choose between five hosting providers, 1&1, GoDaddy, HostGator, Network Solutions, and DreamHost.

  10. Online shipping solutions: Learn where and how to set up free shipping accounts with FedEx, UPS, USPS, and Australia Post.

arrow downReviews and comments

Comments will be sent to the author of this tutorial and may not be answered immediately. For general help from WebAssist, please visit technical support.

Sign in to add comments
rating

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.