Skip to content

Installation seeding

dirkkelly edited this page Oct 23, 2010 · 2 revisions

Seed Data

rake radiant:extensions:shop:seed

What We Build

Pages

If there is no home page we will build a home page, this will be used as the default parent for all categories

Products and Categories

One of each, named Category and Product, along with the pages that control their location on the website

Forms

Cart Add Product

Will be displayed on the product listing and is used to add a product to the shopping cart

Cart Update Item

Available to be used where you like this form will update an item that exists in the cart

CartAddress

Attach a billing address to the current shopping cart (can be extended to support a Shipping address also)

Cart Payment

Pay for the current cart using the Bogus Gateway. The credit card number and type fields are overwritten with hidden fields.

Layouts

Product

Will output a product's details along with an option to add this to the shopping cart

Products

Will output all the products for a category and a link to their information page

Why So Simple?

The seed data for shop will never look pretty and will never be 'good enough' to use.

I want you to build a unique experience for every website, using that provided to make something awesome.

You are more than welcome to write a custom extension which your own seed information. Check out /db/seed.rb and /db/seeds/ for how RadiantShop does this