Customizing ecommerce product block

Permalink
Hello everyone,

I want to use a jquery plugin that generates a short video preview (my client wants to sell videos on his site). The problem is that I need product block to display a link with custom attributes which the plugin needs to function. It looks something like this:

<a class="peMopho" href="https://www.youtube.com/watch?v=gyb2C010hxg" data-preview="video/1.jpg" data-target="prettyphoto" data-size="640x360" title="Intro title" data-description="Video description goes here" data-typeicon="hidden" data-mediaicon="hidden">
<img alt="animated thumbnail" src="img/posters/1.jpg" >
</a>

Is there any way I could modify the product block so I can add the link and its attributes via dashboard? Thank you very much in advance for any help!

 
janwidmer replied on at Permalink Reply
janwidmer
Hi Easynowbaby,

I assume, you are using the Concrete5 Ecommerce addon? In the Dashboard there is the possibility to add custom attributes per Product (see this link on your system: index.php/dashboard/core_commerce/products/attributes/)

There you can define custom attributes for your product. You can either add a text field or a text area with your link.

That should be enough to make the link appear on your product detail page.

Did that answer your question?

Jan
easynowbaby replied on at Permalink Reply
Hi Jan,

thank you for your answer, as it turned out, I was trying to do something unnecessary, first time with concrete. I should have probably deleted my question, sorry!

Cheers!