[TYPO3-commerce] Templated forms for checkout
robelix
roland at robelix.com
Wed Sep 26 15:28:03 CEST 2007
At the moment checkout-forms (addresses and payment) are just "sticked
together" - each single input is built from template, but not the whole
form. For example it's not possible to have zip and city inputs in one Line.
So I'm thinking about:
extending the getInputForm() function in pi3 to check for a formTemplate
(file and subpart-marker) property in $config - if it's set build the
form with template, if not do the same thing as now.
For Payment-Objects the same Form-Builder is used, the config is
provided by the object:
$paymentConfig['sourceFields.'] =
$paymentObj->getAdditonalFieldsConfig($this);
By Asking the PaymentObj for a template - like:
if (method_exists($paymentObj, 'getFormTemplate')) {
$paymentConfig['formTemplate.'] = $paymentObj->getFormTemplate($this);
}
So it should be possible to add this feature to payment objects, too -
while keeping compatibility to existing ones.
Any Comments, Other/Better/completely diffrent ideas?
More information about the TYPO3-project-commerce
mailing list