Preview Youtube video instead of image.

  • Posts: 15
  • Thank you received: 0
12 years 7 months ago #43613

Hi,

I bought the Enterprise version and seems like it has a lot of possibilities. That's why I would like to know is it possible to have a YouTube video instead of the image when listing the products? I sell instructional videos (downloadable products) and it would be nice to have a preview video of each video I am selling instead of the thumbnail image. Actually I don't need any images to my products.

Can this be solved? I am not a programmer.

Thank you in advance

Tomi

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
12 years 7 months ago #43799

There is no option for that.
However, it can be added by creating a custom field of the table "product" via the menu Display->Custom fields and then editing the file listing_img_title of the view "product" and replacing the block of code for the image ( between <!-- PRODUCT IMG --> and <!-- EO PRODUCT IMG -->
by some code to display the video. For example, with this extension extensions.joomla.org/extensions/multime...layers-a-gallery/812 and a youtube video, you would add the id of the video in the custom field of your product and in the view file the code :
<?php echo JHTML::_('content.prepare','{youtube}'.$this->row->CUSTOM_FIELD.'{/youtube}'); ?>

where CUSTOM_FIELD would be replaced by the column name of the custom field.

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

  • Posts: 15
  • Thank you received: 0
12 years 7 months ago #43986

Hi,

Thanks. Great product and well spent money. I got the YouTube now working with the product listing but when I click to the actual product listing it will show : Specifications and then the actual id. Not the video anymore. Which custom field I need to edit to make it work at the actual product page?

Thanks

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
12 years 7 months ago #44185

It's the file "show_block_img" that you need to edit for that. Remove everything in it and add your code.
Also, change $this->row by $this->element in the code for that view file.

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

  • Posts: 15
  • Thank you received: 0
12 years 5 months ago #50004

Thanks for the advices.

I have been trying to modify the YouTube videos to several places where there is images.

But I could not find a solution how I can add it to the Image and description view (type of item layout). I want to replace the image with that YouTube video.

Thanks for help...

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
12 years 5 months ago #50064

It's hte file "listing_img_desc" of the view "product" that you want to edit, in the same way as explained for listing_img_title.

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

  • Posts: 15
  • Thank you received: 0
12 years 5 months ago #50082

Hi,

I tried that before but it gives the error

Parse error: syntax error, unexpected '}' in ..../com_hikashop/product/listing_img_desc.php on line 24

I replace the code same way but error comes...

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
12 years 5 months ago #50113

No, if you get that error, is means that the code you write is not valid.
Can you give the lines you have now ?

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

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #108066



Hi. I wanted to reply to my old topic. I've been using the YouTube video as the substitute for the image but one thing has been bothering me and now I want to ask how to fix and hide those dots (see the image)?

I use DIV style layout for product listings. listing_img_title has been the file I've been editing and where the dots appear.

I hope you can help with this one because I've already used the search and did not find a solution to this.

Cheers

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

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

Hi,

This is probably added by your template, you can follow this tutorial to find from where these dots come from and remove them.
www.hikashop.com/fr/support/documentatio...ize-the-display.html

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

  • Posts: 15
  • Thank you received: 0
11 years 4 months ago #108119

Hi.

I managed to find a solution from another topic. I added this to the CSS file and they are gone

.thumbnails {
list-style: none;
margin-left: 0;
padding-left: 0;
}

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

  • Posts: 540
  • Thank you received: 49
11 years 4 months ago #108530

now i have standart display view of related products i need next view (look attachments) if is possible release where make changes and wich


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108539

Remove the borders and increase the size of the images in the hikashop options of the related products module and then upload the image for each product and you will be able to get the same look.

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

  • Posts: 540
  • Thank you received: 49
11 years 4 months ago #108632

i want insert to related items video from youtube not images)


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108663

Then you can follow the instructions from that post: www.hikashop.com/en/forum/4-how-to/43613...-of-image.html#43799

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

  • Posts: 540
  • Thank you received: 49
11 years 4 months ago #108720

1. not work in related items, i edit 3 files add code

<?php echo JHTML::_('content.prepare','{youtube}'.$this->row->video.'{/youtube}'); ?>
to all files:
listing_img_title
show_block_img
listing_img_desc


2. not show picture in thumbnail only black square if click him i see error " error, try again later"


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Last edit: 11 years 4 months ago by master_b.

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108732

Did you enter the id of the video in the custom field value of your products ?

Did you configure properly the youtube extension you installed ?

The modification on HikaShop's code is correct as far as I can see.

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

  • Posts: 540
  • Thank you received: 49
11 years 4 months ago #108755

possible add some checking if row video empty then show default thumbnail from hika config

nicolas wrote: Did you enter the id of the video in the custom field value of your products ?

my fail :blush: forget :whistle: :)

but still not show video in module related products


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:
Last edit: 11 years 4 months ago by master_b.

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108944

Please provide a backend access, I'll check the settings directly because there must be something you're forgetting.

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

  • Posts: 540
  • Thank you received: 49
11 years 4 months ago #108952

ok, send pm


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056

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

Time to create page: 0.111 seconds
Powered by Kunena Forum