dunkeld Posted January 31, 2013 Share Posted January 31, 2013 Hello I have some problems on my page that I can not solve. When I visualize the details of a product, as the following http://www.creercrea...el-corazon.html I find that the buttons of Facebook, Google and others are not well aligned, and well below where I show other products in the same category, I appear more products than they actually are discharged. In this particular case, are books, both names are the same, one is printed and other mail. So rather than just appear one appear over the last three and displays it moved down the slider and a html code above it. This happens to me in other categories of products and they have put this down to several combinations, but I can not fix these minor flaws. Thanks in advance. Link to comment Share on other sites More sharing options...
vekia Posted January 31, 2013 Share Posted January 31, 2013 link that you attached doesnt work Link to comment Share on other sites More sharing options...
dunkeld Posted January 31, 2013 Author Share Posted January 31, 2013 Excuse me: http://www.creercrearcrecer.es/tienda/es/libros/8-impulsos-del-corazon.html Link to comment Share on other sites More sharing options...
tdr170 Posted January 31, 2013 Share Posted January 31, 2013 Somewhere in your iosslider files most likely a .tpl file the line below was added or was incorrectly applied. "style="width: 107px" Removing this fixes the issue, i cant point to the exact file but if I delete this line with my developer the page is correct. ----------------------- Link to comment Share on other sites More sharing options...
dunkeld Posted January 31, 2013 Author Share Posted January 31, 2013 Hello again, I think part of the problem I have to see the other belonging to the same category is being piece of code I do not understand. in / theme481/modules/productscategory/productscategory.tpl I think my problem is underlines, but I don't know solve it- /********* {if count($categoryProducts) > 0 && $categoryProducts !== false} <div class="clearfix blockproductscategory"> <h3>{$categoryProducts|@count} {l s='other products in the same category:' mod='productscategory'}</h3> <div class = 'container2'> <div class = 'iosSlider2'> <div class = 'slider2'> {foreach from=$categoryProducts item='categoryProduct' name=categoryProduct} {if count($categoryProducts) < 6}style="width: {math equation="width * nbImages" width=107 nbImages=$categoryProducts|@count}px"{/if} <div id='item2'> <a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" class="lnk_img" title="{$categoryProduct.name|htmlspecialchars}"><img src="{$link->getImageLink($categoryProduct.link_rewrite, $categoryProduct.id_image, 'carusel')}" alt="{$categoryProduct.name|htmlspecialchars}" /></a> <div class="clear"></div> <p class="product_name"> <a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" title="{$categoryProduct.name|htmlspecialchars}">{$categoryProduct.name|truncate:22:'...'|escape:'htmlall':'UTF-8'}</a> </p> <div class="clear"></div> {if $ProdDisplayPrice AND $categoryProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <p class="price_display"> <span class="price">{convertPrice price=$categoryProduct.displayed_price}</span> </p> {else} <br /> {/if} </div> {/foreach} </div> </div> <div class ='next'></div> <div class ='prev unselectable'></div> </div> <script type="text/javascript"> $(document).ready(function() { $('.iosSlider2').iosSlider({ snapToChildren: true, desktopClickDrag: true, keyboardControls: true, infiniteSlider: true, onSliderLoaded: sliderTest, onSlideStart: sliderTest, onSlideComplete: slideComplete, navNextSelector: $('.next'), navPrevSelector: $('.prev'), }); }); function sliderTest(args) { console.log(args.targetSliderOffset); } function slideComplete(args) { $('.next, .prev').removeClass('unselectable'); if(args.currentSlideNumber == 0) { $('.prev').addClass('unselectable'); } else if(args.currentSliderOffset == args.data.sliderMax) { $('.next').addClass('unselectable'); } } </script> </div> {/if} *****/ Podéis ecCan you give me a hand, a part of the products coming out repeated, and I do not know where to shoot. Thanks Link to comment Share on other sites More sharing options...
dunkeld Posted January 31, 2013 Author Share Posted January 31, 2013 I tried to remove the code that had underlined, and it works. But I have yet another problem, and is placing more products in the slider that really should appear. Also I do not see how to solve the alignment of previous social bloc. Thanks for your help. 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