Amend to Status Confirmation email not working

  • Posts: 11
  • Thank you received: 0
12 years 2 months ago #62232

Hello,

Using the free version of Hikashop and I just wanted to add a bit of text at the beginning of the download link so that it is clear what it is.

(I have been getting emails from customers asking where the link is!)

So I amended the following code in this file : order_status_notification.html.php

$statusDownload = explode(',',$config->get('order_status_for_download','confirmed,shipped'));
	if(!empty($item->files) && in_array($data->order_status,$statusDownload)){
		global $Itemid;
		$url_itemid = '';
		if(!empty($Itemid)){
			$url_itemid='&Itemid='.$Itemid;
			}
			echo '<p>';
			foreach($item->files as $file){
				$fileName = empty($file->file_name) ? $file->file_path : $file->file_name;
				echo '<b>Download link:</b> <a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$url_itemid).'">'.$fileName.'</a><br/>';
			}
			echo '</p>';
		}

However, my additional bit of text: echo '<b>Download link:</b> <a ....' is not appearing on the confirmation email. Is there something else I need to do?

Last edit: 12 years 2 months ago by coruja.

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62326

Hi coruja,

Was the link displayed before you add a modification ?
Are you sure that you attached a file to the product ordered ?

Your modification should work, but at each release your modifications will be lost. To avoid this problem you can buy a version of hikashop to keep your modifications.

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

  • Posts: 11
  • Thank you received: 0
12 years 2 months ago #62330

Hello Xavier, thank you for replying.

Yes, the link is displaying to the downloadable file correctly in the status confirmation email before and after the modification.

I have set up a demo site on-line to test this modification before implementing it to the live site. And everything works fine expect that little bit of text is just not showing up. I even downloaded the amended file locally and double-checked if the amendment is there & that I am not going mad. The amendment is there.

I looked around to see if there is a template override or anything similar but couldn't find anything in the usual places.

I have implemented the free version of Hikashop for a client and I definitely will persuade him to buy a commercial copy soon, but right now we are just dipping our toes in to the water.

I have to say, this shopping cart works really well and we have already made a few sales, but almost each time, people ask where the download link is and forward their confirmation email to me - and the link is there underneath the product description but people just don't realise it is link!

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 2 months ago #62351

Hi,

You might want to try to edit the order_creation_notification email too. It can be this one which is sent when the order is confirmed right at the creation of the order like for example if your order is free.

The following user(s) said Thank You: coruja

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

  • Posts: 11
  • Thank you received: 0
12 years 2 months ago #62362

Fantastic Nicolas, you are right!

This is an oversight on my part, the live site doesn't have free downloads and the file I was amending was the correct one for that.

But to test things out I am using a free download option and of course it is using another email template!

I amended that and every thing is looking great.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum