Hi,
In the file "components/com_hikamarket/views/productmarket/tmpl/form_file.php", please replace :
?>
<script type="text/javascript">
window.productMgr.addFile = function(el, pid, type) {
By
if(empty($this->editing_variant))
echo $this->popup->display('','MARKET_FILE','','hikamarket_product_file_edit',750, 460,'', '', 'link');
else
echo $this->popup->display('','MARKET_FILE','','hikamarket_product_variant_file_edit',750, 460,'', '', 'link');
?>
<script type="text/javascript">
window.productMgr.addFile = function(el, pid, type) {
Then:
var o = window.Oby, d = document, c = d.getElementById('hikamarket_'+type+'_files');
if(data.cid) {
var url = "<?php echo hikamarket::completeLink('product&task=file_entry&pid=HIKAPID&cid=HIKACID',true); ?>";
o.xRequest(
url.replaec('HIKAPID',pid).replace('HIKACID',data.cid),
By
var o = window.Oby, d = document, c = d.getElementById('hikamarket_'+type+'_file_content');
if(data.cid) {
var url = "<?php echo hikamarket::completeLink('product&task=file_entry&pid=HIKAPID&cid=HIKACID',true); ?>";
o.xRequest(
url.replace('HIKAPID',pid).replace('HIKACID',data.cid),
And also:
if(type === undefined || type == '') type = 'product';
t.submitFct = function(data) {
By
if(type === undefined || type == '') type = 'product';
if(type == 'variant') type = 'product_variant';
t.submitFct = function(data) {
And finally:
n = 'hikamarket_'+type+'_file';
By
n = 'hikamarket_'+type+'_file_edit';
It will fix the various issues with the edition popup and of the update of the content when you upload a new file.
When you were using drag & drop, the file was right uploaded by the content in the page was not displaying correctly the return ; so if you saved the product, you removed the file you just uploaded ; but if you refreshed the page without saving it, you could saw the file you just sent.
About the popup, due to the integration of the variant edition, some modifications has been made in the popup and the links were targeting the right popup.
The modification will force the creation of the two popups (for the product and for the variant part).
These modifications will be, for sure, in the next package.
Regards,