Jump to content

[SOLVED] Help with increasing productcategory image size please!


Recommended Posts

hi all. i've been at this for hours and i'm pulling my hair out!!!

 

i want to increase the size of the images in the same category that appear in the product footer of my theme template.

 

NOTE: i am asking here since those who sold me the template have just up and disappeared and i don't know what to do, i am desperate!!!

 

i also think this is a prestashop feature and not a theme feature since it references some crazy mathematical equation that i found in the prestashop files, not in my theme files.

 

anyway, to the point. the images are the ones in the "insaneMath.png" attached and the code from my theme´s "productscategory.tpl" file which controls them is pasted below.

 

the live page is at http://www.fixgear.i...oduct&id_lang=1 , just scroll down to where the product footer is and you will see the "28 other products in the same category:" area.

 

the line i am referring to with the mathematical equation that seems to govern the image size is...

 

<ul {if count($categoryProducts) > 3}style="width: {[color=#0000cd]math equation[/color]="width * nbImages" width=107 nbImages=$categoryProducts|@count}px"{/if}>

 

the indicated image size "home_liquid" (see the code bit in red below) is supposed to be 250x250pix according to the way the theme (elation liquid) is set up but the images are TINY, i think they are like 10xx100pix and no matter what image standard i change "home_liquid" to, that crazy math equation forces the image smaller!!!

 

i though by editing the "width=107" (see green in code below) and making it larger like 200 that would do it but no good :(

 

aaaaaggggggg! it is driving me nuts! i need those images to be at least 200x200pix.

 

i am NOT looking forward to having to rewrite a complex mathematical equation.

 

thanks MUCH for any help!!!

 

saludos,

jer...

 

full code section...

 

{if count($categoryProducts) > 0 && $categoryProducts !== false}
<h2 class="productscategory_h2">{$categoryProducts|@count} {l s='other products in the same category:' mod='productscategory'}</h2><br>
<div id="{if count($categoryProducts) > 3}productscategory{else}productscategory_noscroll{/if}" class="clearfix">
{if count($categoryProducts) > 3}<a id="productscategory_scroll_left" title="{l s='Previous' mod='productscategory'}" href="javascript:{ldelim}{rdelim}">{l s='Previous' mod='productscategory'}</a>{/if}
<div id="productscategory_list">
 <ul {if count($categoryProducts) > 3}style="width: {[color=#0000cd]math equation[/color]="width * nbImages" [color=#008000]width=107[/color] nbImages=$categoryProducts|@count}px"{/if}>
  {foreach from=$categoryProducts item='categoryProduct' name=categoryProduct}
  <li>
<a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" title="{$categoryProduct.name|htmlspecialchars}"><img src="{$link->getImageLink($categoryProduct.link_rewrite, $categoryProduct.id_image, '[color=#ff0000]home_liquid[/color]')}" alt="{$categoryProduct.name|htmlspecialchars}" />
<p>{$categoryProduct.name|truncate:15:'…'|escape:'htmlall':'UTF-8'}</p>
{if $ProdDisplayPrice AND $categoryProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
 <span class="price_display">
  <span class="price">{convertPrice price=$categoryProduct.displayed_price}</span>
 </span><br />

post-520279-0-72421200-1365121513_thumb.png

Edited by fixgear (see edit history)
Link to comment
Share on other sites

btw, the only width reference in a math file i found in prestashop was in "Math.class.php" and is below...

 

/**
 * Get vector angle in radians
 *
 * @return float
 */
public function getAngle() {

 if($this->isPoint()) {
  return 0.0;
 }

 $size = $this->getSize();

 $width = ($this->p2->x - $this->p1->x);
 $height = ($this->p2->y - $this->p1->y) * -1;

 if($width >= 0 and $height >= 0) {
  return acos($width / $size);
 } else if($width <= 0 and $height >= 0) {
  return acos($width / $size);
 } else {
  $height *= -1;
  if($width >= 0 and $height >= 0) {
   return 2 * M_PI - acos($width / $size);
  } else if($width <= 0 and $height >= 0) {
   return 2 * M_PI - acos($width / $size);
  }
 }

}
}

Link to comment
Share on other sites

×
×
  • Create New...