J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Required Delivery Fields (1 viewing) 
Go to bottom
TOPIC: Re:Required Delivery Fields
#6491
John Dagelmore
Admin
Posts: 3716
User Online Now
Re:Required Delivery Fields Karma: 79  
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
 
Logged Logged  
  The administrator has disabled public write access.
      Topics Author
    thread link
Required Delivery Fields
Terrance Bussinger
    thread link
thread linkthread link Re:Required Delivery Fields
John Dagelmore
    thread link
thread linkthread link Re:Required Delivery Fields
Terrance Bussinger
Go to top