Info
Third attempt at a cart payment system - for Tiki 11 (2013)
Note: This profile now uses several "example" Smarty templates which will be committed to Tiki when functioning in time for Tiki 11)
Also: Currently this profile uses the PayPal shopping cart rather than the built in Tiki
Payment Feature as that still needs more development to be fully usable in this context.
General
YAML
preferences:
feature_wiki: y
feature_trackers: y
feature_categories: y
feature_wiki_argvariable: y
feature_page_title: n
feature_search: y
feature_search_fulltext: n
fgal_elfinder_feature: y
payment_feature: y
payment_currency: $profilerequest:Currency initials$EUR$
payment_paypal_business: $profilerequest:PayPal Business ID$unknown$
payment_user_only_his_own: y
payment_user_only_his_own_past: y
payment_paypal_environment: https://www.sandbox.paypal.com/cgi-bin/webscr
wikiplugin_addtocart: y
wikiplugin_list: y
Permissions
YAML
permissions:
Anonymous:
allow:
-view
-view_trackers
-list_trackers
Registered:
description: All registered users
allow:
-payment_view
-payment_request
Customers:
description: Group for people who have bought something
allow: []
include: [ Registered ]
Managers:
description: Store administrators
allow:
-payment_manual
-payment_admin
-admin_tracker
include: [ Registered ]
Modules
Unused (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 ]
Files
YAML
objects:
-
type: file_gallery
ref: product_file_gallery
data:
name: Product Images
owner: admin
archives: 5
flags: [ public, visible ]
column: [ icon, name, created, creator, files ]
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 char (defaults to €)
YAML
objects:
-
type: tracker
ref: tracker_products
data:
name: Products
description: A sample database of products
default_status: open
show: [ modification_date ]
admin_only_view: y
-
type: tracker_field
ref: tracker_products_title
data:
name: Title
description: Main display name of the product
tracker: $tracker_products
options: 0,60,,,0,n,n
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
options: 1,80,15,0,0,0,n,n,0
flags: [ searchable, public ]
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 (in grammes)
tracker: $tracker_products
type: numeric
flags: [ mandatory ]
order: 50
-
type: tracker_field
ref: tracker_products_image
data:
name: Images
description: Images of the product
tracker: $tracker_products
options: $profileobject:product_file_gallery$,,0,1,max=400&desc=namedesc&stylebox=block,thumb=mouseover&rel=box,1,n,$profileobject:product_file_gallery$
type: files
flags: [ public ]
order: 60
-
type: tracker_field
ref: tracker_products_stock
data:
name: In Stock
tracker: $tracker_products
type: numeric
order: 70
description: Number of this product in stock
flags: [public]
-
type: tracker_field
ref: tracker_products_available
data:
name: Available
tracker: $tracker_products
type: numeric
order: 80
description: Number of this product in stock and not in other carts
flags: [public]
Pages
Pretty Tracker Templates:
YAML
objects:
-
type: wiki_page
ref: page_product
data:
name: product
content: wikicontent:TikiKart_Product_Include
-
type: wiki_page
ref: page_productlist
data:
name: products
content: wikicontent:TikiKart_Products_Include