• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Paypal multiple products 'required' not working

Paypal multiple products 'required' not working 14 years 5 months ago #9149

Hi all,

Setting Required to yes on the multiple products paypal component didn't work correctly when you were using the 'select' item -- it would always validate the form and redirect to PayPal even if a product was not selected from the dropdown.

Here's the fix

in /plugins/system/rsfppaypal.php line 164 replace:
$option_shown_value = $option_shown_trimmed;

with:
$option_shown_value = count($buf) == 1 ? '' : $option_shown_trimmed; // chrism, now validation of required works 2009-12-07

Enjoy...

Chris .\\
The administrator has disabled public write access.

Paypal Multiple Products Checkbox Layout Fix 14 years 5 months ago #9155

  • patrick.jackson2
  • patrick.jackson2's Avatar
  • OFFLINE
  • Fresh Boarder
  • KPS - Joomla Consultant Melbourne Australia
  • Posts: 12
  • Thank you received: 6
Thanks for that tip on turning the required field back on. Hopefully it will be updated in the next version of the plugin, as well as the following issue.


Checkboxes not displaying neatly in Paypal Plugin Multiple Products

When the checkbox option is selected for showing multiple paypal products, the plugin does not display the checkboxes neatly, showing them just one after another.

To fix it at the moment, you need to edit the plugin file to change the output for the checkboxes.


In /plugins/system/rsfppaypal.php line 209:
$args['out'] .= '<input '.($option_checked ? 'checked="checked"' : '').' name="form['.$args['data']['NAME'].'][]" type="checkbox" value="'.$option_shown_value.'" id="paypal-'.$args['componentId'].'-'.$i.'" '.$args['data']['ADDITIONALATTRIBUTES'].' onchange="getPrice_'.$args['formId'].'();" /><label for="paypal-'.$args['componentId'].'-'.$i.'">'.$option_shown_trimmed.'</label>';

At the end of the line change
.'</label>';

To
.'</label><br>';

This will then insert a line break after each of the checkboxes, and displays each new check box on a new line.

At times people may not want to display the options in a vertical list, in which case this will not be suitable.

For the fix to this in the next version of the plugin, if the setup can be similar to the Checkbox Group option in the general forms options, then users could put in <BR> at the end of the option line when adding the paypal field, which would enable the value to be added when required, instead of for every instance.
The administrator has disabled public write access.

Re:Paypal Multiple Products Checkbox Layout Fix 13 years 9 months ago #11119

  • agaze10
  • agaze10's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Thanks for this. This corrects the layout in the form but there is an issue with the layout in the user emails. Is it possible to get the same formatting (vertical list) in the user emails?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!