Categories offer a way to give products additional behaviors that cannot be accomplished by product options alone. While it's probably best to take a look at the category settings in your admin, we'll briefly discuss the functionality that categories offer.
weight
product option, but if you have a category for “Shirts” you could set the default weight to 0.5, while you have another category for “Paperweights” with a default weight of 3. That way you wouldn't have to explicitly set the weight on every product's add-to-cart link or form. The default for new stores is lbs. but this can be changed to kgs. in the category.Using product categories is fairly straightforward if you already understand how FoxyCart's products function. Simply:
category
option. So, something like this:<a href="https://YOURDOMAIN.foxycart.com/cart?name=A great product&price=5&category=YOUR_CATEGORY_CODE"> Buy this Great Product! </a> <form action="https://YOURDOMAIN.foxycart.com/cart" method="post"> <input type="hidden" name="name" value="A great product" /> <input type="hidden" name="price" value="5.00" /> <input type="hidden" name="category" value="YOUR_CATEGORY_CODE" /> <select name="size"> <option value="small">Small</option> <option value="medium">Medium</option> <option value="large">Large</option> </select> <input type="submit" value="Buy It Now!" /> </form>
You'll notice that the category
product parameter is optional. If you don't specify a category, the DEFAULT
category will be used.
It may not be immediately evident, but if you use the select box at the top of your Category page (in the “Select a Category” fieldset) in your store's admin you'll see an option to add a new category. Doing so will actually make a copy of the category you're currently editing. Prior to seeing the option to add a new category in the “Select a Category” fieldset, you'll have to create the Default category by assigning a Product Delivery Option and clicking on the Create Category: DEFAULT button at the bottom of the page.