Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
About line 546:
if (empty($product->field_image_cache[0]['filepath'])) {
$image = 'N/A';
}
else {
$image = $GLOBALS['base_url'] . '/' . file_directory_path() . '/' . rawurlencode(basename($product->field_image_cache[0]['filepath']));
}
should be replaced with:
if (empty($product->uc_product_image['und'][0]['filename'])) {
$image = 'N/A';
} else {
$image = $GLOBALS['base_url'] . '/' . variable_get('file_public_path', conf_path() . '/files') . '/' . rawurlencode(basename($product->uc_product_image['und'][0]['filename']));
}
and at line 555, replace:
//$description = str_replace('"', "'", strip_tags($product->body));
$description = '';
with
$description = $product->body['und'][0]['safe_value'];
I don't have the time to do a patch, and you might want to use 'value' instead of 'safe_value'.
This should at least get the affiliate links working on d7.
Comments
Comment #1
nohup CreditAttribution: nohup commentedThanks for pointing out, problem fixed.