|
||||
|
schau einfach in die php datei die die variablen an das template ?bergibt, dort findest du auch die variablen namen f?r gesamtpreis uns stk.
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
||||
|
na die php datei der box.
also box_cart.php
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
|||
|
die einfachste variante ohne was in den php datein machen zu m?ssen
w?hre einfach nur den wert anzeigen lassen welcher sich im warenkorb befindet ist eigentlich nen guter kompromiss wenn man kein php kann :love: also einfach im templates ordner die datei box_cart.html aufrufen bei mir local befindet sie sich hier c:\wamp\Apache2\htdocs\xtc\templates\xtc2\boxes\bo x_cart.html und den kompletten code mit den hier tauschen Code:
{config_load file="$language/lang_$language.conf" section="boxes"}
{if $deny_cart neq 'true'}
{if $empty=='false'}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="14" class="infoBoxHeading"><img src="{$tpl_path}img/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">{#heading_cart#}<a href="{$LINK_CART}"><font color="#FF0000">{#text_more#}</font></a></font></td>
<td height="14" class="infoBoxHeading" nowrap><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
<tr>
<td><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td align="left" class="boxText" style="border-bottom: 1px solid; border-color: #cccccc;"> <div align="right"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">{if
$DISCOUNT}<font color="#FF0000">{#text_discount#}{$DISCOUNT}</font><br>
{/if} {#text_total#}{$TOTAL}</font></div></td>
</tr>
<tr>
<td><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
{else}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="14" class="infoBoxHeading"><img src="{$tpl_path}img/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
<td width="100%" height="14" class="infoBoxHeading"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">{#heading_cart#}</font></td>
<td height="14" class="infoBoxHeading" nowrap><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
<tr>
<td bgcolor="f1f1f1" class="main"><div align="center">{#text_empty_cart#}</div></td>
</tr>
</table></td>
</tr>
</table>
{/if}
{if $ACTIVATE_GIFT=='true'}
<!--GV Code Start-->
{if $GV_AMOUNT neq ''}
<table cellpadding="0" width="100%" cellspacing="0" border="0">
<tr>
<td><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td align="center" class="smalltext">{#voucher_balance#}</td>
</tr>
<tr>
<td bgcolor="#FCD4D4" align="center" class="smalltext" valign="bottom"><b>{$GV_AMOUNT}</b></td>
</tr>
</table>
<table cellpadding="0" width="100%" cellspacing="0" border="0">
<tr>
<td><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
</table>
{/if}
{if $COUPON_AMOUNT2 neq ''}
<table cellpadding="0" width="100%" cellspacing="0" border="0">
<tr>
<td><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td class="smalltext"><div align="center">{#voucher_redeemed#}
<br>
<b>{$COUPON_AMOUNT2}</b>
</div></td>
</tr>
</table>
{/if}
{if $COUPON_HELP_LINK neq ''}
<table cellpadding="0" width="100%" cellspacing="0" border="0">
<tr>
<td><img src="{$tpl_path}img/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
</tr>
<tr>
<td class="smalltext">{#cart_coupon#}</td><td class="smalltext" align="right" valign="bottom">{$COUPON_HELP_LINK}{#cart_coupon_info#}</a></td>
</tr>
</table>
{/if}
<!--GV Code End-->
{/if}
{else}
{/if}
habe aus den template nur nen parr zeilen code entfernt Zitat:
st: hoffe dat hilft weiter aber wie gesagt wei? jetz nicht ob der shop dadurch irgenwie negativ beienflusst wird ich hoffe mal nicht |
|
||||
|
man muss in php nix ?ndern. sondern nur die php datei ANSEHEN, dann sieht man die variable f?r die produktanzahl, die ist schon im system.
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
|||
|
Zitat:
oder ich habe tomaten auf den augen ich sch?tze mal das w?hre eher die shopping_cart.php im templateverzeichniss die daf?r zust?ndig istbefindet sich bei mir c:\wamp\Apache2\htdocs\xtc\templates\xtc2\source\b oxes\shopping_cart.php also gut versteckt aber zur variable die steht doch f?r die menge eigentlich schon im template {$products_data.QTY} das problem ist ja das f?r jedes weitere produkt nen array erzeugt wird glaube ich also braucht man schon php kenntisse damit man den script sagen kann nicht untereinander die produkte darstellen sondern z?hle nur die artikel zusammen und gebe die zahl aus aber das sind nur mutmassungen meinerseits h?nge n?mlich auch gerade bei den problem weil ich den warenkorb f?r das template was ich versprochen habe im header einbauen will und da soll dann halt nur zb 2 Artikel im Warenkorb Gesamtpreis: xxx € stehen aber dat bekommen wir auch noch irgenwie hin |
|
||||
|
Hallo Maniac,
danke f?r Deine Hilfe. Die Probleme, die Du beschreibst hatte ich auch bereits. Es gibt keine BOX_CART.PHP und in der Shopping_cart findet man zwar die Werte, die bereits im Template verwendet werden, aber keine Summe. {$products_data.QTY} funktioniert nur, wenn man es durch die Schleife laufen l??t. Als altem C++ Programmierer stellt es mir aber die Haare zu berge, wenn ich erst im Template eine Schleife laufen lassen muss, um die Summe raus zu bekommen. Vielleicht muss ich dann doch die Shopping_cart anpassen oder ich nehme einfach Deine L?sung. ich hatte gehofft, es gibt einen einfacheren bzw. "sauberen" Weg. Gruss und nochmals vielen Dank Morix. :grml: |
|
||||
|
Hey all.
ich hab eine L?sung gefunden. im template-Verzeichnis /boxes ist die box_cart.html zu ?ndern dort k?nnte sich f?r die Anzeige einer Kurzversion z.B. folgender Code befinden: Code:
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td>{#heading_cart#}</td>
</tr>
<tr>
<td>
{if $empty=='false'}
Derzeit befinden sich {$PRODUCTS} Produkt{if $PRODUCTS > 1}e{/if} im Warenkorb.<br/>
<b>{#text_total#}: {$TOTAL}</b>
{else}
{#text_empty_cart#}
{/if}
</td>
</tr>
</table>
|
![]() |
| Lesezeichen |
| Stichworte |
| kurzversion, warenkorb |
| Themen-Optionen | |
| Ansicht | |
|
|