When the delivery step is enabled, the form is automatically filled with billing data. So customers can skip this step completely and are not required to enter additional data.
If for some reason you want to disable the server side validation for required fields in the delivery form, you have to remove the code in the file: root/components/com_instantpaypal/views/checkout/view.html.php line 104 from:
Code: |
if(strpos($r,'bill') !== FALSE || strpos($r,'user_email') !== FALSE) {
$this->class->redirect(JRoute::_('index.php?option=com_instantpaypal&view=checkout&layout=billing'), JText::_('COM_INSTANTPAYPAL_CHECKOUT_COMPLETEFIELDS'));
break;
} elseif (strpos($r, 'del') !== FALSE && $this->cart->virtual === 0 && isset($this->options->params->deliverystep) && $this->options->params->deliverystep == '1') {
$this->class->redirect(JRoute::_('index.php?option=com_instantpaypal&view=checkout&layout=delivery'), JText::_('COM_INSTANTPAYPAL_CHECKOUT_COMPLETEFIELDS'));
break;
}
|
to:
Code: |
if(strpos($r,'bill') !== FALSE || strpos($r,'user_email') !== FALSE) {
$this->class->redirect(JRoute::_('index.php?option=com_instantpaypal&view=checkout&layout=billing'), JText::_('COM_INSTANTPAYPAL_CHECKOUT_COMPLETEFIELDS'));
break;
}
|
I don't see any advantage or sense to modifying this