that's what i've noticed (and probabily the reason because the "image path" works only on Product->Data image and NOT in Product->Image (tab-image)
1)inside Image_Filenamev1.0.3.xml (already modify [search&replace] as instructions written above)
Code: Select all
<file name="admin/view/template/catalog/product_form.tpl">
<operation>
<search position="before"><![CDATA[function image_upload(field, thumb) {]]></search>
<add><![CDATA[ ..........
2)inside admin/view/template/catalog/product_form.tpl
2a)inside TAG <div id="tab-data">
and this works
Code: Select all
<a onclick="image_upload('image', 'thumb');"><?php echo $text_browse; ?></a> | <a onclick="$('#thumb').attr('src', '<?php echo $no_image; ?>'); $('#image').attr('value', '');"><?php echo $text_clear; ?></a>
2b)inside <div id="tab-image">
and this does NOT work
Code: Select all
<a onclick="image_upload('image<?php echo $image_row; ?>', 'thumb<?php echo $image_row; ?>');"><?php echo $text_browse; ?></a> | <a onclick="$('#thumb<?php echo $image_row; ?>').attr('src', '<?php echo $no_image; ?>'); $('#image<?php echo $image_row; ?>').attr('value', '');"><?php echo $text_clear; ?></a>
Seems like at point (1) Image_Filenamev1.0.3.xml doesn't "catch" by searching
function image_upload(field, thumb)
on the (2) point..
So how shoud i modify the .xml to do its job also inside the "tab-image"?
eg: something like <![CDATA[function image_upload(field *> with reg expr?
Hope you can give me an answer with this more detailed reply..