Closed (fixed)
Project:
Ubercart Affiliate v2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2012 at 18:21 UTC
Updated:
14 Jul 2012 at 02:11 UTC
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 commentedThanks for pointing out, problem fixed.