Jump to content

Not shown correctly product details


Recommended Posts

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.

post-450076-0-60869600-1359649222_thumb.jpg

Link to comment
Share on other sites

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...