Loading...
 
Display a button for adding items to the shopping cart

Plugin Add to Cart

Use this wiki plugin, introduced in Tiki5, to display a button for adding one or more items to the shopping cart. The shopping cart is displayed and accessed using Module Cart. Once the order is placed in the shopping cart, the user is taken to Payment.

Parameters

Introduced in Tiki 5. Required parameters are in bold.
Preferences required: wikiplugin_addtocart, payment_feature
Parameters Accepted Values Description Default Since
description text Label for the product in the cart. 5.0
price text The price to charge for the item. 5.0
code text Unique identifier for the product. Two products with the same code will be the same and the information used will be the one of the first in. 5.0
exchangeorderamount int Should normally be set to the amount of products in the order being exchanged 1 7.0
eventcode text Unique identifier for the event that is associated to the product. 7.0
autocheckout text Automatically check out for purchase and send the user to pay (this is disabled when there is already something in the cart) n 7.0
bundleclass text The class the bundle belongs to. Can be used to limit how gift cards are used 7.0
label text Text for the submit button. default: “Add to cart” Add to cart 6.0
onbehalf text Allows the selection of user to make purchase on behalf of n 7
forwardafterfree url Forward to this URL after free purchase 7.0
href url URL of the product’s information. The URL may be relative or absolute (begin with http://). 5.0
productbundle text The bundle the product belongs to. Can be used to limit how gift cards are used, will automatically add other products in the same class to the cart 7.0
productclass text The class the product belongs to. Can be used to limit how gift cards are used 7.0
exchangetoproductid int 5.0
producttype text The product type that is being sold, which will affect fulfillment, for example, standard product, gift certificate, event ticket 7.0
forceanon text Add to cart as anonymous shopper even if logged in n 7.0
weight text The weight of the item. 12.1
ajaxaddtocart (blank)
y
n
Attempts to turn on Ajax for the cart n 7.0
giftcertificate (blank)
y
n
Allows user to add gift certificate from the product view n 7.0
hidequantity n
y
Hide the quantity field so you can create buy now button for a single item, quantity = 1 (not available with the exchange feature) n 17.0
exchangeorderitemid int Used in conjunction with exchange feature 7.0


Example

This code,
{addtocart description="Panama Hat" code="A150"  price="45.00"}


Would produce:


(screenshot)
(screenshot)

The add to cart button would typically be used along with item information like below:

Image
Panama Hat
$45.00
Image


 Note


‘’The description, inventory code and price are passed to the shopping cart when the add to cart button is clicked.’‘

Aliases

Plugin Cart | Plugin Add to Cart | Plugin AddtoCart

Attached files

ID Name Comment Uploaded Size Downloads
43 addtocart2.png Add to cart button lindon 615 b 2353
39 hat.jpg Hat lindon 1.61 Kb 13281

doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as “hubs” for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show php error messages