in2sky Posted March 29, 2010 Share Posted March 29, 2010 There is an "element.style" in Prestashop and can't locate which file has it.It's actually used in the product page, styling the size area for small thumbnails beneath the bigger product photowhich I'm trying to customize.I just can't find where is element.style located, didn't find it in the global.css...any help much appreciated. Link to comment Share on other sites More sharing options...
tk007 Posted June 5, 2010 Share Posted June 5, 2010 Hi ! Same problem for me.BRtk007 Link to comment Share on other sites More sharing options...
TheOne7Up Posted August 16, 2010 Share Posted August 16, 2010 If you mean that:http://www.abload.de/img/thumbs_list_frame.elemhfgw.jpgHere is the solution: >Search "thumbs_list_frame" (4 hits in 2 files) (search done with notepad++) C:\Users\kkk\Downloads\prestashop-german-edition-1311-6\themes\prestashop\js\product.js (3 hits) Line 308: $('#thumbs_list_frame').scrollTo('li:eq(0)', 700, {axis:'x'}); Line 318: $('#thumbs_list_frame').width((parseInt(($('#thumbs_list_frame >li').width())* i) + 3) + 'px'); // Bug IE6, needs 3 pixels more ? Line 318: $('#thumbs_list_frame').width((parseInt(($('#thumbs_list_frame >li').width())* i) + 3) + 'px'); // Bug IE6, needs 3 pixels more ? C:\Users\kkk\Downloads\prestashop-german-edition-1311-6\themes\prestashop\product.tpl (1 hits) Line 114: </pre> <ul> The interesting part is in product.tpl:width: {math equation="width * nbImages" width=80 nbImages=$images|@count}pxIn the end it looks like:width: 12345pxbecause the part in {} is only an equation and results in a numberThe width, which is set to 80px is multiplied with the number of images nbImages thas is calculated from $images.you could just hardcode that width but it has some flaws then. Better you use at least the number of images nbImages to set your width. i.e.:width: {math equation="width * nbImages" width=120 nbImages=$images|@count}pxfor 120px large previewpictues. Link to comment Share on other sites More sharing options...
razaro Posted August 16, 2010 Share Posted August 16, 2010 element.style means that html element have inline style or it is computed by php or JavaScript 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