DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Main configuration¶
There is nothing much to do. After you have accomplished all the steps described above you have to set some TypoScript constants. Create a new TypoScript extension template or use an existing one. You can use the TypoScript Constants Editor. It will help you to configure the main settings. The following settings are mandatory.
Property
gpvar.puid
Data type
Text
Description
Enter the correct POST parameter name for a unique product number (integer) of your order form. wt_cart uses this number for internal purposes. It can't be a string. The PUID will never be displayed.
If you are using a database table it could be the uid of the product (e.g. tx_myext_pi1|showUid).
Default
puid
Property
gpvar.qty
Data type
Text
Description
Enter the correct POST parameter name for the quantity/amount field of your order form (e.g. tx_myext_qty).
Default
qty
Property
main.pid
Data type
Text
Description
Enter the uid of the page where wt_cart plugin resides (e.g. 10).
Property
powermailContent.uid
Data type
Int+
Description
Enter the uid of the powermail content element to hide this element if the cart is empty AND to clear cart if this form was submitted.
wt_cart can be based on a product database table but can also handle data provided as POST parameters. You have to choose between these 2 different kind of settings.
Product database¶
If your products are stored in a database table you can set the following TypoScript constants (see table below). Fields marked with * are mandatory.
Property
db.table*
Data type
Text
Description
Enter the correct table name where the products are stored (e.g. tx_myext).
Property
db.l10n_parent
Data type
Text
Description
Enter the correct column name where the localisation parent is stored (e.g. l10n_parent | l18n_parent). Some older extensions like tt_news or tt_content do not use the standard l10n_parent. There the field is called l18n_parent.
Default
l10n_parent
Property
db.title*
Data type
Text
Description
Enter the correct column name of the table where the product titles are stored (e.g. title).
Default
title
Property
db.inherit_price
Data type
Text
Description
Enter the correct column name of the table where the inherit price flag is stored (e.g. inherit_price).
Property
db.price*
Data type
Text
Description
Enter the correct column name of the table where the prices are stored (e.g. price).
Default
price
Property
db.taxclass*
Data type
Text
Description
Enter the correct column name of the table where the tax classes are stored (e.g. taxclass).
Default
taxclass
Property
db.sku
Data type
Text
Description
Enter the correct column name of the table where the SKU are stored (e.g. sku).
Property
db.variants
Data type
Text
Description
Enter the correct column name of the table where the variants are stored (e.g. variants). Please see the setup for variants below.
Property
db.service_attribute_1
Data type
Text
Description
Enter the correct column name of the table where the service attribute 1 are stored (e.g. for weight).
Property
db.service_attribute_2
Data type
Text
Description
Enter the correct column name of the table where the service attribute 2 are stored (e.g. for volume).
Property
db.service_attribute_3
Data type
Text
Description
Enter the correct column name of the table where the service attribute 3 are stored (e.g. for length).
POST parameter¶
If your products are somehow arranged and you want to send the needed product data via POST parameter you can set the following TypoScript constants (see table below). Fields marked with * are mandatory.
Property
gpvar.title
Data type
Text
Description
Enter the correct parameter name for the title field of your order form (e.g. title).
Default
title
Property
gpvar.price
Data type
Text
Description
Enter the correct parameter name for the price field of your order form (e.g. price).
Default
price
Property
gpvar.service_attribute_1
Data type
Text
Description
Enter the correct parameter name for the service attribute field 1 of your order form (e.g. weight).
Property
gpvar.service_attribute_2
Data type
Text
Description
Enter the correct parameter name for the service attribute field 2 of your order form (e.g. volume).
Property
gpvar.service_attribute_3
Data type
Text
Description
Enter the correct parameter name for the service attribute field 3 of your order form (e.g. length).
Property
gpvar.sku
Data type
Text
Description
Enter the correct parameter name for your SKU.
Property
gpvar.variants.1
Data type
Text
Description
Enter the correct parameter name for the variant 1.
Property
gpvar.variants.2
Data type
Text
Description
Enter the correct parameter name for the variant 2.
Property
gpvar.variants.3
Data type
Text
Description
Enter the correct parameter name for the variant 3.