Smartlab Software logo

Mals Review Cart

Mals review cart allows the user to view their shopping cart's contents.

  • We use 12345678 as the user id. Your id will be different
  • Use the correct Mals subdomain which is specified by the www. We are using ww3 as an example.
  • We use XHTML syntax instead of HTML.
  • We use all small letters since that conforms to XHTML and does not cause problems with case-sensitive operating systems such as LINUX.

Review Cart with Hyperlink

<a href="http://ww3.aitsafe.com/cf/review.cfm?userid=12345678">Review Cart</a>

Review Cart with Anchor and Image

<a href="http://ww3.aitsafe.com/cf/review.cfm?userid=12345678">
<img src="images/review-cart.gif" width="150" height="30" border="0" alt="Review Cart" /></a>

Review Cart using a Form

<form method="post" action="http://ww3.aitsafe.com/cf/review.cfm">
<input type="hidden" name="userid" value="12345678">
<input type="submit" value="Review Cart">
</form>

Review Cart with Image using a Form

<form method="post" action="http://ww3.aitsafe.com/cf/review.cfm">
<input type="hidden" name="userid" value="12345678">
<input type="image" src="images/review-cart.gif" width="150" height="30" border="0" alt="Review Cart" value="submit">
</form>

Return Links

The return link will cause "Continue Shopping" button to show up in the Mals shopping cart. When clicked, it will take the customer back to the page where they came from (or wherever you want to take them). The return link is highlighted in blue. Note there is no http in the link.

Anchor with Return Link

<a href="http://www.aitsafe.com/cf/review.cfm?userid=12345678&return=www.mysite.com/retpage.htm">Review Cart</a>

Form with Return Link

<form method="post" action="http://ww3.aitsafe.com/cf/review.cfm">
<input type="hidden" name="userid" value="12345678">
<input type="hidden" name="return" value="www.mysite.com/retpage.htm">
<input type="submit" value="Review Cart">
</form>

Image Buttons

By default the Mals shopping cart uses ordinary HTML form buttons for navigation. (see Button Styles and Behavior in cart setup). You can use your own images instead. Try to keep the size of the buttons around 150x30 pixels. It is recommended to keep the images on a secure server so no one can tamper with them.

No Programming Return

Return the viewer to the same page without having to hard-code the return page. Use this example of a form to return the viewer to the same page they left without having to use an exact return URL. This is useful for creating a number of forms on different pages. The value of elements[1] equals the line to be used, if you've placed input type="hidden" name="return" value="" on the first line below the "form name" line, then the elements value would be [0], the second line down would be [1] etc.

Form

<form name="myForm" action="http://ww3.aitsafe.com/cf/add.cfm" method="post" onsubmit="document.myForm.elements[1].value=window.location;"> 
<input type="hidden" name="userid" value="12345678">
<input type="hidden" name="return" value="">
<input type="text" name="qty" size="1">
<input type="hidden" name="product" value="Product">
<input type="hidden" name="price" value="1.40">
Pound - <strong>Product</strong> - 1.40 per pound
<input type="submit" value="Add to order">
</form>

Anchor

The example below uses a button or link to return the viewer to the same page after clicking the 'Continue Shopping' button.

<a href="http://ww3.aitsafe.com/cf/add.cfm?userid=12345678&amp;product=Myproduct&amp;price=3.99&amp;qty=1" target="_self" onclick="window.open(this.href+'&return='+window.location, this.target); return false">Return to this page</a> 

Troubleshooting Review Cart

Q: Review cart does not work.
A: Check the following:

  1. Is the userid correct?
  2. There should be NO spaces in the href parameter. The most common error is a space after the userid.
  3. Is the subdomain correct? Make sure the ww3.aitsafe.com has the correct ww3 part. When you login to Mals, check the URL for the correct ww3 part. Mine, for example, is ww10.

Q: There is no 'continue shopping' button
A: In order for the button to show up there has to be a return parameter. Check the 'return link' section above.