Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Item Forms on a Catalog Page

Table of Contents

Item Forms on a Catalog Page

This tutorial will cover how to properly code forms on your catalog page. This tutorial uses the velocity template language and UltraCart variables. There are a number of different scenarios that we will cover in this tutorial:

Tip

This tutorial uses the velocity template language and UltraCart variables.

  • Single item with quantity box
  • Single item with quantity box and drop down options
  • Single item with quantity box and variations
  • Multiple items with quantity box
  • Multiple items with quantity box and drop down options

...

  1. Same code as above, but with additional fields for the options
  2. Options are passed as two parameters to checkout OptionName# and OptionValue# where # is an incrementing number. We use the $velocityCount variable to automatically assign the number during the foreach loop.
  3. Only drop down options are being displayed in this example.
  4. Options are configured using the Options tab when editing an Item. LINK?

...

This scenario is fairly complex to code. We have a separate tutorial on Modifying Item Variations on in a Catalog SiteStoreFront that you should read. This code is taken from that tutorial though to make this a complete example here.

...