( Latest versions: 2.9.3 Stable, compatible with Joomla 3.9.0+   &   0.9.3 Stable, compatible with WordPress 4+ )

not needed customer information and paypal plugin

More
5 years 11 months ago - 5 years 9 months ago #4131 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.
Last edit: 5 years 9 months ago by erincerinc. Reason: SEO

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #4132 by vietvh
Hi,

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();
		}

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.

Could you elaborate more? I've tested and was redirected to Paypal properly.

Regards,
The following user(s) said Thank You: erincerinc

Please Log in or Create an account to join the conversation.

More
5 years 11 months 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!

Please Log in or Create an account to join the conversation.

More
5 years 11 months ago #4134 by vietvh
Hi,

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
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?