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

nohup’s picture

Status: Active » Fixed

Thanks for pointing out, problem fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.