Hi,
if you don’t want to replace images URLs with IDs in Google Sheets when fetch or sync data into your WooCommerce store, try following code
1. Add following code/snippet into your current theme’s functions.php file
remove_filter('wcgs_products_syncback_value_images', 'wcgs_pro_images_value', 22, 2);
add_filter('wcgs_products_syncback_value_images', 'wcgs_pro_images_value_url', 22, 2);
function wcgs_pro_images_value_url( $images, $key) {
if (!$images ) {
return '';
}
$single_value = array_map(
function ( $image) {
$key = 'src';
return $image[$key];
}, $images
);
return implode('|', $single_value);
}