-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
Hi,
When the customer can choose from multiple payment methods, just clicking the icon of the method, or the bullet in front, will select the method. This can be seen in the status indicator. Pressing the completion button once, will take you to the next checkout steo.
However, some payment plugins require additional information, such as credit card details or order numbers (needCC()). In this case the behavior is different. On clicking the icon, the payment methods seems to be selected, but the status is not updated. It requires pressing the 'complete' for the selection to propagate to the status indicator. Pressing once more, takes you to the next check out stage.
I'm now developing a new payment plug-in. The data entered for the plug-in is reset on the first click, which is kind of annoying.
I did some experimentation with the contents of components/com_hikashop/views/checkout/tmpl/payment.php.
Replacing
if($this->config->get('auto_submit_methods',1) && empty($method->ask_cc) && empty($method->custom_html) && empty($checked)){
by
if($this->config->get('auto_submit_methods',1) && empty($checked)){
removes the problem, but I've no idea what I might be damaging elsewhere.