Voucher System 

Setup only.

The voucher codes must be stored in a database table. Normally the fe_users table will be used. A voucher will be used as the FE user name of the person who has invited another one to the shop. The customer who has invited his friend will get a price reduction at his next shopping. If another table is set here then this will work only together with the voucher extension and the voucher code can be anything hard to guess to obtain a price reduction.

table

table
Type
string

Name of the table where the voucher codes are stored. It must have a column fe_users_uid with the uid of the FE user. If this is empty the voucher code will be stored in the fe_users table in the column tt_products_vouchercode.

Example:

define voucher table
plugin.tt_products.voucher {
   table = my_voucher_table
}
Copied!

amount

amount
Type
double

Price reduction for the voucher if the fe_users table is used.

price

price
Type
double

Price for a voucher when used as a refund for the invitation of a friend