Icon Datasheet Product Link to Google Drive

  • Posts: 13
  • Thank you received: 1
4 years 8 months ago #309200

-- HikaShop version -- : 4.2.0
-- Joomla version -- : 3.9.10
-- PHP version -- : 7.1.30
-- Browser(s) name and version -- : Firefox 68
-- Error-message(debug-mod must be tuned on) -- : None

Good day
I would have products with datasheet linked to Google Drive, I would like an icon to appear next to the text. Is this possible to do?
I hope can you help me.
Kind regards.

Attachments:

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
4 years 8 months ago #309201

Hi,

If you want to have a file from Google drive, you first need to share it:
support.google.com/drive/answer/2494822?...form%3DDesktop&hl=en
Once you have its share link, you can just add it where you want.
So for example, you could create a custom field of the table "product" and of the type "WYSIWYG" via the menu Display>Custom fields, and in it, you can add your HTML for the share link. For example:

<a href="XXX"><i class="fa fa-upload"></i></a>
where XXX is the share link for that product.

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

  • Posts: 13
  • Thank you received: 1
4 years 8 months ago #309240

Finally, in the View :products
File: show_block_product_files
Add the code: <i class="fa fa-file-pdf"></i>

Attachments:

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

  • Posts: 13
  • Thank you received: 1
4 years 8 months ago #309241

Now custom.

Attachments:

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

Time to create page: 0.047 seconds
Powered by Kunena Forum