plugin:onlineordering
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:onlineordering [2011-09-29 14:58] – jdt | plugin:onlineordering [2019-01-13 16:06] (current) – Added bugtracker LarsDW223 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : info@drost-tenfelde.de | email : info@drost-tenfelde.de | ||
type : Syntax | type : Syntax | ||
lastupdate : 2011-09-29 | lastupdate : 2011-09-29 | ||
- | compatible : 2011-05-25 | + | compatible : 2011-05-25,2011-11-10 |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : ordering, shop, forms | tags : ordering, shop, forms | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : | + | bugtracker : https:// |
- | sourcerepo : | + | sourcerepo : https:// |
- | donationurl: | + | donationurl: |
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
Line 25: | Line 27: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
===== How it works ===== | ===== How it works ===== | ||
Line 39: | Line 41: | ||
When all fields are valid, the user will be presented a summary of all the data he/she has entered. In addition, the price for the ordered tickets is calculated. | When all fields are valid, the user will be presented a summary of all the data he/she has entered. In addition, the price for the ordered tickets is calculated. | ||
- | Total price = (nr of tickets * ticket price) + porto | + | |
- | Where porto may differ for different countries. This can be setup using the [[#Syntax]] parameters. | + | Where '' |
==== Sending Order Form ==== | ==== Sending Order Form ==== | ||
Line 61: | Line 63: | ||
</ | </ | ||
- | View the [[http:// | + | ==== Demonstration ==== |
+ | |||
+ | View the [[http:// | ||
===== Syntax ===== | ===== Syntax ===== | ||
- | '' | + | |
- | ^ ''// | + | ^ key | the parameter key to set | required | |
- | ^ ''// | + | ^ value | the parameter value to set | required | |
You can set more than one element at once by using an ''&'' | You can set more than one element at once by using an ''&'' | ||
- | Available parameters: | + | ==== Available parameters |
- | ^ Key ^ Type ^ Comments | + | ^ Key |
- | | item_name | string | Name of the item | **required** | | + | | '' |
- | | abbreviation | string | The abbreviation will be used for generation of a unique order key, by which the exact order can be identified | **required** | | + | | '' |
- | | currency | string | Currency of the item price | **required** | | + | | '' |
- | | porto_default | number | Default porto cost | optional | | + | | '' |
- | | porto_< | + | | '' |
- | | sender_name | String | Name of the service that sends the e-mail. If this parameteris not set, the value of the configuration parameter sender_name will be used. | optional | | + | | '' |
- | | sender_email | email | E-mail address of the service that sends the e-mail. If this parameter is not set, the value of the configuration parameter sender_email will be used. | optional | | + | | '' |
- | | email_cc | string | E-mail addresses, seperated by commas, to which a copy of the sent e-mail is sent. If the parameter is not set, the value of the configuration parameter email_cc will be used. | optional | | + | | '' |
- | | countries | string | List of countries, seperated by commas. If this parameter is not set, the configuration parameter countries will be used. | optional | | + | | '' |
===== Configuration and Settings ===== | ===== Configuration and Settings ===== | ||
- | ^ Key ^ Type ^ Comments | + | ^ Key |
- | | sender_name | string | Name that will be used for sending out orders via email. | optional | | + | | '' |
- | | sender email | email | E-mail address that will be used for sending out orders | + | | '' |
- | | email_cc | email | E-mail addresses (comma seperated) to which a blind copy of the order will be sent via e-mail. | + | | '' |
- | | bank_account | textarea | The bank details where the user can make payments for the ordered items | **required** | | + | | '' |
- | | countries | string | Comma seperated list of countries. Example: Germany,The Netherlands, | + | | '' |
- | | signature | textarea | Signature that will be appended to the email. | optional | | + | | '' |
==== Style.css ==== | ==== Style.css ==== | ||
Line 99: | Line 103: | ||
The stylesheet allows you to change the look and feel of error codes that are displayed to the user. | The stylesheet allows you to change the look and feel of error codes that are displayed to the user. | ||
- | < | + | < |
# | # | ||
padding: 5px; | padding: 5px; | ||
Line 119: | Line 123: | ||
</ | </ | ||
- | Where | + | Where '' |
- | < | + | |
- | is the div for the complete error message. | + | |
- | + | ||
- | and | + | |
- | < | + | |
- | allows you to manipulate the look and feel of the error parameter. | + | |
===== E-mail templates ===== | ===== E-mail templates ===== | ||
Line 132: | Line 130: | ||
In the template file, a complete e-mail can be prepared for the user, using several special fields that will be automatically filled in by the plugin. | In the template file, a complete e-mail can be prepared for the user, using several special fields that will be automatically filled in by the plugin. | ||
+ | |||
+ | < | ||
+ | Dear {title} {firstname} {lastname},< | ||
+ | <br /> | ||
+ | thank you for ordering {item_name} at {datetime}!< | ||
+ | <br /> | ||
+ | Provided data:<br /> | ||
+ | <br /> | ||
+ | Title: {title}< | ||
+ | First name: {firstname}< | ||
+ | Last name: {lastname}< | ||
+ | Street + nr: {street}< | ||
+ | Postcode: {postcode}< | ||
+ | Place: {place}< | ||
+ | Country: {country}< | ||
+ | Remarks: {remarks}< | ||
+ | <br /> | ||
+ | Price information:< | ||
+ | --------------------------------------------------< | ||
+ | Ticket price: {price} {currency}< | ||
+ | Number of tickets: {nr_tickets}< | ||
+ | Porto: {porto} {currency}< | ||
+ | --------------------------------------------------< | ||
+ | Total price: {total_price} {currency}< | ||
+ | --------------------------------------------------< | ||
+ | <br /> | ||
+ | Please transfer {total_price} {currency} to the following bank account:< | ||
+ | <br /> | ||
+ | {bank_account}< | ||
+ | <br /> | ||
+ | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!< | ||
+ | Please do not forget to include the | ||
+ | following transaction comment <br /> | ||
+ | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!< | ||
+ | Ticket Number: {ticket}< | ||
+ | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!< | ||
+ | <br /> | ||
+ | Your order will be sent as soon as the transaction has been successfully completed.< | ||
+ | <br /> | ||
+ | {signature}< | ||
+ | </ | ||
==== Template fields ==== | ==== Template fields ==== | ||
- | ^ Tag ^ Comments | + | ^ Tag |
- | | %%{title}%% | Mr. or Ms. | | + | | '' |
- | | %%{firstname}%% | The user's first name | | + | | '' |
- | | %%{lastname}%% | The user's last name | | + | | '' |
- | | %%{street}%% | The user's street | + | | '' |
- | | %%{place}%% | The user's village or city | | + | | '' |
- | | %%{country}%% | The user's country | | + | | '' |
- | | %%{nr_tickets}%% | The number of tickets the user ordered | | + | | '' |
- | | %%{item_name}%% | The item name | | + | | '' |
- | | %%{currency}%% | The currency | | + | | '' |
- | | %%{price}%% | The price per ticket | | + | | '' |
- | | %%{porto}%% | The porto | | + | | '' |
- | | %%{date}%% | The date the item was ordered | | + | | '' |
- | | %%{time}%% | The time the item was orderd | | + | | '' |
- | | %%{datetime}%% | The date and time the item was ordered | | + | | '' |
- | | %%{ticket}%% | The automatically generated ticket identifier. This identifier consists of the provided abbreviation (see Syntax) along with a 5 digit random number. | | + | | '' |
- | | %%{total_price}%% | The calculated total price. Formula: ( nr of tickets * ticket price ) + porto | | + | | '' |
===== Files ===== | ===== Files ===== | ||
Line 157: | Line 196: | ||
Here is a list of the files currently used in the plugin. | Here is a list of the files currently used in the plugin. | ||
- | ^ Source Code ^ | + | ^ Source Code |
- | | syntax.php | Contains the main plugin code | | + | | '' |
- | | order_form.php | Contains the code for displaying the order form | | + | | '' |
- | | confirm_form.php | Contains the code for displaying the confirmation form | | + | | '' |
- | | send_form.php | Contains the code for sending the order e-mails | | + | | '' |
- | ^ Customizable | + | ^ Customizable |
- | | template_en.txt | Default (english) language email template, which will be sent to the user after confirming the order | | + | | '' |
- | | template_< | + | | '' |
- | | style.css | Stylesheet for plugin specific layouts | | + | | '' |
- | | images/ | Images for Stylesheet | | + | | '' |
- | ^ Support | + | ^ Support |
- | | plugin.info.txt | Plugin information | | + | | '' |
- | ^ Configuration | + | ^ Configuration |
- | | conf/ | + | | '' |
- | | conf/ | + | | '' |
- | ^ Language | + | ^ Language |
- | | lang/ | + | | '' |
===== Development ===== | ===== Development ===== | ||
Line 180: | Line 218: | ||
=== Change Log === | === Change Log === | ||
- | * **2011-09-29 | + | * **2011-09-29** |
* Initial release | * Initial release | ||
Line 190: | Line 228: | ||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
+ | Where and how is the data saved? | ||
+ | |||
+ | Thanks |
plugin/onlineordering.1317301116.txt.gz · Last modified: 2011-09-29 14:58 by jdt