Jump to content
xt:Commerce Community Forum

bestand anzeigen in der product_listing


otti_mania

Recommended Posts

Hallo,

ich hab mich jetzt wund gesucht und nichts gefunden ;)

also:

ich würde gerne den Bestand eines Artikels in der product_listing_v1.html unter dem Artikelbezeichnungslink anzeigen lassen!

habe dafür auch schon die TPL Datei angepasst:

{config_load file="$language/lang_$language.conf" section="index"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td class="contentsTopics">{$CATEGORIES_NAME}</td>
<td align="right"> </td>
</tr>
<tr valign="top">
<td class="contentsTopics">{$CATEGORIES_HEADING_TITLE}</td>
<td align="right"> </td>
</tr>

</table>
{if $CATEGORIES_DESCRIPTION}<br />
{$CATEGORIES_DESCRIPTION}{/if}<br />{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}" alt="{$CATEGORIES_NAME}" />
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="border-bottom: 1px solid; border-color: #000000;"> </td>
</tr>
</table>
{/if}
{if $MANUFACTURER_DROPDOWN}<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" align="right"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" align="right">{#text_show#} </td>
<td class="main" align="right">{$MANUFACTURER_DROPDOWN}</td>
</tr>
</table> </td>
</tr>
</table>
<br />
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-top: 2px solid; border-color: #d4d4d4;">
{foreach name=aussen item=module_data from=$module_content}
<tr>
<td rowspan="2" style="border-bottom: 1px solid; border-color: #cccccc;"> {if $module_data.PRODUCTS_IMAGE!=''}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.PRODUCTS_NAME}" /></a>{/if}
{if $module_data.PRODUCTS_FSK18=='true'}<br /><img src="{$tpl_path}img/fsk18.gif" alt="" />{/if}</td>
<td align="left" class="main"><a href="{$module_data.PRODUCTS_LINK}"><strong>{$module_data.PRODUCTS_NAME}</strong></a></td>
</tr>
<tr>

<td align="left" class="main" style="border-bottom: 1px solid; border-color: #cccccc;">{$module_data.PRODUCTS_SHORT_DESCRIPTION} <br />
{$PRODUCTS_QUANTITY}
<br />
<strong>{$module_data.PRODUCTS_PRICE} </strong><br />
{$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK}
{if $module_data.PRODUCTS_VPE}{$module_data.PRODUCTS_VPE}{/if}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right"><table width="200" border="0">
<tr>
<td align="right">{if $module_data.SHIPPING_NAME}
<table width="200" border="0" cellpadding="0" cellspacing="0">
<tr valign="middle">
<td class="main">{#text_shippingtime#}</td>
{if $module_data.SHIPPING_IMAGE}
<td><img src="{$module_data.SHIPPING_IMAGE}" alt="{$module_data.SHIPPING_NAME}" /></td>
{/if}
<td class="main">{$module_data.SHIPPING_NAME}</td>
</tr>
</table>
{/if}
{$module_data.BUTTON_BUY_NOW}</td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>{$NAVIGATION}</td>
</tr>
</table>[/HTML]

Nun habe ichauch schon herausgefunden das in der product_listing_v1.html der Platzhalter {$PRODUCTS_QUANTITY} nicht interpretiert wird!

und genau das ist meine Frage:

wie und wo muss ich was machen damit er interpretiert wird?

[b][color=red]Ich möchte keine Ampel haben sondern wirklich die Zahl der noch verfügbaren Artikel![/color][/b]

[color=black][/color]

Ich hoffe mir kann hier jemand helfen.

Gruß

Otti

Link to comment
Share on other sites

Hat denn keiner erbarmen und kann mir schnell helfen?

Wie schnell willst Du's denn noch? :confused:;):mad:

Also ehrlich, hier nach drei Stunden schon nörgeln...

Also ich hab' leider grad eigentlich keine Zeit für Dich!

Trotzdem versuche mal

{if $module_data.PRODUCTS_QUANTITY}

{$module_data.PRODUCTS_QUANTITY}

{/if}

Link to comment
Share on other sites

Danke! und sorry ich weiss ich bin was ungeduldig :)

nein das funktioniert auch nicht das problem ist ja nicht der platzhalter sondern eher die tatsache das er nicht definiert ist muss ich nicht irgendwas anpassen das er diesesn Platzhalter überhaupt erst intapretiert?

hat noch wer ne idee?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...