Jump to content

Loading custom content in product.tpl


Recommended Posts

1st of all, when you create a product feature, there is an option to add a URL to the feature. I suppose that this URL is to create a link to the feature description. But when I retrieve the information of the feature, this custom URL is ignored and not available anywhere.

 

In my product.tpl I have this:

{if isset($features) && $features}
	<!-- Data sheet -->
	{foreach from=$features item=feature}
		<pre>{$feature|@print_r}</pre>
	{/foreach}
	<div class="clear"></div>
	<!--end Data sheet -->
{/if}

Now, when I load a product in my website, what I get is this:

Array
(
    [name] => Material
    [value] => Poliester
    [id_feature] => 1
)1

Now, the id_feature does not correspond to the id of the feature in the database, does not correspond to the CMS page I created for Poliester and as you can see, there is no URL in the array.

 

I was wondering how can I retrieve all that information from my website into my product.tpl

 

Thanks in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...