Search the Community
Showing results for tags 'Module PM Multifeatures'.
-
Hi there Prestashop Community, here is my problem and i guess you can help I bought the Module PM Multifeatures. Installing and conf. worked great. Only problem was the view in Frontend. It was like: Feature 1: Value 1 Feature 1: Value 2 Feature 1: Value 3 Feature 2: Value 1 Feature 2: Value 2 _________________________________________________ I needed it to be like: Feature 1: Value 1, Value 2, Value 3 Feature 2: Value 1, Value 2. _________________________________________________ So i asked the developer ---> They gave me a sample for Product.tpl I used that code in my .tpl and it worked great as id should. Here is the Code part of that product.tpl {* Multiple Features *} {assign var="features" value=Module::getInstanceByName('pm_multiplefeatures')->getFrontFeatures($product->id, ', ')} {* /Multiple Features *} {foreach from=$features item=feature} {if isset($feature.value)} <li><span><b>{$feature.name|escape:'htmlall':'UTF-8'}:</b></span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} See Screenshot 1: _________________________________________________ So far everything fine. I tryed to do the same on my product-list.tpl but without any succsess. Here is the Code part of that product-list.tpl {if $product.features} {* Multiple Features *} {assign var="features" value=Module::getInstanceByName('pm_multiplefeatures')->getFrontFeatures($product->id, ', ')} {* /Multiple Features *} {foreach from=$product.features item=feature name=features} <span class="sb_feature"><b>{$feature.name|escape:'htmlall':'UTF-8'}:</b> {$feature.value|escape:'htmlall':'UTF-8'} <br></span> {/foreach} {/if} See Screenshot 2: _________________________________________________ I did several trys but didn`t get it to work as it should. Any of you Mastercoders got an idea where the mistake could be? Thanx in advance. SM5K
- 1 reply
-
- Features
- Multiple Values
- (and 3 more)