- Posts: 37
- Thank you received: 0
Download links do not work
- patrickvbw
-
Topic Author
- Offline
Less
More
14 years 7 months ago #39302
by patrickvbw
Download links do not work was created by patrickvbw
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?
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.
- patrickvbw
-
Topic Author
- Offline
Less
More
- Posts: 37
- Thank you received: 0
14 years 7 months ago #39309
by patrickvbw
Replied by patrickvbw on topic Re: Download links do not work
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
)
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.
14 years 7 months ago #39403
by nicolas
Replied by nicolas on topic Re: Download links do not work
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:
to:
and that will avoid that sh404SEF break the link.
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:
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:
Code:
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.204 seconds