Originally Posted by
HeathenMagic
Is there a way to allow the start from and issue data to both be available for these cards? Instead of ghosting out the start date
A few prerequisites for Start-Date to even be offered:
1. The PayPal Pro module needs to be in "PayPal-UK" mode.
2. And one or more of Maestro, Switch, Solo cards must be enabled in Admin->Configuration->Credit Cards
3. And customer must choose "Maestro" or "Switch" or "Solo" from the drop-down menu on the payment page.
(Indeed, that's the ONLY reason why the card-type dropdown is even displayed. The card-type is never used for anything else, since the payment gateway autodetects the card type when processing it.)
If your customer needs another card-type name to show in that dropdown, I'd be interested in knowing what that card-type is, so we can consider updating to incorporate it.
If you've already got all those prerequisites in place and the customer isn't confused by the names of those card-types, then maybe you need to simply force Start-Date (aka Issue-Date) to display at all times. To do that, edit the paypaldp.php module file around line 275, by removing the lines highlighted here in red:
Code:
function selection() { global $order;
$this->cc_type_check =
'var value = document.checkout_payment.paypalwpp_cc_type.value;' .
'if (value == "Solo" || value == "Maestro" || value == "Switch") {' .
' document.checkout_payment.paypalwpp_cc_issue_month.disabled = false;' .
' document.checkout_payment.paypalwpp_cc_issue_year.disabled = false;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = false;' .
' if (document.checkout_payment.paypalwpp_cc_issuenumber) document.checkout_payment.paypalwpp_cc_issuenumber.disabled = false;' .
'} else {' .
' if (document.checkout_payment.paypalwpp_cc_issuenumber) document.checkout_payment.paypalwpp_cc_issuenumber.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_month) document.checkout_payment.paypalwpp_cc_issue_month.disabled = true;' .
' if (document.checkout_payment.paypalwpp_cc_issue_year) document.checkout_payment.paypalwpp_cc_issue_year.disabled = true;' .
' document.checkout_payment.paypalwpp_cc_checkcode.disabled = false;' .
'}';
Bookmarks