ziemien Posted May 31, 2013 Share Posted May 31, 2013 (edited) I need to create a module that will add check box into product page in admin panel, saves whether it has been checked or not into database and if it has, adds small box in the product page in front end with some information about showed product like its dimensions. It's seems to be so simply but when I've looked into Prestashop files I got lost. There is so much code. The question is where I should start ? Do you know any tutorials that might be helpful? I've looked into dev documentation but it does not solve my problems. Which files should I edit? Edited May 31, 2013 by ziemien (see edit history) Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted May 31, 2013 Share Posted May 31, 2013 Hi, there is some article that will be able helps you: http://blog.belvg.com/how-to-create-a-custom-product-tab-in-prestashop.html Regards Link to comment Share on other sites More sharing options...
defuzed Posted May 31, 2013 Share Posted May 31, 2013 (edited) If I understand your problem correctly, it doesn't seem to me like you need an extra module for this. Prestashop Products have attributes like dimensions already, they're called "features". Maybe instead of a checkbox just setting those dimensions in the admin products features and then adding something like {if isset($features)} <div id="small-box"> {foreach from=$features item=feature} {if $feature.name == 'Width'} {$feature.value} x {/if} {if ($feature.name == 'Height')} {$feature.value} {/if} {/foreach} </div> {/if} in themes/YOURTHEME/product.tpl. would already be enough for your needs? Edited May 31, 2013 by defuzed (see edit history) 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