I installed attribute image swap replace main image on selection on a 1.5.1 version of zencart. During the process I merged the admin->options_name_manager.php file and one or two minor changes. The module appears to work, and I was wondering about whether this would be good enough to submit as an update.

Also, (I dont know if this should be another question but) recently Robert Thomas Kirby wrote in the forum about a switch for an image swap to show an attribute image next to radio buttons . I would like to try and include this or something like it as another case in the includes/modules/your_Template/attributes.php file but i am getting stuck.

I made the "image next to radio button" case number 6 (because otherwise it wouldnt work) and have plain radio buttons as case 8. It shows up but doesn't work.

I thought that maybe changing lines 115 and 652:
PHP Code:
if($products_options_names->fields['products_options_images_style']==6) { 
to
PHP Code:
if($products_options_names->fields['products_options_images_style']==|| $products_options_names->fields['products_options_images_style']==) { 
would help, but the result is that none of the attributes and product page shows.
Any suggestions would be welcome.

I attached the attributes.php file:

Thanks!Attachment 12653attributes.php.zip