Product Files - Description

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

We have several files for our products (programs, we are selling enrollments into a Parks Department classes) which consist of registration packets. I would like to be able to offer a short description of each file in the product page.

Looking at the product section, when you add a file, you are allowed to enter a file description, but that description is not displayed anywhere. I was unable to find any configuration I may have missed to enable or disable this feature.

How do I display the description for each product file?

Thanks,

DAve

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

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

Hi,

The description is not used anywhere.
There is no option to activate it.

You say that you want to display the descriptions of files on the product page, but unless the files are free, you won't see the files on the product page. Then, you're saying that you're selling the files. So I'm not sure where you want to display the descriptions ?
On the order details page ?
If so, you will have to edit the file "show" of the view "order" via the menu Display->Views and add some simple custom code.
If you want them on the product page, that will be the file "show_block_product_files" of the view "product".

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

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

Yes the files are free, they are the PDF registration forms for the classes (products) that are sold on the page. Think of them as supporting files for the classes (products), like a user manual would be for a product such as an MP3 player. When I get Hikashop moved to the production server you will be able to see what I am doing and I think it will make sense then.

The "show_block_product_files" is what I need I think.

Thanks for the help.

DAve

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

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

Go it. It was easier than I expected. I simply chased what I thought would be the simplest solution and that was the key.

In the file Show of the view Product I changed this line,

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

to

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

and I have descriptions now for free files.

DAve


Attachments:

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

Time to create page: 0.067 seconds
Powered by Kunena Forum