-- url of the page with the problem -- :
gurtech.guywalderonline.com/index.php/%D...%99%D7%9D/product/3-
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Error_message
Hi guys,
I'm trying for some time now to relocate the free download files that are located at the bottom of the product description to a tab of its own. I've successfully created the tab and found the php code for the files at the bottom of show.php file but when I copy the code the site crashes.
This is the code I'm trying to relocate:
<?php
}
if (!empty ($variant->files)) {
$skip = true;
foreach ($variant->files as $file) {
if ($file->file_free_download)
$skip = false;
}
if (!$skip) {
?>
<div id="hikashop_product_files_<?php echo $variant_name;?>" style="display:none;">
<fieldset class="hikashop_product_files_fieldset">
<?php
$html = array ();
echo '<legend>' . JText :: _('DOWNLOADS') . '</legend>';
foreach ($variant->files as $file) {
if (empty ($file->file_name)) {
$file->file_name = $file->file_path;
}
$fileHtml = '';
if (!empty ($file->file_free_download)) {
$fileHtml = '<a class="hikashop_product_file_link" href="' . hikashop_completeLink('product&task=download&file_id=' . $file->file_id) . '">' . $file->file_name . '</a><br/>';
}
$html[] = $fileHtml;
}
echo implode('<br/>', $html);
?>
</fieldset>
</div>
<?php
}
}
I know people had thought about this and probably made this work but for some reason I can't manage it.
Can someone please help me here?
Thanks in advance,
Guy.