Jump to content

Bild-Link stimmt nicht


Recommended Posts

Hallo allerseits

 

Ich habe das Problem das wenn ich auf meine Produktkategorie klicke alle Produkte kommen, aber das Bild dazu nicht. Aber wenn ich auf das Produkt klicke, kommen die Bilder dann wie es sein sollte. Also stimmt mit einem Link etwas nicht. Er sieht folgendermassen aus:

 

<img width="200" height="200" alt="Body "Rockstar"" src="http://www.goldinis.com/159-home-list/body-schwarz.jpg">'>http://www.goldinis.com/159-home-list/body-schwarz.jpg">

 

Wenn ich aber folgendes ändere im Firebug dann kommt das Bild erstens und zweitens in der richtigen Grösse.

 

<img width="200" height="200" alt="Body "Rockstar"" src="http://www.goldinis.com/159-home-list/body-schwarz.jpg">

 

Das -list weglassen und die Grösse auf 129px stellen. Was muss ich nun ändern? Das Problem habe ich erst seit der Umstellung auf ein neues Theme das ich gekauft hatte. Irgenwie muss der Link falsch generiert werden. Weiss jemand wo es klemmen könnte?

 

MFG Marc

Link to comment
Share on other sites

Hallo, also

 

product-list.tpl

 

{if isset($products)}

<ul id="product_list" class="grid">
{foreach from=$products item=product name=products key=k}
<li class="ajax_block_product bordercolor item-{$k}">
 <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home-list')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="200" height="200"{/if} /></a>
 <div class="center_block">
  <div class="product_flags">
{if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if}
{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}<span class="availability bordercolor">{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}<span class="bordercolor">{l s='Product available with different options'}</span>{else}<span class="bordercolor">{l s='Out of stock'}</span>{/if}</span>{/if}
{if isset($product.online_only) && $product.online_only}<span class="online_only bordercolor">{l s='Online only!'}</span>{/if}
  </div>
  <h3><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></h3>
  <p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:30:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:325:'...'|strip_tags:'UTF-8'}</a></p>
		 <p class="product_desc_grid"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:30:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:95:'...'|strip_tags:'UTF-8'}</a></p>
 </div>					
 <div class="right_block">
  {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span>
  {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span>
  {/if}
  {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if}
  {/if}  {if isset($comparator_max_item) && $comparator_max_item}
<p class="compare checkbox"><input type="checkbox" class="comparator" id="comparator_item_{$product.id_product}" value="comparator_item_{$product.id_product}" {if isset($compareProducts) && in_array($product.id_product, $compareProducts)}checked{/if}/> <label for="comparator_item_{$product.id_product}">{l s='Select to compare'}</label></p>
  {/if}
  {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
{if ($product.allow_oosp || $product.quantity > 0)}
 <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}"><span>{l s='Add to cart'}</span></a>
{else}
 <span class="exclusive">{l s='Add to cart'}</span>
{/if}
  {/if}
  <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a>

 </div>
</li>
{/foreach}
</ul>
{/if}

 

und

 

product-list-pack

 

{if isset($products)}
<div id="product_list" class="bordercolor list">
<ul>
{foreach from=$products item=product name=products}
<li class="ajax_block_product bordercolor">
 <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home-list')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="200" height="200"{/if} /></a>
 <div class="center_block">
  <div class="product_flags">
{if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}!</span>{/if}
{if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}{if ($product.allow_oosp || $product.quantity > 0)}<span class="availability bordercolor">{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}<span class="availability bordercolor">{l s='Product available with different options'}</span>{else}<span class="availability bordercolor">{l s='Out of stock'}</span>{/if}</span>{/if}
{if isset($product.online_only) && $product.online_only}<span class="online_only bordercolor">{l s='Online only!'}</span>{/if}
  </div>
  <h3><a class="product_link" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h3>
  <p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:400:'...'|strip_tags:'UTF-8'}</a></p>
 </div>					
 <div class="right_block bordercolor">
  {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span>
  {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span>
  {/if}
  {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if}
  {/if}
  {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
{if ($product.allow_oosp || $product.quantity > 0)}
 <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a>
{else}
 <span class="exclusive">{l s='Add to cart'}</span>
{/if}
  {/if}
<div>   <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a></div>
  {if isset($comparator_max_item) && $comparator_max_item}
<p class="compare checkbox"><input type="checkbox" class="comparator" id="comparator_item_{$product.id_product}" value="comparator_item_{$product.id_product}" {if isset($compareProducts) && in_array($product.id_product, $compareProducts)}checked{/if}/> <label for="comparator_item_{$product.id_product}">{l s='Select to compare'}</label></p>
  {/if}  
 </div>
</li>
{/foreach}
</ul>
</div>
{/if}

 

Habe bei beiden Dateien mal das -list rausgenommen, aber geht nicht so... :-(

 

MFG marc

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

deine img links überarbeiten zu

<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} /></a>

 

einfach das home-list durch home ersetzen bei dem $link->getImageLink

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...