Konair23 Posted June 22, 2009 Report Share Posted June 22, 2009 Hallo, ist es möglich ein Bilder im Warenkorb zu integrieren? Leider erscheint das Bild nicht. Mein Code ist: <td class="image" valign="middle" align="center"> <a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_thumb class=productImageBorder alt=$module_data.products_name}</a> Hat das vielleicht jemand integriert und könnte mir den Code nennen? Wäre super! Grüße! Konair Link to comment Share on other sites More sharing options...
eurogard Posted June 22, 2009 Report Share Posted June 22, 2009 versuch es mal mit. <td class="image" valign="middle" align="center"> <a href="{$data.products_link}">{img img=$data.products_image type=m_thumb class=productImageBorder alt=$data.products_name}</a>[/php] Link to comment Share on other sites More sharing options...
Konair23 Posted June 22, 2009 Author Report Share Posted June 22, 2009 Super, funktioniert!! Vielen Dank!! Bin dir wirklich sehr dankbar!! Link to comment Share on other sites More sharing options...
joecavall Posted June 22, 2009 Report Share Posted June 22, 2009 ähhh könnte mir jemand von euch sagen an welcher stelle dieser codesnip eingebaut werden muss ? (bzw. welche datei ?) Link to comment Share on other sites More sharing options...
Konair23 Posted June 23, 2009 Author Report Share Posted June 23, 2009 In der Datei cart.html in die gewünschte Zeile bzw. auch Spalte! Link to comment Share on other sites More sharing options...
Jetima Posted June 23, 2009 Report Share Posted June 23, 2009 Wo finde ich die Cart.html? Link to comment Share on other sites More sharing options...
amilo Posted June 23, 2009 Report Share Posted June 23, 2009 templates/deintemplate/xtcore/pages MfG. Hansen Link to comment Share on other sites More sharing options...
Jetima Posted June 23, 2009 Report Share Posted June 23, 2009 Gut das klappt jetzt schon mal. Danke. Nur jetzt muss ich noch heraus finden wie ich das mache das von allen Artikeln im Warenkorb bilder gezeigt werden. Jemand eine Hilfe wo ich den html Code hin machen muss? Vielen Dank Link to comment Share on other sites More sharing options...
dukie6666 Posted June 23, 2009 Report Share Posted June 23, 2009 na innerhalb der Produktschleife: {foreach name=aussen item=data from=$cart_data}....{/foreach}[/CODE] Link to comment Share on other sites More sharing options...
Jetima Posted June 23, 2009 Report Share Posted June 23, 2009 <h1>{txt key=TEXT_CART}</h1> {if $show_cart_content == true} {$message} {form type=form name=cart action='dynamic' link_params=getParams method=post} {form type=hidden name=action value=update_product} <div class="greybox3"> <table class="tabledetails" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr class="headerrow"> <td class="left">{txt key=TEXT_QTY}</td> <td class="left">{txt key=TEXT_ARTICLE}</td> <td class="right">{txt key=TEXT_SINGLE_PRICE}</td> <td class="right">{txt key=TEXT_TOTAL_PRICE}</td> <td class="right">{txt key=TEXT_REMOVE}</td> </tr> {foreach name=aussen item=data from=$cart_data} <td class="image" valign="middle" align="center"> <a href="{$data.products_link}">{img img=$data.products_image type=m_thumb class=productImageBorder alt=$data.products_name}</a> <tr class="{cycle values="contentrow1,contentrow2"}"> <td class="left">{form type=text name=qty[] value=$data.products_quantity style='width:30px;'}</td> <td class="left"> <strong><a href="{$data.products_link}">{$data.products_name}</a></strong> {if $data.shipping_status}<br /><p class="shippingtime">{txt key=TEXT_SHIPPING_STATUS} {$data.shipping_status}</p>{/if} <td class="right">{$data.products_price.formated}</td> <td class="right">{$data.products_final_price.formated}</td> <td class="right">{form type=hidden name=products_key[] value=$data.products_key}{form type=checkbox name=cart_delete[] value=$data.products_key}</td> </tr> {$data.products_information} {/foreach} <td class="image" valign="middle" align="center"> <a href="{$data.products_link}">{img img=$data.products_image type=m_thumb class=productImageBorder alt=$data.products_name}</a> <tr> <td colspan="5" class="subtotal"> {hook key=cart_total_tpl} {foreach name=aussen item=tax_data from=$cart_tax} {txt key=TEXT_TAX} {$tax_data.tax_key}%: {$tax_data.tax_value.formated}<br /> {/foreach} <strong>{txt key=TEXT_SUB_TOTAL}:{$cart_total}</strong> {if $discount} <br />{txt key=TEXT_DISCOUNT_MADE} : {$discount.formated}<br /> {/if} {if $shipping_link}<br /><a href="{$shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if} {if $cart_total_weight > 0}<br />({txt key=TEXT_PRODUCTS_WEIGHT}: {$cart_total_weight} KG){/if} {hook key=cart_total_bottom} </td> </tr> </table> </div> <p>{button text=$smarty.const.BUTTON_BACK file='back.gif'} {button text=$smarty.const.BUTTON_UPDATE file='update.gif' type='form'} <a href="{link page='checkout' paction='shipping' conn=SSL}">{button text=$smarty.const.BUTTON_CHECKOUT file='checkout.gif'}</a> {hook key=cart_tpl_form}</p> {form type=formend} {else} {$message} {/if} {hook key=cart_bottom} So Sieht jetzt meine HTML aus. Allerdings habe ich bei einem Artikeldas Bild jetzt doppelt drin. Wo liegt der Fehler? Vielen Dank Link to comment Share on other sites More sharing options...
Konair23 Posted June 23, 2009 Author Report Share Posted June 23, 2009 <h1>{txt key=TEXT_CART}</h1> {if $show_cart_content == true} {$message} {form type=form name=cart action='dynamic' link_params=getParams method=post} {form type=hidden name=action value=update_product} <div class="greybox3"> <table class="tabledetails" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr class="headerrow"> <td class="left">{txt key=TEXT_QTY}</td> <td class="left">{txt key=TEXT_ARTICLE}</td> <td class="right">{txt key=TEXT_SINGLE_PRICE}</td> <td class="right">{txt key=TEXT_TOTAL_PRICE}</td> <td class="right">{txt key=TEXT_REMOVE}</td> </tr> {foreach name=aussen item=data from=$cart_data} <td class="image" valign="middle" align="center"> <a href="{$data.products_link}">{img img=$data.products_image type=m_thumb class=productImageBorder alt=$data.products_name}</a> <tr class="{cycle values="contentrow1,contentrow2"}"> <td class="left">{form type=text name=qty[] value=$data.products_quantity style='width:30px;'}</td> <td class="left"> <strong><a href="{$data.products_link}">{$data.products_name} </a></strong> {if $data.shipping_status}<br /><p class="shippingtime">{txt key=TEXT_SHIPPING_STATUS} {$data.shipping_sta tus}</p>{/if} <td class="right">{$data.products_price.formated}</td> <td class="right">{$data.products_final_price.formated }</td> <td class="right">{form type=hidden name=products_key[] value=$data.products_key}{form type=checkbox name=cart_delete[] value=$data.products_key}</td> </tr> {$data.products_information} {/foreach} <tr> <td colspan="5" class="subtotal"> {hook key=cart_total_tpl} {foreach name=aussen item=tax_data from=$cart_tax} {txt key=TEXT_TAX} {$tax_data.tax_key}%: {$tax_data.tax_value.formated}<br /> {/foreach} <strong>{txt key=TEXT_SUB_TOTAL}:{$cart_total}</strong> {if $discount} <br />{txt key=TEXT_DISCOUNT_MADE} : {$discount.formated}<br /> {/if} {if $shipping_link}<br /><a href="{$shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if} {if $cart_total_weight > 0}<br />({txt key=TEXT_PRODUCTS_WEIGHT}: {$cart_total_weight} KG){/if} {hook key=cart_total_bottom} </td> </tr> </table> </div> <p>{button text=$smarty.const.BUTTON_BACK file='back.gif'} {button text=$smarty.const.BUTTON_UPDATE file='update.gif' type='form'} <a href="{link page='checkout' paction='shipping' conn=SSL}">{button text=$smarty.const.BUTTON_CHECKOUT file='checkout.gif'}</a> {hook key=cart_tpl_form}</p> {form type=formend} {else} {$message} {/if} {hook key=cart_bottom} probier das mal! Link to comment Share on other sites More sharing options...
Jetima Posted June 23, 2009 Report Share Posted June 23, 2009 Super vielen Dank! Jetzt habe ich es von der Anzahl schon mal so wie ich es will. Leider hab ich von dem Html nicht die Ahnung. Bin froh das es das Forum hier gibt. Noch eine Frage habe ich.. ist es auch möglich das Bild mittig zwischen Artikelname und Einzelpreis zu bekommen? Wenn ja wie schwierig wäre das? Link to comment Share on other sites More sharing options...
Konair23 Posted June 23, 2009 Author Report Share Posted June 23, 2009 {foreach name=aussen item=data from=$cart_data} <tr class="{cycle values="contentrow1,contentrow2"}"> <td class="left">{form type=text name=qty[] value=$data.products_quantity style='width:30px;'}</td> <td class="left"> <strong><a href="{$data.products_link}">{$data.products_name} </a></strong> <td class="image" valign="middle" align="center"> <a href="{$data.products_link}">{img img=$data.products_image type=m_thumb class=productImageBorder alt=$data.products_name}</a> {if $data.shipping_status}<br /><p class="shippingtime">{txt key=TEXT_SHIPPING_STATUS} {$data.shipping_sta tus}</p>{/if} <td class="right">{$data.products_price.formated}</td> <td class="right">{$data.products_final_price.formated }</td> <td class="right">{form type=hidden name=products_key[] value=$data.products_key}{form type=checkbox name=cart_delete[] value=$data.products_key}</td> </tr> {$data.products_information} {/foreach} aber ich glaube deine 1. Zeile (also Überschriften) passen garnicht mit der 2. Zeile überein?!? Morgen guck ich nochmal drüber. Link to comment Share on other sites More sharing options...
Jetima Posted June 23, 2009 Report Share Posted June 23, 2009 Danke Konair23, die Richtung stimmt, allerdings ist jetzt der Einzelpreis verschwunden bzw. das Bild steht drüber. Dafür ne Lösung? Vielen Dank PS. In meinem nächsten Leben werde ich ein HTML'er Link to comment Share on other sites More sharing options...
Konair23 Posted June 24, 2009 Author Report Share Posted June 24, 2009 <h1>{txt key=TEXT_CART}</h1> {if $show_cart_content == true} {$message} {form type=form name=cart action='dynamic' link_params=getParams method=post} {form type=hidden name=action value=update_product} <div class="greybox3"> <table class="tabledetails" width="100%" border="0" cellspacing="0" cellpadding="6"> <tr class="headerrow"> <td class="left">{txt key=TEXT_QTY}</td> <td class="left">{txt key=TEXT_ARTICLE}</td> <td class="center">{txt key=Bild}</td> <td class="right">{txt key=TEXT_SINGLE_PRICE}</td> <td class="right">{txt key=TEXT_TOTAL_PRICE}</td> <td class="right">{txt key=TEXT_REMOVE}</td> </tr> {foreach name=aussen item=data from=$cart_data} <tr class="{cycle values="contentrow1,contentrow2"}"> <td class="left">{form type=text name=qty[] value=$data.products_quantity style='width:30px;'}</td> <td class="left"> <strong><a href="{$data.products_link}">{$data.products_name} </a></strong> <td class="image" valign="middle" align="center"> <a href="{$data.products_link}">{img img=$data.products_image type=m_thumb class=productImageBorder alt=$data.products_name}</a> {if $data.shipping_status}<br /><p class="shippingtime">{txt key=TEXT_SHIPPING_STATUS} {$data.shipping_sta tus}</p>{/if} <td class="right">{$data.products_price.formated}</td> <td class="right">{$data.products_final_price.formated }</td> <td class="right">{form type=hidden name=products_key[] value=$data.products_key}{form type=checkbox name=cart_delete[] value=$data.products_key}</td> </tr> {$data.products_information} {/foreach} <tr> <td colspan="5" class="subtotal"> {hook key=cart_total_tpl} {foreach name=aussen item=tax_data from=$cart_tax} {txt key=TEXT_TAX} {$tax_data.tax_key}%: {$tax_data.tax_value.formated}<br /> {/foreach} <strong>{txt key=TEXT_SUB_TOTAL}:{$cart_total}</strong> {if $discount} <br />{txt key=TEXT_DISCOUNT_MADE} : {$discount.formated}<br /> {/if} {if $shipping_link}<br /><a href="{$shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if} {if $cart_total_weight > 0}<br />({txt key=TEXT_PRODUCTS_WEIGHT}: {$cart_total_weight} KG){/if} {hook key=cart_total_bottom} </td> </tr> </table> </div> <p>{button text=$smarty.const.BUTTON_BACK file='back.gif'} {button text=$smarty.const.BUTTON_UPDATE file='update.gif' type='form'} <a href="{link page='checkout' paction='shipping' conn=SSL}">{button text=$smarty.const.BUTTON_CHECKOUT file='checkout.gif'}</a> {hook key=cart_tpl_form}</p> {form type=formend} {else} {$message} {/if} {hook key=cart_bottom} Link to comment Share on other sites More sharing options...
Jetima Posted June 24, 2009 Report Share Posted June 24, 2009 Vielen Dank, das passt jetzt. Bild drüber und genau mittig. Dankeschön!!! Jetzt wieder ne Frage...ja ich nerve.... hoffe das dis nix mit html zu tun hat... Jetzt steht unter dem Bild im Warenkorb Lieferzeit, es wird nur nichts angezeigt. Woran kann das liegen? Link to comment Share on other sites More sharing options...
Konair23 Posted June 25, 2009 Author Report Share Posted June 25, 2009 könnte evtl. an den Einstellungen des Lagerbestandes liegen. poste mal ein Bild bitte. Link to comment Share on other sites More sharing options...
yumwebdesign Posted June 25, 2009 Report Share Posted June 25, 2009 Nee, {$data.shipping_stat us} da ist einfach eine Leerstelle drin. Das ist alles. Informativer Thread, danke. Link to comment Share on other sites More sharing options...
Jetima Posted June 26, 2009 Report Share Posted June 26, 2009 Danke Ihr seit Weltklasse!!! Jetzt passt alles!! Vielen Vielen Dank!! Link to comment Share on other sites More sharing options...
Jimbojackson Posted June 23, 2010 Report Share Posted June 23, 2010 super thread! danke an alle die helfen! ich hätte auch eine Frage: Ist es möglich das Bild des jeweiligen Master Artikels zu zeigen? Ich habe im Shop keine Bilder für die Slave Artikel da diese nur über die Master Artikel (für Größen) verwendet werden. Und zweite Frage wäre: Wie komme ich im Warenkorb an den Master-Link? Vielen Dank schon mal! Link to comment Share on other sites More sharing options...
rofrey Posted September 15, 2011 Report Share Posted September 15, 2011 Gibt es zu diesem Thema schon eine Lösung/Code?? Master/Slave Bilder im Shop Fronted bei Optionen anzuzeigen ? super thread! danke an alle die helfen! ich hätte auch eine Frage: Ist es möglich das Bild des jeweiligen Master Artikels zu zeigen? Ich habe im Shop keine Bilder für die Slave Artikel da diese nur über die Master Artikel (für Größen) verwendet werden. Und zweite Frage wäre: Wie komme ich im Warenkorb an den Master-Link? Vielen Dank schon mal! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.