That wouldn't work either. I have been working on this problem for several days now and most of today. My mind is fogging over.
That wouldn't work either. I have been working on this problem for several days now and most of today. My mind is fogging over.
Where do you set:
DISPLAY_RETURNS_ON_CHECKOUT
DISPLAY_CCBILLING_ON_CHECKOUT
to be true?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
If I was to have to guess...I would think probably somewhere on the admin side. Simular to having to set admin-config-regulations-Confirm Terms and Conditions During Checkout Procedure. But I haven't figured out how to add the new regulations...yet.
I have asked a simular question before when I asked about trying to make sure the individual is at least 18.
Old code for Age Reqirement in create_account.php
if (ACCOUNT_DOB == 'true') {
if (ENTRY_DOB_MIN_LENGTH > 0 or !empty($_POST['dob'])) {
if (substr_count($dob,'/') > 2 || checkdate((int)substr(zen_date_raw($dob), 4, 2), (int)substr(zen_date_raw($dob), 6, 2), (int)substr(zen_date_raw($dob), 0, 4)) == false) {
$error = true;
$messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
}
}
}
New code
if (ACCOUNT_DOB == 'true') {
if (ENTRY_DOB_MIN_LENGTH > 0 or !empty($_POST['dob'])) {
if (substr_count($dob,'/') > 2 || checkdate((int)substr(zen_date_raw($dob), 4, 2), (int)substr(zen_date_raw($dob), 6, 2), (int)substr(zen_date_raw($dob), 0, 4)) == false) {
$error = true;
$messageStack->add('create_account',
ENTRY_DATE_OF_BIRTH_ERROR);
}
$minimum_age = 18;
$acceptable_dob = (date('Y') - $minimum_age) . date('md');
if (zen_date_raw($dob) > $acceptable_dob) {
$error = true;
$messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_UNDERAGE);
}
}
}
Is this simular to what I would need to do with
if (DISPLAY_RETURNS_ON_CHECKOUT == 'true') {
if (!isset($_POST['returns']) || ($_POST['returns'] != '1')) {
$messageStack->add_session('checkout_payment', ERROR_RETURNS_NOT_ACCEPTED, 'error');
}
}
and
if (DISPLAY_CCBILLING_ON_CHECKOUT =='true') {
if (!isset($_POST['ccbilling']) || ($_POST['ccbilling'] != '1')) {
$messageStack->add_session('checkout_payment', ERROR_CCBILLING_NOT_ACCEPTED, 'error');
}
}
Last edited by A-1 Electronics; 22 Jul 2007 at 04:00 PM.
I know I am confusing myself. I have found other threds that refer to jscript files and a few others. But nothing that seems to be helping. The checkboxes are in place and worded correctly. As I have stated before, this is a requirement from my merchant processor before they will approve my account. Even a little clue as to where I need to validate the checkbox would be great. I tried looking for where the box for _CONDITIONS_ is confirmed by doing a search in the developers tool kit. That didn't turn up anything. I'll try some more searches.![]()
I am thinking it has to be in a jscript file somewhere.
Add this:
define('DISPLAY_CONDITIONS_ON_CHECKOUT', 'true');
Right above where you have:
Does it start to work?PHP Code:if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
if (!isset($_POST['conditions']) || ($_POST['conditions'] != '1')) {
$messageStack->add_session('checkout_payment', ERROR_CONDITIONS_NOT_ACCEPTED, 'error');
}
}
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Nope. That didn't work. I am still getting the same results. I can select the box for confirming the terms and conditions and not the other two boxes. And it will still allow me to continue. If I do not select the terms box I receive the error.
P.S.
Thank you for all your help. Please excuse my frustrations. I am truely tring to understand.
I have moded 3 files in order to get this far. The one thing I haven't been able to figure out or locate in any file is how zc checks that the customer has placed a checkmark in the box argeeing to the terms. In the admin - config - regs there is a way to turn this on and off. How indepth would it be add additional regulations to the admin panel?