Loading...
 

History: Shopping_Cart

Preview of version: 99

Info

This profiles provides a Shopping Cart and the corresponding basic payment system. Tested to work with Tiki12+. The former name of this profile was "TikiKart", which has been kept internally for the naming of the objects referenced by the profile.


Products list page

Click to expand
Click to expand
Single Product Page

Click to expand
Click to expand


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 feature_fixed_width: n 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 -view_trackers_pending -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: -view_trackers_closed -payment_manual -payment_admin -admin_tracker include: [ Registered ]


Modules

YAML
objects: - type: module ref: module_cart data: position: right order: 1 name: cart groups: [ Anonymous, Registered ] params: ajax: y showCount: y showWeight: y showItemButtons: y title: Your Cart - type: module ref: module_breadcrumb data: position: right order: 2 name: breadcrumb groups: [ Anonymous ]


Files

YAML
objects: - type: file_gallery ref: product_file_gallery data: name: Product Images description: Images for the products 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/0/03/Koernerbroetchen.jpg/600px-Koernerbroetchen.jpg - http://upload.wikimedia.org/wikipedia/en/9/95/Wisecrowds.jpg - http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Cantaloupe_melons_by_jn.jpg/450px-Cantaloupe_melons_by_jn.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, status_admin_only ] 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: $Shopping_Cart:tracker_products status: open values: - [ $Shopping_Cart:product_title, Beer ] - [ $Shopping_Cart:product_description, "Home made beer. Mmmmm, delicious!" ] - [ $Shopping_Cart:product_category, $profileobject:category_drink$ ] - [ $Shopping_Cart:product_price, 2 ] - [ $Shopping_Cart:product_weight, 300 ] - [ $Shopping_Cart:product_images, 1 ] - [ $Shopping_Cart:product_stock, 100 ] - type: tracker_item ref: product_002 data: tracker: $Shopping_Cart:tracker_products status: pending values: - [ $Shopping_Cart:product_title, Bread ] - [ $Shopping_Cart:product_description, "Home made bread. With seeds. Mmmmm, Gorgeous!" ] - [ $Shopping_Cart:product_category, $profileobject:category_food$ ] - [ $Shopping_Cart:product_price, 1 ] - [ $Shopping_Cart:product_weight, 250 ] - [ $Shopping_Cart:product_images, 2 ] - [ $Shopping_Cart:product_stock, 0 ] - type: tracker_item ref: product_003 data: tracker: $Shopping_Cart:tracker_products status: open values: - [ $Shopping_Cart:product_title, Wise Book ] - [ $Shopping_Cart:product_description, "The Wisdom of Crowds. James Surowiecki. 2004" ] - [ $Shopping_Cart:product_category, $profileobject:category_books$ ] - [ $Shopping_Cart:product_price, 5 ] - [ $Shopping_Cart:product_weight, 200 ] - [ $Shopping_Cart:product_images, 3 ] - [ $Shopping_Cart:product_stock, 10 ] - type: tracker_item ref: product_004 data: tracker: $Shopping_Cart:tracker_products status: closed values: - [ $Shopping_Cart:product_title, Melon ] - [ $Shopping_Cart:product_description, "Juicy melon fresh from the garden. Seasonal product" ] - [ $Shopping_Cart:product_category, $profileobject:category_food$ ] - [ $Shopping_Cart:product_price, 3 ] - [ $Shopping_Cart:product_weight, 2000 ] - [ $Shopping_Cart:product_images, 4 ] - [ $Shopping_Cart: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_Include - 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: Shopping Cart Instructions preferences: enable: [ feature_wiki ] objects: - type: wiki_page ref: instructions_page data: name: Shopping Cart 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


Alias names for this page
TikiKart | Tiki Kart | Cart | Kart

History

Advanced
Information Version
Tue 24 of Jan, 2017 11:13 GMT-0000 Xavi (as xavidp - admin) adding a space between "-" and the permission name to have th enew yaml library in 16.x accept the syntax (it was probably invalid yaml being tolerated only by the former yaml library and not allowed) 113
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 112
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 111
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 110
View
Fri 14 of Oct, 2016 09:26 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 109
View
Fri 14 of Oct, 2016 09:17 GMT-0000 Xavi (as xavidp - admin) Mass search and replace 108
View
Wed 08 of Jun, 2016 13:09 GMT-0000 Xavier de Pedro moved note with other notes 107
View
Wed 08 of Jun, 2016 13:09 GMT-0000 Xavier de Pedro moved note with other notes 106
View
Wed 08 of Jun, 2016 13:07 GMT-0000 Xavier de Pedro added note on custom css needed in Tiki15 105
View
Thu 14 of May, 2015 09:06 GMT-0000 luciash d' being removing fixed width setting as the profile should not modify site look and feel when applied 104
View
Tue 11 of Mar, 2014 09:50 GMT-0000 Xavier de Pedro typo 103
View
Tue 11 of Mar, 2014 09:48 GMT-0000 Xavier de Pedro added 2 more aliases 102
View
Fri 07 of Mar, 2014 19:49 GMT-0000 Xavier de Pedro added a couple more screenshots (checkout) 101
View
Fri 07 of Mar, 2014 18:17 GMT-0000 Arild Berg Give the created page names less generic names, to avoid conflict when profile is applied to a running site. 100
View
Fri 07 of Mar, 2014 13:56 GMT-0000 Xavier de Pedro centered table 99
View
Fri 07 of Mar, 2014 13:55 GMT-0000 Xavier de Pedro quick and dirty images added 98
View
Fri 07 of Mar, 2014 13:42 GMT-0000 Xavier de Pedro added melons as closed item (seasonal only), and perms for anons to view pending (bread changed to pending), and managers to view closed 97
View
Fri 07 of Mar, 2014 13:23 GMT-0000 Xavier de Pedro trying nowadays with Shopping_Cart (page rename follows) 96
View
Fri 07 of Mar, 2014 13:21 GMT-0000 Xavier de Pedro see whether Shopping Cart (With a space) can be used to refer to the profile. Seems risky.... 95
View
Fri 07 of Mar, 2014 13:09 GMT-0000 Xavier de Pedro removed fixed width and added status_admin_only so that admin can see closed items in the tracker 94
View
Fri 07 of Mar, 2014 12:53 GMT-0000 Xavier de Pedro module cart added 93
View
Fri 07 of Mar, 2014 12:46 GMT-0000 Xavier de Pedro alias names added 92
View
Fri 07 of Mar, 2014 12:45 GMT-0000 Xavier de Pedro updating the info 91
View
Fri 07 of Mar, 2014 12:36 GMT-0000 Xavier de Pedro trying a new page name 90
View
Thu 06 of Mar, 2014 19:55 GMT-0000 Xavier de Pedro fixed the search include page 89
View