Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

TikiKart2

Info

Second go at a cart payment system - (Winter 2011, for Tiki 9)

Improvements

  • Use filegals for images (possible in Tiki 9)
  • Will use unified search and the {list} plugin

General

YAML
preferences:
 feature_wiki: y
 feature_trackers: y
 feature_categories: y
 feature_wiki_argvariable: y
 payment_feature: y
 payment_currency: $profilerequest:Currency initials$EUR$
 wikiplugin_addtocart: y


Permissions

YAML
permissions:
 Anonymous:
  allow:
   -view
   -view_trackers
   -list_trackers
 Registered:
  description: Registered users
  allow:
   -payment_view
   -payment_request
 Admins:
  description: Site administrators
  allow:
   -payment_manual
   -payment_admin
 Customers:
  description: Users who have bought something
  allow: []
  include: [ Registered ]


Modules

YAML
objects:
 -
  type: module
  ref: module_cart
  data:
   position: left
   order: 1
   name: cart
   groups: [ Anonymous ]
 -
  type: module
  ref: module_breadcrumb
  data:
   position: left
   order: 2
   name: breadcrumb
   groups: [ Anonymous ]


Categories


YAML
objects:
 -
  type: category
  ref: category_products
  data:
   name: Products
   description: Base category for all products
 -
  type: category
  ref: category_food
  data:
   name: Food
   parent: $category_products
 -
  type: category
  ref: category_drink
  data:
   name: Drink
   parent: $category_products


Sample products database

Trackers
Notes:
  • profilerequest: price prepend character (defaults to €)

YAML
objects:
 -
  type: tracker
  ref: tracker_products
  data:
   name: Products
   description: A sample database of products
   default_status: open
   show: [ modification_date ]
 -
  type: tracker_field
  ref: tracker_products_code
  data:
   name: Product Code
   description: Unique product code id
   tracker: $tracker_products
   type: auto_increment
   options: ,,,itemId
   flags: [ public, list, mandatory ]
   order: 1
 -
  type: tracker_field
  ref: tracker_products_title
  data:
   name: Title
   description: Main display name of the product
   tracker: $tracker_products
   type: text_field
   flags: [ searchable, public, list, mandatory, link ]
   order: 10
 -
  type: tracker_field
  ref: tracker_products_description
  data:
   name: Description
   description: More info
   tracker: $tracker_products
   type: text_area
   flags: [ searchable, public, list ]
   order: 20
 -
  type: tracker_field
  ref: tracker_products_category
  data:
   name: Category
   description: Product category
   tracker: $tracker_products
   type: category
   options: $profileobject:category_products$,checkbox
   flags: [ searchable, public, mandatory, list ]
   order: 30
 -
  type: tracker_field
  ref: tracker_products_price
  data:
   name: Price
   description: The product price as a decimal value (e.g. 42.50)
   tracker: $tracker_products
   type: numeric
   options: 0,6,$profilerequest:Currency symbol$€$,
   flags: [ public, list, mandatory ]
   order: 40
 -
  type: tracker_field
  ref: tracker_products_weight
  data:
   name: Weight
   description: The weight of the product (most likely in grammes)
   tracker: $tracker_products
   type: numeric
   flags: []
   order: 50
 -
  type: tracker_field
  ref: tracker_products_image
  data:
   name: Images
   description: Main image of the product for product detail page
   tracker: $tracker_products
   type: files
   options: 1,image/*,0,1,,,1
   flags: [ public ]
   order: 60




Contributors to this page: jonnybradley1323 points  .
Page last modified on Sunday 30 of October, 2011 19:15:06 UTC by jonnybradley1323 points .