YITH compatibility
-
Hi, I’ve been holding on to V4.1.7 for a long time due to compatibility issues with YITH add-ons plugin. Just recently I loaded 4.5.1 with the current YITH plugin (4.2.0) and front end is working fine, however back-end was crashing. I traced this to a problem in YithAddonsCmp.php, where line 63 assumes $value to be a string, but it isn’t always – and throws an error if not. Changing the line to the following fixes the error:
if(is_string($value))$value=stripslashes($value);
FYI I logged the values and found this, in case it helps:
2023-10-08 17:38:20 – Key: name, value: Optional alterations, is_string: 1
2023-10-08 17:38:20 – Key: value, value: Slimmer fit, is_string: 1
2023-10-08 17:38:20 – Key: price, value: 8, is_string:
2023-10-08 17:38:20 – Key: price_original, value: 8, is_string: 1
2023-10-08 17:38:20 – Key: price_type, value: fixed, is_string: 1
2023-10-08 17:38:20 – Key: type_id, value: 1, is_string: 1
2023-10-08 17:38:20 – Key: original_value, value: Array, is_string:
2023-10-08 17:38:20 – Key: original_index, value: 0, is_string:
2023-10-08 17:38:20 – Key: sold_individually, value: 0, is_string: 1
2023-10-08 17:38:20 – Key: calculate_quantity_sum, value: 0, is_string: 1
2023-10-08 17:38:20 – Key: add_on_type, value: checkbox, is_string: 1Hope this helps improve your product! ??
- The topic ‘YITH compatibility’ is closed to new replies.