Checkout Process Wrongly Allowed to Complete

  • Posts: 109
  • Thank you received: 5
10 years 6 months ago #178438

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hello, there.

Good evening!

Hikashop allows the checkout process to move on to the following checkout step (and eventually complete the checkout process) without mandatory fields being filled in.

Please see attached images (which was produced on the Hikashop demo site).

Note - I have raised the same topic incorrectly under the "Install & Update" category (see www.hikashop.com/forum/install-update/87...wed-to-complete.html ). Please close that one.

Thanks.

Take care!

Attachments:

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 6 months ago #178504

Hi,

Add the code:

if($result===false){
			return false;
		}
after the code:
$addressClass = hikashop_get('class.address');
		$result = $addressClass->frontSaveForm();
in components/com_hikashop/controllers/checkout.php
and add the code:
}else{
					return false;
after the code:
$r = new stdClass();
					$r->id = $result;
					$r->previous_id = $id;
					$ret[$currentTask] = $r;
in the two places of the file administrator/components/com_hikashop/classes/address.php and that should hopefully avoid the issue.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum