oldbear Posted January 15, 2011 Report Share Posted January 15, 2011 dann poste mal Dein unverändertes Original-Template Link to comment Share on other sites More sharing options...
Kaypax Posted January 15, 2011 Report Share Posted January 15, 2011 Hallo Oldbear, hier mein Original Quelltext! {$categories} {if $product_listing} {if $heading_text}<h1>{$heading_text}</h1>{/if} {if $PRODUCTS_DROPDOWN}{$PRODUCTS_DROPDOWN}{/if} {if $sort_dropdown.options} <div class="products_sort"> {form type=form name=sort_dropdown action='dynamic' method=get} {form type=hidden name=page value='categorie'} {form type=hidden name=cat value=$current_category_id} {form type=select name=sorting value=$sort_dropdown.options default='' onchange='this.form.submit();'} {form type=formend} </div> {/if} {if $MANUFACTURER_DROPDOWN} <div class="products_sort"> {if $MANUFACTURER_DROPDOWN}{$MANUFACTURER_DROPDOWN}{/if} </div> {/if} {if $manufacturer} {$manufacturer.MANUFACTURER.manufacturers_description} {/if} <div class="hrproductpreview"></div> {foreach name=aussen item=module_data from=$product_listing} {php} $col++; {/php} <div class="listingbox"> <div class="listing" align="center"><a href="{$module_data.products_link}">{$module_data.products_name}</a></div> <div align="center"> {if $module_data.products_image!=''} <div id="listing_image"><a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_thumb class=productImageBorder alt=$module_data.products_name}</a></div> {/if}<br><br> {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'} <div id="listingprice">{$module_data.products_price.formated}</div> <p class="taxandshippinginfo">{$module_data.products_tax_info.tax_desc}{if $module_data.products_shipping_link}<br /> <a href="{$module_data.products_shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if}</p> {if $module_data.base_price}<p class="vpe">{$module_data.base_price.price} {txt key=TEXT_SHIPPING_BASE_PER} {$module_data.base_price.vpe.name}</p>{/if} {/if} {if $module_data.allow_add_cart eq 'true'} {form type=form name=product action='dynamic' link_params=getParams method=post} {form type=hidden name=action value=add_product} {form type=hidden name=product value=$module_data.products_id} <table style="background:#E2E2E2;padding:8px" border="0" cellspacing="0" cellpadding="2"> <tr> <td align="right" colspan="2"><a href="{$module_data.products_link}"><img src="{$tpl_url_path}img/buttons/de/button_details.gif" /></a><br /><img height="5" width="1" src="{$tpl_url_path}img/pixel_trans.gif" /><br /></td> </tr> <tr> <td style="width:100%">{form type=text name=qty value=1 style='width:20px;'}</td> <td>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</td> </tr> </table> {form type=formend} {/if}</div> </div> {php} if ($col>=3) { $col=0; echo ''; } {/php} {/foreach} <div style="clear: both;"></div> <div id="NAVIGATION"> <div class="COUNT">{$NAVIGATION_COUNT}</div> <div class="PAGES">{$NAVIGATION_PAGES}</div> </div>{/if} {$error_listing} Link to comment Share on other sites More sharing options...
oldbear Posted January 15, 2011 Report Share Posted January 15, 2011 erstmal fehlen hier zwei schliessende if's; so sollte es funktionieren ( Abschnitt ): {if $module_data.allow_add_cart eq 'true'} {form type=form name=product action='dynamic' link_params=getParams method=post} {form type=hidden name=action value=add_product} {form type=hidden name=product value=$module_data.products_id} <table style="background:#E2E2E2;padding:8px" border="0" cellspacing="0" cellpadding="2"> <tr> <td align="right" colspan="2"><a href="{$module_data.products_link}"><img src="{$tpl_url_path}img/buttons/de/button_details.gif" /></a><br /><img height="5" width="1" src="{$tpl_url_path}img/pixel_trans.gif" /><br /></td> </tr> <tr> <td style="width:100%">{form type=text name=qty value=1 style='width:20px;'}</td> <td>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</td> </tr> </table> {form type=formend} {else} {if $module_data.products_master_flag == '1'} <table style="background:#E2E2E2;padding:8px" border="0" cellspacing="0" cellpadding="2"> <tr> <a href="{$module_data.products_link}"> {button text=$smarty.const.BUTTON_DETAILS file='button_details.gif' type='img' btn_template='tpl_button_1.gif'} </a> </tr> </table> {/if} {/if} [/HTML] Die Einrückungen machen das ( hoffich ) verständlich ... Grüsse Link to comment Share on other sites More sharing options...
Kaypax Posted January 15, 2011 Report Share Posted January 15, 2011 Hallo Oldbear, vielen Dank für die Mühe. Jetzt klappt das soweit. Ich habe jetzt noch einen zweiten Button dazu eingefügt. Bei Artikeln ohne Master/ Slave Funktion ist der Detail und der Warenkorb Button grau Hinterlegt also mit background:#E2E2E2 Bei den beiden neuen Buttons fehlt das noch bzw. wird es nicht richtig angezeigt. Siehe hierzu das Bild im Anhang. Der Quelltext ist nun dieser: {if $module_data.allow_add_cart eq 'true'} {form type=form name=product action='dynamic' link_params=getParams method=post} {form type=hidden name=action value=add_product} {form type=hidden name=product value=$module_data.products_id} <table style="background:#E2E2E2;padding:8px" border="0" cellspacing="0" cellpadding="2"> <tr> <td align="right" colspan="2"><a href="{$module_data.products_link}"><img src="{$tpl_url_path}img/buttons/de/button_details.gif" /></a><br /><img height="5" width="1" src="{$tpl_url_path}img/pixel_trans.gif" /><br /></td> </tr> <tr> <td style="width:100%">{form type=text name=qty value=1 style='width:20px;'}</td> <td>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</td> </tr> </table> {form type=formend} {else} {if $module_data.products_master_flag == '1'} <table style="background:#E2E2E2;padding:8px" border="0" cellspacing="0" cellpadding="2"> <tr> <a href="{$module_data.products_link}"> {button text=$smarty.const.BUTTON_DETAILS file='button_details.gif' type='img' btn_template='tpl_button_1.gif'} </a> <table style="background:#E2E2E2;padding:8px" border="0" cellspacing="0" cellpadding="2"> <a href="{$module_data.products_link}"> {button text=$smarty.const.button_history file='button_history.gif' type='img' btn_template='tpl_button_1.gif'} </a> </tr> </table> {/if} {/if} [/HTML] Vorab schon mal vielen Dank.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.