- Posts: 2
- Home
- Forum
- Community Forum
- Questions
- Tariffs
- development of a payment plugin for Monetico
not needed customer information and paypal plugin
- erincerinc
- Topic Author
- Offline
Less
More
11 years 2 days ago - 10 years 9 months ago #4131
by erincerinc
not needed customer information and paypal plugin was created by erincerinc
Dear Solidres Team,
We left some of the customer information out on the reservation steps. But while the customer is redirecting to paypal payment plugin. We get a warning about invalid argument supplied for foreach() in line ... I found out that this occurs because of some empty fields in the array. Can you please lead me how we can solve this problem. Because i think it causes another issue:
The other issue is, the details which the customer already submitted on the reservation step, are not automatically filled on the form of paypal. It was working perfect at the beginning.
Looking forward to hearing your suggestions on this.
We left some of the customer information out on the reservation steps. But while the customer is redirecting to paypal payment plugin. We get a warning about invalid argument supplied for foreach() in line ... I found out that this occurs because of some empty fields in the array. Can you please lead me how we can solve this problem. Because i think it causes another issue:
The other issue is, the details which the customer already submitted on the reservation step, are not automatically filled on the form of paypal. It was working perfect at the beginning.
Looking forward to hearing your suggestions on this.
Last edit: 10 years 9 months ago by erincerinc. Reason: SEO
Please Log in or Create an account to join the conversation.
- vietvh
-
- Offline
Less
More
- Posts: 1553
11 years 2 days ago #4132
by vietvh
Replied by vietvh on topic not needed customer information and paypal plugin
Hi,
I can see the php warning:
This error related to some room preferences like smoking options etc are not available in the saving data. You can try to remove the following lines:
Could you elaborate more? I've tested and was redirected to Paypal properly.
Regards,
I can see the php warning:
Warning: Invalid argument supplied for foreach() in /../../../libraries/solidres/reservation/reservation.php on line 168
This error related to some room preferences like smoking options etc are not available in the saving data. You can try to remove the following lines:
foreach ($room['preferences'] as $key => $value)
{
$query->clear();
$query->insert($this->_dbo->quoteName('#__sr_reservation_room_details'));
$query->columns(array(
$this->_dbo->quoteName('reservation_room_id'),
$this->_dbo->quoteName('key'),
$this->_dbo->quoteName('value')
));
$query->values(
(int) $recentInsertedId . ',' .
$this->_dbo->quote($key) . ',' .
$this->_dbo->quote($value)
);
$this->_dbo->setQuery($query);
$this->_dbo->execute();
}
Regards,
The following user(s) said Thank You: erincerinc
Please Log in or Create an account to join the conversation.
- erincerinc
- Topic Author
- Offline
Less
More
- Posts: 2
11 years 1 day ago #4133
by erincerinc
Replied by erincerinc on topic not needed customer information and paypal plugin
Thank you for your useful help. It works perfectly.
The second issue was something like that:
After completing customer details form and continue to paypal payment page, the input fields (like e-mail, address, etc) are automatically filled from the previous form to paypal form (when user chooses the option to with credit card if they do not have a paypal account.)
This is very useful because they do not need to fill the entire form again. It was working at the beginning, probably this happened because I changed something.
Thanks in advance!
The second issue was something like that:
After completing customer details form and continue to paypal payment page, the input fields (like e-mail, address, etc) are automatically filled from the previous form to paypal form (when user chooses the option to with credit card if they do not have a paypal account.)
This is very useful because they do not need to fill the entire form again. It was working at the beginning, probably this happened because I changed something.
Thanks in advance!
Please Log in or Create an account to join the conversation.
- vietvh
-
- Offline
Less
More
- Posts: 1553
11 years 19 hours ago #4134
by vietvh
Replied by vietvh on topic not needed customer information and paypal plugin
Hi,
I can see that, if you can create a new ticket and upload your modified code, I will check it for you.
I can see that, if you can create a new ticket and upload your modified code, I will check it for you.
Please Log in or Create an account to join the conversation.
Moderators: solidres