Missing the file -download´s "Descrition"

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 11 months ago #125824

-- url of the page with the problem -- : http://www dot a virus dot dk
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3 ?
-- Browser(s) name and version -- FF 23
-- Error-message(debug-mod must be tuned on) -- : no error.

If a costemer buy, and get the email, the mail is ok, and there is a link to a program (download link) but the text about the download file is missing ?

Under / Product / Files / filename (does download "free download") but :
Description, does not come in the email, just the link to the file ?

I have tried to see if the were a checkmark, but i cannot see it ??

What am i´m doing wrong ?

regards..

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #125852

Hi,

To display the description, you can edit the view "user / download" and use the code

echo $downloadFile->file_description;

Last edit: 11 years 11 months ago by Jerome.

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 11 months ago #125935

Hmm
Then the description in "products / Files /description" dosen´t work ?

:unsure:

regards..

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 11 months ago #125965

Hi,

What do you means with "does not work" ?
The file description is right stored in the database but it's not display by HikaShop to the user.
But as Xavier explain in the last post, you can customize HikaShop (thanks to view override) in order to display this file description.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 11 months ago #126055

Sorry.
I mean that i thoat that the "Descriptions" was send too in the email ?
Maybe the felt schoud be "Internal text to my selv"
I have a need to send text to the files that they buy ?
How to do that ?

Regards...

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

  • Posts: 84301
  • Thank you received: 13697
  • MODERATOR
11 years 11 months ago #126059

Indeed, the description is something for yourself. Not to display to the user.
Nevertheless, if you want to display it to the user, as jerome explained, it will require an override.

You can do that by copying the file media/com_hikashop/mail/order_status_notification.preload.php to media/com_hikashop/mail/order_status_notification.preload.modified.php and then edit that second file to add your custom code to display the file description.
For that you can add such code :
$t.=$file->file_description.'<br/>';

after the line:
$t .= '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$file_pos.$url_itemid).'">'.$fileName.'</a><br/>';

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 10 months ago #130326

Hi
Have done this :)
found string !
Inserted a new line !
insert text : $t.=$file->file_description.'<br/>';
saved as : order_status_notification.preload.modified.php

Uploaded in the same folder than the file i copied (the ordinary file is still there )

Then i bought the item, that schoud have the text in the mail, but the mail is not within the text. i got the ordinary text ?

What do i do wrong ?

Regards.

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 10 months ago #130332

Found fail.

My fail.. sorry. have called the file ...php.php

Sorry. it WORKS..

Thanks :-)

Regards !

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 4 weeks ago #167041

Hi again.
Have same problem again. I have updatet the Hikashop, everytime, and somehow it doesent work anymore ?
The override file is still, in same directory, byt it doesent work ?
Is it still the same fil, i´ll do an override to ?
If so... what line do i have to search for, and what do i have to write, to the costemer again get the files, that i have configured in the product/files ??

Regards

Nmouse

Last edit: 11 years 4 weeks ago by nmouse. Reason: understanding reason

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 4 weeks ago #167052

Hi,

See thread: www.hikashop.com/forum/product-category-...ased-after-save.html

Please do not double post :)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 4 weeks ago #167200

Sorry. :-)
(have made the change, as is in the previous post)
But it doent send the "description - Files" as this subject is about.
It is the old file, the override is, but the costemer still have to get the file information.
- Yes, now the tekst in the "files" is there, but it´s not send by mail to the costemers. ??

Regards..

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 4 weeks ago #167245

Hi,

I am sorry but I have difficulties to understand what you mean.

The file_description should be save correctly now, and the modification you made before (10 months ago) should still work.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
11 years 4 weeks ago #167272

Hi again.
The field is now filled within my inforamtion :-) (in html-mode, no GUI)
That i have to live with.
But the override, witch shoud include the "files" information too, it sends the mail, as ordinary, but the info of that "files" is NOT included.
It seams that this issue came after last release ?

I hope you understand what I writing ?

$t .= '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$file_pos.$url_itemid).'">'.$fileName.'</a><br/>';
$t.=$file->file_description.'<br/>';


Regards.

Last edit: 11 years 4 weeks ago by nmouse.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
11 years 4 weeks ago #167281

Hi,

It is working fine for me.
Are you sure that you are testing the right email ?

"order_status_notification" is for automatic order status email.
"order_notification" is use when you use the button "e-mail" in the backend.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum