Download links do not work

  • Posts: 37
  • Thank you received: 0
12 years 11 months ago #39302

Hello,

I've added downloadable files for my products, but some of the files cannot be downloaded.

See www.heatplus.nl/catalogus/categorie/13-herz

Every product has a downloadable file enabled.

What am i doing wrong?

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

  • Posts: 37
  • Thank you received: 0
12 years 11 months ago #39309

I was using SH404SEF, and somehow it edited some of the download links.

After puring the urls, and set the Hikashop component to use the Joomla router, it works again.

Any news upon a SH404sef compatibility with Hikashop yet?

Would be another point for me to purchase the product!

(even though it is good, it would make it better :))

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

  • Posts: 83103
  • Thank you received: 13415
  • MODERATOR
12 years 11 months ago #39403

Hi,

HikaShop is compatible with Sh404SEF. However, you found the only link which is missing the itemid parameter. Because of that sh404sef screws the link.
If you use the latest version of HikaShop, edit the file "show_block_product_files" via the menu Display->Views and change the code:

$fileHtml = '<a class="hikashop_product_file_link" href="' . hikashop_completeLink('product&task=download&file_id=' . $file->file_id) . '">' . $file->file_name . '</a><br/>';

to:
global $Itemid;
			$url_itemid='';
			if(!empty($Itemid)){
				$url_itemid='&Itemid='.$Itemid;
			}
			$fileHtml = '<a class="hikashop_product_file_link" href="' . hikashop_completeLink('product&task=download&file_id=' . $file->file_id.$url_itemid) . '">' . $file->file_name . '</a><br/>';

and that will avoid that sh404SEF break the link.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum