Jump to content

Problem with product options on update to 5.2.15


quantument
 Share

Recommended Posts

Two days ago I did the update from 5.2.14 to 5.2.15 and found that the product options were not working correctly.

 

For example instead of the options:

 

- Gift wrap: No

- Gift wrap: Yes

 

appearing, only

 

- Gift wrap: Yes

 

was available.

 

Once I realised that the problem existed I restored a backup of my store to return correct functionality, so the problem is currently not available to view.

 

My store is at www.quantumerprises.co.uk

 

I am running a custom skin, which may be the problem, but I don't know what I would need to do to resolve it.

 

For the update I did a manual overwrite of the existing files.

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

Thanks for your posting. I think there is a section on v5 which is unintentionally disabled.

 

classes/catalogue.class.php reads at about line 1302:

//if (!isset($option_list[$value['option_id']])) {
	$option_list[$value['option_id']]	= array(
		'type'			=> $value['option_type'],
		'option_id'		=> $value['option_id'],
		'option_name'	=> $value['option_name'],
		'required'		=> (bool)$value['option_required'],
	);
//}

This SHOULD be:

if (!isset($option_list[$value['option_id']])) {
	$option_list[$value['option_id']]	= array(
		'type'			=> $value['option_type'],
		'option_id'		=> $value['option_id'],
		'option_name'	=> $value['option_name'],
		'required'		=> (bool)$value['option_required'],
	);
}

This is quite a major blocker so I think we will need to push out 5.2.16 ASAP. I'm sorry for any inconvenience caused. 

 

Once fix is confirmed the changes will be made here and new release deployed.

 

https://github.com/cubecart/v5/issues/6

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...