Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Need some hints for form validation within checkout review…. 
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi guys,

i need some hints how i can implement a form validation for two or more checkboxes within review view in checkout process. For german ecommerce its needed to accept terms and conditions and a so called right of withdrawal. This should be done before order is placed. I added two new checkboxes in review.phtml.

For the payment step theres a js script which creates a form object:

var payment = new Payment('co-payment-form''http://stellalena.intra.m-zentrale.de/checkout/onepage/savePayment/');

How could i realize a form check for my review step? Any hints?

cheers

Stefan

 
Magento Community Magento Community
Magento Community
Magento Community
 
bendtsen
Jr. Member
 
Total Posts:  17
Joined:  2007-09-23
 

Im looking for something similar - I need to find out where its possible to add/change validation for credit cards I have added to the config.xml file

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

i think you have to extend method validate in file /app/code/core/MAge/Payment/Model/Cc.php

cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

ok found it, theres a javascript in /skin/frontend/default/default/js/checkout.js where i can customize code for my needs

cheers

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top