Embedding video in Hikashop vs. Joomla article

  • Posts: 97
  • Thank you received: 1
  • Hikashop Essential
10 years 2 weeks ago #198154

-- url of the page with the problem -- : goldfieldfireworks.com/index.php/our-pro...roduct/429-alter-ego
-- HikaShop version -- : Hikashop Essential 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.38
-- Browser(s) name and version -- : Safari 8.0.4, Firefox 37.0.1

I have tried 3 plugins so far to embed video: AllVideos, Videobox and now HDWplayer.
With each one, I can embed a video into a regular Joomla article, and it works.
But if I take the same code, and copy it to a Hikashop product, the video does not appear, only the code appears.
I created a custom field for the video.
The code is:
{hdwplayer width=618 video=http://goldfieldfireworks.com/images/stories/videos/alter-ego.mp4}
When this code is on a regular Joomla article page, it works. See this page:
goldfieldfireworks.com/index.php/our-products/test-page
But when I try to put it into a Hikashop product page, all I get is the code and no video. See:
goldfieldfireworks.com/index.php/our-pro...roduct/429-alter-ego
What is the difference? Why does the code not work on a Hikashop page?
Thank you for your help.

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

  • Posts: 26226
  • Thank you received: 4035
  • MODERATOR
10 years 2 weeks ago #198174

Hi,

The tag will work if you place it in the description of the product.
The plugins to embed videos are "Joomla! content plugins", and the product description in HikaShop is displayed using the Joomla! content system.

echo JHTML::_('content.prepare',preg_replace('#<hr *id="system-readmore" */>#i','',$this->element->product_description));

If you want to display the video otherwise, you will have to display the value using the "JHTML content.prepare" function.

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: 97
  • Thank you received: 1
  • Hikashop Essential
10 years 1 week ago #199172

Thank you for your reply.

I have tried adding the tag into the description. For example, the Description field has:

<p>12 shots. Each shot gives a mine of blue peony stars, and a break above that mine which is gold brocade stars mixed with blue peony stars. The last 2 shots include crackle in the breaks. About 20 seconds.</p>
<p><a href="images/stories/videos/moody-blue.mp4">http://goldfieldfireworks.com/images/stories/videos/moody-blue.mp4</a><a href="images/stories/videos/moody-blue.mp4"></a></p>
<div id="hikashop_product_custom_info_main" class="hikashop_product_custom_info_main" style="margin: 20px 0px 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent;">
<table style="border-collapse: collapse; width: 100%;">
<tbody>
<tr class="hikashop_product_custom_video_line">
<td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #cccccc;"><span id="hikashop_product_custom_value_16" class="hikashop_product_custom_value" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent;">{mp4}moody-blue{/mp4} </span></td>
</tr>
</tbody>
</table>
</div>
<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part" style="margin: 0px; padding: 0px; border: 0px; outline: 0px; background-color: transparent; clear: both; width: 620px; line-height: 20.399999618530273px;">&nbsp;<code style="font-family: Monaco, menlo, Consolas, monospace, serif; padding: 0px; color: inherit; background-color: transparent; border: 0px;"><span class="tag" style="color: #c82829;"><a><span class="atn" style="color: #f5871f;">data-rokbox</span><span class="atn" style="color: #f5871f;">href</span><span class="pun" style="color: #4d4d4c;">=</span><span class="atv" style="color: #3e999f;">"/images/stories/videos/moody-blue.mp4"</span><span class="tag" style="color: #c82829;">&gt;</span><span class="pln" style="color: #4d4d4c;">This is a RokBox 2 Link</span><span class="tag" style="color: #c82829;"></span></a></span></code></div>

The display on the front end is as shown in the attached file. Only the tags show on the front end. The video does not show. I have circled in red where the tags are displayed. I was expecting video to be displayed.

I don't know what I am doing wrong here. It worked with the "videobox" extension, but that extension has been withdrawn by its developer, so I can't download that again.
Thank you for any help.

Attachments:

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

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
10 years 1 week ago #199185

Hi,

Some content plugins will have some code in them so that they only work on the Joomla article.
In that case, they won't work in the product description.
So, you could talk with the developer and see with him if he could allow the plugin to work on hikashop product descriptions (in most cases, it should be quite easy for him).
Or you would have to use another content plugin which doesn't have that restriction.
There are tens of plugins for videos display. So at least a few of them should allow for that.

And don't stop at content plugins. You can also use modules and the loadposition content plugin which will allow you to insert modules in product descriptions:
docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F

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

  • Posts: 97
  • Thank you received: 1
  • Hikashop Essential
10 years 1 week ago #199227

OK thank you for your help!

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

  • Posts: 97
  • Thank you received: 1
  • Hikashop Essential
9 years 11 months ago #200458

The newest version of AllVideos seems to be working within product descriptions.

Last edit: 9 years 11 months ago by bw92116.
The following user(s) said Thank You: nicolas

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

Time to create page: 0.143 seconds
Powered by Kunena Forum