Good Afternoon,
Clearing up some PHP errors to make our site PHP 8 compatible and have been stuck with this one.
The error message Deprecated:
Required parameter
$show_name
follows optional parameter$grid
in
relates to the following line of code:
function wpsc_parent_category_image($show_thumbnails , $category_image , $width, $height, $grid=false, $show_name){
if(!$show_thumbnails) return;
if($category_image == WPSC_CATEGORY_URL){
if(!$show_name) return;
?>
<span class='wpsc_category_image item_no_image ' style='width:<?php echo $width; ?>px; height: <?php echo $height; ?>px;'>
<span class='link_substitute' >
<span><?php _e('N/A', 'wp-e-commerce'); ?></span>
</span>
</span>
<?php
}else{
?><img src='<?php echo $category_image; ?>' width='<?php echo $width; ?>' height='<?php echo $height; ?>' /><?php
}
}
Would anyone have any suggestions on tweaking the above code, so that it is compatible with PHP 8?
Any help would be really appreciated!
Kind Regards,
Andy