The template approach in this module doesn't give much control over the output. Quite a lot of sites use imagecache to control image sizing, and adding that option to this module was pretty easy. The attached patch lets affiliates choose a preset to use when exporting HTML.

CommentFileSizeAuthor
#2 patch.diff3.04 KBBrian294
uc_affiliate2_imagecache.patch1.92 KBsteve.m
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nohup’s picture

Status: Needs review » Needs work

Please generate the patch using git or diff -Nru

Brian294’s picture

Status: Needs work » Needs review
FileSize
3.04 KB

Here is a git patch. I made one minor change to the functionality to suite my tastes. I didn't like the fact that the image cache preset could be selected by the user. Our image cache presets can change from time to time and it's not fair to the affiliate to have image sizes change without notice. So, I put the configuration for the image cache under the admin settings to ensure our products are displayed consistently among all affiliates.

Peace,
Brian