Attached files archive

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #153791

-- HikaShop version -- : 2.3.0 Essential
-- Joomla version -- : 3.x

Hello,
is there a way to create a joomla site page that will lists the files attached to products ?
It is because I attach brochures and technical data in pdfs to the product and for a user is very useful to get a page of the website with the full list of this files, without the need to navigate each product.

Thank you in advance for any suggestion

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #153804

I'm sorry, I think this topic should move to the "how to" forum

Last edit: 10 years 6 months ago by gulp.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #153870

Hi,

You can create a menu wit hthe type HikaShop - Customer download space.
This will list all the available files to download if it was not free files.

If you put the files as free in the product page so, there is nothing for that, you will have to create your own module.

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #153949

I've already removed the flags of "free download" but the page doesn't show any record,
what else to check ?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #153950

The records will arrive for new orders, actually it wasn't stored in the desired table.

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #154091

Sorry but I didn't understand what you're trying to explain

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #154113

Hi,

What I mean is, the files were set as free downloads, so there is nothing stored for these files regarding the downloads.
The download entries are stored only if it's a not free download.

So, for the orders that was already created, you can't find the download information, but because you have moved the files from free to not free, now when the customers will purchase products, the file will be managed with a counter for each users, and be available in the download section.

So you have to check if the downloads are managed for the order passed after the date when you have move from free to not free.

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #154269

Well, this means that I could not show the files before any user purchases these ones ?
Actually I will not use hikashop as a e-commerce shop, then it will not run any purchase by users.
Is there any solution ?
I could manage to customize/override some page template if it is necessary, but I don't know which one

Thank you

Last edit: 10 years 6 months ago by gulp.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #154270

Hi,

To manage only file downloads without purchases, HikaShop don't seems to be the more adapted component.
But you can potentially use a download manager inside HikaShop.

With some views edition, you can display a download manager part inside an HikaShop product view.

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #154506

Hello,
I'm not sure about your answer, could you please make an example of what your solution could be ?
(also private if you don't like to share other joomla extensions on your site).
How could a different extension find hikashop files and data if these are set into hikashop tables ?
I'm not using hikashop just to manage downloads, I've a big and complex product catalog to load on the site, but at present time the products will not be sell online by the site.

Thank you

Last edit: 10 years 6 months ago by gulp.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #154522

Hi,

What I mean is, you can use another extension which will manage the files under modules for example.

Then in HikaShop, edit the view "product / show_default" which is the view displaying the product page.
And in the code, add the call to the file management module thanks to the Joomla tag

{loadmodule XX}


By this way your file manager will be displayed inside the HikaShop product page.

Depending on how is working the file manager, you can potentially use the custom fields to specify a file id in order to have a dynamic display of the module content. That could require some development.

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #154637

Then there is no way to override hikashop to show the files also if my products are free ?
Could you please suggest me an extension that could do something like you've just explained ?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #154683

Hi,

Sorry I think that I had misunderstood your real need.
To sum up, you just need to have a page which will list all the free files ?
If it is, you can create a module or a plugin which will replace a tag by the desired content.
To load all the files, you can use the following code:

$db = JFactory::getDBO();
$db->setQuery('SELECT * FROM '.hikashop_table('file').' WHERE file_type = "file" AND file_free_download = 1');
$files = $db->loadObjectList();
$fileClass = hikashop_get('class.file');
foreach($files as $file){
	$fullPath = $fileClass->get('file',$file->file_path);
	echo '<a href="'.$fullPath.'">'.$file->file_name.'</a><br/>';
}

I was thinking that you wanted to display the free files of the purchased products for each users, and not a global list.. sorry for the time lost.

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #154856

Yes, thank you, this is my real need and I'm sorry, probably on my previous posts I'm not been so clear ... ;)

How to use this code ?
Do I have to create a module/plugin "from zero" or is there a joomla/backend way to code it faster ?
(I've good php skills but low knowledge of joomla plugins coding)
Or also is there a way by overriding an hikashop module ?

Last edit: 10 years 6 months ago by gulp.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #154870

You will have to create your own module/plugin.

I think that a module can be enough. You can take the module "mod_hikashop" as an example.
Just edit the XML to adapt it to your module name, and edit the php to get the desired elements and echo your data.

Once you have created your zip file, you jsut have to install it via the Joomla extension manager.

The following user(s) said Thank You: gulp

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

  • Posts: 99
  • Thank you received: 2
10 years 6 months ago #154953

Thank you for all the suggestion, I'll try this solution and let you know about the results !

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

  • Posts: 99
  • Thank you received: 2
10 years 1 month ago #175820

Hello,
I'm back again with this topic, what if I ask you to create for me this module ?
Could you quote it ?
It should also have a little search engine inside, with filters for products and/or categories.
Other possible features to evaluate ...

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 1 month ago #175892

Hi,

You can contact our partners for a quote on that project:
www.hikashop.com/home/our-partners.html

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

Time to create page: 0.112 seconds
Powered by Kunena Forum