Loading...
 

History: Shopping_Cart

Preview of version: 84

Info

Third attempt at a cart payment system - for Tiki 11+ (>= 2013)

Notes:
  1. This profile now uses several "example" Smarty templates which are in the Tiki code base since Tiki 11
  2. 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.

Related pages:


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 wikiplugin_customsearch: y wikiplugin_paypal: 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 ] init_files: - http://upload.wikimedia.org/wikipedia/commons/5/5e/Duff_beer.jpg - http://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Bread_of_Galicia_%28Spain%29_001.jpg/800px-Bread_of_Galicia_%28Spain%29_001.jpg - http://upload.wikimedia.org/wikipedia/en/9/95/Wisecrowds.jpg


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 - type: category ref: category_books data: name: Books 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: product_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: product_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: product_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: product_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$€$,,2 flags: [ public, list, mandatory ] order: 40 - type: tracker_field ref: product_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: product_images 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: product_stock data: name: In Stock tracker: $tracker_products type: numeric order: 70 description: Number of this product in stock flags: [public]


1.1. Sample Products


YAML
objects: - type: tracker_item ref: product_001 data: tracker: $TikiKart:tracker_products status: open values: - [ $TikiKart:product_title, Beer ] - [ $TikiKart:product_description, "Home made beer. Mmmmm, delicious!" ] - [ $TikiKart:product_category, $profileobject:category_products$ ] - [ $TikiKart:product_price, 2 ] - [ $TikiKart:product_weight, 300 ] - [ $TikiKart:product_images, ] - [ $TikiKart:product_stock, 100 ] - type: tracker_item ref: product_002 data: tracker: $TikiKart:tracker_products status: open values: - [ $TikiKart:product_title, Wise Book ] - [ $TikiKart:product_description, "The Wisdom of Crowds. James Surowiecki. 2004" ] - [ $TikiKart:product_category, $profileobject:category_products$ ] - [ $TikiKart:product_price, 5 ] - [ $TikiKart:product_weight, 200 ] - [ $TikiKart:product_images, ] - [ $TikiKart:product_stock, 10 ] - type: tracker_item ref: product_003 data: tracker: $TikiKart:tracker_products status: closed values: - [ $TikiKart:product_title, Bread ] - [ $TikiKart:product_description, "Home made bread. With seeds. Mmmmm, Gorgeous!" ] - [ $TikiKart:product_category, $profileobject:category_products$ ] - [ $TikiKart:product_price, 1 ] - [ $TikiKart:product_weight, 250 ] - [ $TikiKart:product_images, ] - [ $TikiKart:product_stock, 0 ]


Pages


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 - type: wiki_page ref: page_search data: name: search content: wikicontent:TikiKart_Search - type: wiki_page ref: page_search_form data: name: search form tpl content: wikicontent:TikiKart_Search_Form_Template


Instructions page


This will include: TikiKart_instructions_page

YAML
instructions: Instructions preferences: enable: [ feature_wiki ] objects: - type: wiki_page ref: instructions_page data: name: Instructions description: What needs to be done once the configuration profile has been applied in your tiki site lang: en content: wikicontent:TikiKart_instructions_page

History

Advanced
Information Version
Thu 06 of Mar, 2014 17:16 GMT-0000 Xavier de Pedro fixed category refs 88
View
Thu 06 of Mar, 2014 17:14 GMT-0000 Xavier de Pedro changed order of items to match images 87
View
Thu 06 of Mar, 2014 16:57 GMT-0000 Xavier de Pedro replaced bread pic 86
View
Thu 06 of Mar, 2014 16:51 GMT-0000 Xavier de Pedro testing file ids for tracker field file (product images) 85
View
Thu 06 of Mar, 2014 16:48 GMT-0000 Xavier de Pedro added books 84
View
Thu 06 of Mar, 2014 16:41 GMT-0000 Xavier de Pedro added 3 images 83
View
Thu 06 of Mar, 2014 16:23 GMT-0000 Xavier de Pedro fix references to tracker 82
View
Thu 06 of Mar, 2014 16:16 GMT-0000 Xavier de Pedro fixed ref to tracker in sample data 81
View
Thu 06 of Mar, 2014 16:12 GMT-0000 Xavier de Pedro first set of demo products so that the profile loads something to play with. Feel free to improve, of course, or replace with whatever more appropriate 80
View
Thu 06 of Mar, 2014 15:52 GMT-0000 Xavier de Pedro updated minimum tiki version 79
View
Thu 06 of Mar, 2014 15:51 GMT-0000 Xavier de Pedro refactores notes and related pages listed dynamically 78
View
Thu 06 of Mar, 2014 15:46 GMT-0000 Xavier de Pedro Added an instructions page. 77
View
Sat 15 of Feb, 2014 18:29 GMT-0000 Jonny Bradley Code Plugin modified by editor. 76
View
Sat 15 of Feb, 2014 17:50 GMT-0000 Jonny Bradley Code Plugin modified by editor. 75
View
Sat 15 of Feb, 2014 17:41 GMT-0000 Jonny Bradley categories 74
View
Sat 15 of Feb, 2014 17:37 GMT-0000 Jonny Bradley remove unnecessary tracker_ prefixes 73
View
Sat 15 of Feb, 2014 17:29 GMT-0000 Jonny Bradley Code Plugin modified by editor. 72
View
Sat 15 of Feb, 2014 17:21 GMT-0000 Jonny Bradley Code Plugin modified by editor. 71
View
Fri 22 of Mar, 2013 18:58 GMT-0000 Jonny Bradley tpls now in tiki svn, so update to beta at last! 70
View
Fri 25 of Jan, 2013 12:36 GMT-0000 Jonny Bradley 2 decimals on price 69
View
Fri 25 of Jan, 2013 12:18 GMT-0000 Jonny Bradley removed "available" field (can't get advance cart & payment working this time) 68
View
Wed 23 of Jan, 2013 17:27 GMT-0000 Jonny Bradley s 67
View
Wed 23 of Jan, 2013 17:12 GMT-0000 Jonny Bradley profileobject again 66
View
Wed 23 of Jan, 2013 16:30 GMT-0000 Jonny Bradley tracker field options 65
View
Wed 23 of Jan, 2013 15:40 GMT-0000 Jonny Bradley notes & info 64
View