The download button which should activate a download, makes the page turn grey

  • Posts: 25
  • Thank you received: 1
2 years 9 months ago #339687

-- url of the page with the problem -- : framemaker.dk/en/shop/product/1-a5-template-for-manuals
-- HikaShop version -- : HikaShop Business 4.4.4 [2111051447]
-- Joomla version -- : Joomla! 3.10.6
-- PHP version -- : 5.5.5-10.3.32
-- Browser(s) name and version -- : Firefox and all other browsers
-- Error-message(debug-mod must be tuned on) -- : Page turns grey

I have a free template here: framemaker.dk/en/shop/product/1-a5-template-for-manuals
When a user clicks the download button, the page turns grey and no download is activated.
Can you please help me make the free download work?
Best regards
Bjørn Smalbro

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 9 months ago #339688

Hi,

The download area PHP code has been customized on that page. And the issue is apparently linked to that customization.
So I'm not sure what you should do as I don't know the actual situation on your end.
Normally, the code displaying the download links is in the file "show_block_product_files" that you can edit via the menu Display>Views.
There you should normally have that code:

<div id="hikashop_product_files_main" class="hikashop_product_files_main">
<?php
if(!empty($this->element->files)) {

	$files = array();
	foreach($this->element->files as $file) {
		if(empty($file->download_link))
			continue;
		if(empty($file->file_name))
			$file->file_name = $file->file_path;
		$files[] = '<a class="hikashop_product_file_link" href="' .  $file->download_link . '">' . $file->file_name . '</a>';
	}

	if(count($files)) {
?>
	<fieldset class="hikashop_product_files_fieldset">
		<legend><?php echo JText::_('DOWNLOADS'); ?></legend>
		<?php echo implode('<br/>', $files); ?>
	</fieldset>
<?php
	}
}
?>
</div>
Either the code there has been changed, or the "show_default" view file has been customized to not even use the "show_block_product_files" view file.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum