#1 (permalink)  
Alt 02.11.2005, 12:21
 
Registriert seit: 12.10.2005
Beiträge: 1
Standard

Hallo zusammen!

Ich m?chte gerne das die Artikel/Attribute wie unten auf dem Bild in meinem Shop sind. Das Bild stammt von einem xtc-shop, also muss es ja m?glich sein. Habe schon gesucht ohne ende hier im Forum. Kann mir jemand helfen, bitte???

Gru?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 02.11.2005, 13:50
 
Registriert seit: 10.06.2004
Beiträge: 229
Standard

ich versuche so was ?hnliches zu realisieren wenn es mir gelingt werde ich auch hier posten.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 03.11.2005, 16:02
 
Registriert seit: 10.06.2004
Beiträge: 229
Standard

Zitat:
{if $options!=''}

<table id="product_options" width="100%" border="0" cellpadding="5" cellspacing="0">
{foreach name=outer item=options_data from=$options}
<tr>
<td style="border-bottom: 1px solid;" colspan="5">{$options_data.NAME}:</td>
</tr>
{php}
$count=0;
{/php}
{foreach key=key_data item=item_data from=$options_data.DATA}
<tr class="{cycle values="tableListingI,tableListingII"}">
<td class="product_options_rdbuttons">
{php}
$count++;
if ($count==1) {
{/php}
<input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}" checked="checked" />
{php}
} else {
{/php}
<input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}" />
{php}
}
{/php} </td>
<td nowrap="nowrap" class="product_options_text">{$item_data.TEXT}
</td>
<td nowrap="nowrap"><span class="product_options_art_nr">ArtNr.: {$item_data.MODEL}</span></td>
<td align="right" class="product_options_full_price">{if $item_data.PRICE}{$item_data.FULL_PRICE}{/if}</td>
<td align="right" class="product_options_full_price">{$ADD_QTY} {$ADD_CART_BUTTON}</td>
</tr>
{/foreach}
{/foreach}
</table>
{/if}
{$ADD_QTY} {$ADD_CART_BUTTON}
diese zwei smarty tags wird leider nicht angezeigt.
product_info.php
product_attributes.php
ich habe ein wenig damit experimentiert.
leider ist es mir nicht gelungen.
hat jemand eine idee wie man das besser l?sen kann.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 16.05.2008, 10:12
Neuer Benutzer
 
Registriert seit: 01.10.2007
Beiträge: 20
Standard

Habt ihr eine Lösung gefunden? Ich suche dieselbe Darstellung (gleichzeitige Auswahl von Produktanzahl in verschiedenen Produktvarianten)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 12.11.2008, 19:57
Neuer Benutzer
 
Registriert seit: 12.11.2008
Beiträge: 5
Standard table_listing?

Hallo zusammen,
ich versuche auch genau das oben beschriebene umzusetzen,
hab aber leider noch keinen Ansatz...

Seit ihr weitergekommen?

Wenn ich etwas herausfinde, poste ich es gleich rein,
vielen Dank im voraus und viele Grüße!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 12.11.2008, 22:19
Neuer Benutzer
 
Registriert seit: 12.11.2008
Beiträge: 5
Standard

Hallo nochmal, also wen es interessiert, ich hab das so gelöst:
Resultat siehe pic ;-)



1.
product_attributes.php, z.47
Sql Abfrage um pa.options_values_weight erweitern, also

PHP-Code:
.
.
.
   
pa.options_values_price,
                                                         
pa.price_prefix,
                                                         
pa.attributes_stock,
                                                         
pa.attributes_model,    
                                                         
pa.options_values_weight                                                     
                                                         from 
".TABLE_PRODUCTS_ATTRIBUTES." pa,
                                                         
".TABLE_PRODUCTS_OPTIONS_VALUES." pov
.
.


in Zeile 73 erweitern um


PHP-Code:
 'WEIGHT' => $xtPrice->xtcGetWeightFormat($products_options['options_values_weight']) 
Wenn man nichts anzeigen lassen will wo kein Gewicht vorhanden ist, kann man ab Z.81 ergänzen:

PHP-Code:
if($products_options['options_values_weight']==0){
                  unset (
$products_options_data[$row]['DATA'][$col]['WEIGHT']);                
                } 
Achtung:
Hier habe ich die Klasse xtcPrice.php um eine Funktion erweitert die noch benötigt wird, also in xtcPrice.php

PHP-Code:
function xtcGetWeightFormat($pWeight){
      
$splitPos strpos $pWeight'.' )+1;
      if(
$splitPos>0){
      
          if(
$pWeight 1){
            
// 1 Gr.
           // $ret = $this->xtcGetGrFormat($pWeight, $splitPos);
          
$ret =  ($pWeight*1000).' Gr.';
         }else{
            
$gr $this->xtcGetGr($pWeight$splitPos);
            
            if(
$gr>0){
            
// 1,xx Kg.
             
$ret =substr $pWeight, ($splitPos 2) ).' Kg.';
            }else{
             
// 1 Kg.
             
$ret substr $pWeight, ($splitPos -1) ).' Kg.';
            }
        }
      }else{
        
$ret $pWeight.' Kg.';
      }
      return 
$ret;
    }
     
    
    function 
xtcGetGr($pWeight$splitPos){
      if(
strlen($pWeight)>2){
       return 
substr $pWeight$splitPos );
      }else{
       return 
'0';
      }
    } 
Hoffe das hilft jmd. weiter - ist vielleicht keine Elegante Lösung (Funktion für Gewicht in "xtcPrice" usw.) - aber es funzt und nicht Elegant ist vielleicht besser als keine Lsg. - hab nämlich sonst nix im Internet gefunden...

Grüße
Angehängte Grafiken
Dateityp: jpg xtcommerce_0.jpg (6,1 KB, 17x aufgerufen)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 12.11.2008, 22:33
Neuer Benutzer
 
Registriert seit: 12.11.2008
Beiträge: 5
Standard table_listing.html

Das ist übrigens die table_listing.html


PHP-Code:
{if $options!=''}

<
table id="product_options" width="100%" border="0" cellpadding="5" cellspacing="0">
{foreach 
name=outer item=options_data from=$options
<
tr>
<
td style="border-bottom: 1px solid;" colspan="5">{$options_data.NAME}:</td>
</
tr>
{
php}
$count=0;
{/
php}
{foreach 
key=key_data item=item_data from=$options_data.DATA}
<
tr class="{cycle values="tableListingI,tableListingII"}">
<
td class="product_options_rdbuttons">
{
php}
$count++;
if (
$count==1) { 
{/
php}
<
input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}checked="checked" />
{
php}
} else {
{/
php}
<
input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}/>
{
php}
}
{/
php} </td>
<
td nowrap="nowrap" class="product_options_text">{$item_data.TEXT}
</
td>
<
td nowrap="nowrap"><span class="product_options_art_nr">ArtNr.:{$item_data.MODEL}</span></td>
<
td align="right" class="product_options_full_price">{$item_data.WEIGHT}</td>
<
td align="right" class="product_options_full_price">{$item_data.FULL_PRICE}</td>
</
tr>
{/foreach}
{/foreach} 
</
table>
{/if} 
Hier ist dann $item_data.WEIGHT verfügbar
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
tablelisting

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 04:55 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand