|
Updated June 4, 2009 This page features the Mad Blanks Create Single Record module in action on the left side of the page. It is collecting pizza orders that will then be featured in the Mad Blanks Display module at right. Please try it out! Create your own pizza order by filling in the requested values. Once the values are collected from you, a new record will appear at right. View screen captures of the exact settings used to create this project with Mad Blanks. This example is relatively complex because the before and after text are used along with the website user's responses to make a paragraph such as "The customer ordered a Small (10" $6) Thin ($1 extra) pizza with pineapple for toppings. The customer requested Store pick up." and at the same time a Score Script is used to calculate the price of the pizza and show a link. The Score Script adds up type B points to display the price when the order is placed. The Score Script for this Pizza Order category is displayed immediately after submitting the form and is as follows: <p>Thank you for your pizza order. Your order total is: <h2 align="center">$[:printf:%01.2f:<start>:][:total_points_b:][:printf:<end>:]</h2></p>
<p> You can view recent pizza orders <a href="index.php?option=com_madblanks&task=showmadblanks&category=22&Itemid=7">here</a>.</p>
For further descriptions of the available Score Script tags, view the online Score Script tag reference. The Archive Score Script for this category (available as of Mad Blanks version 1.1.0 released May 29, 2009) shows up with each complete record that is viewed on the front end of your Joomla! site later on. The Archive Score Script is not displayed immediately after submitting the form. For this example, the Archive Score Script is as follows: <p>Dollar amount of order:[:nbsp:]<b>$[:printf:%01.2f:<start>:][:total_points_b:][:printf:<end>:]</b></p> I have used a tool called SnagIt to capture most of the Mad Blanks component category editing page and the Create Single Record module configuration for this "Pizza Order" category. You can examine the images to see what settings I used to make the current configuration possible. View the captured screen of the Mad Blanks component category configuration.
View the captured screen of the Mad Blanks Create Single Record module configuration.
|