Revision: 1.1
Merchant attributes are always marked as required in StoreFront 6. This means that customers must select one of the choices before adding the item to the cart. This document has instructions for changing the source code so that merchant attributes are not required.
The following files will be modified. Please make a backup copy before you start. Rename your backup copies with the extension *.old or *.bak to avoid confusing the StoreFront compiler.
Follow these steps to implement this modification.
' required raise error |
' required raise error |
If objAttributes.SelectedItem Is Nothing Then |
If objAttributes.SelectedItem Is Nothing Then |
{e.title="Product Attribute"; |
e.required to false as shown:
{e.title="Product Attribute"; |
if(e.type == "radio") |
e.required to false as shown:
if(e.type == "radio") |
This completes the installation.
There are two ways to re-compile a StoreFront 6.x site. The first way is built in to the StoreFront client menu for FrontPage and DreamWeaver. The feature is called "Compile Components" and it is available on the StoreFront 6.0 menu.
The second way is to load the page "CompileSite.aspx" into a browser. This page is typically located in the root of the Store directory. Loading this page will compile the site and display the results in the browser window. A successful compile will result in this output:
| Compile Success Compiler Errors VBC Errors |
Any additional or different other output suggests that an error occurred and must be corrected before the changes take effect. After compiling your site, check the modified date of bin/StoreFront.dll. It should match the date and time of the compile. If StoreFront.dll was not updated, then the compile did not work.
These instructions are provided as-is without support. If you are not comfortable making changes to the source code of your store, please contact a professional developer.
Copyright © 2003 by Structured Solutions, All Rights Reserved