blondbear Posted October 18, 2016 Share Posted October 18, 2016 (edited) Hi, Easy ish question. I need to add a 'size" description right underneath the 'quantity available" before the 'hr/short description" for each product like: Size: 24 inches by 84 inches. It is unselectable, so no form item (textbox, select etc.), just a plain paragraph Same look as above field (for instance): Quantity: 1000 Items I guess look can be easily done through css. Yes, i can play in the code ;o) Thanks. Edited October 18, 2016 by blondbear (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted October 19, 2016 Share Posted October 19, 2016 I suggest adding the size as a "Product Feature". You can then add the following in product.tpl inside your theme to get the size: {foreach from=$features item=feature} {if $feature.id_feature == 1 && isset($feature.value)}<strong>{$feature.name}:</strong> {$feature.value}{/if} {/foreach} Change 1 to the ID of the "Size" product feature. If you want to remove the "Size" from the product feature list at the bottom of the product page, you can then change line 473 (in PrestaShop v1.6.1.7) of product.tpl inside your theme from: {foreach from=$features item=feature} to: {foreach from=$features item=feature} {if $feature.id_feature == 1}{continue}{/if} This will skip the "Size" product feature. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now