jQuery UI - Tabs

Hi,

knarzer77 aka Jan hatte sich ja die Tabs gewünscht statt des Accordion.

Ich habe das nun mal umgesetz,a ber alles andere als sauber, also dies hier nur als Ansatz, ihr müsst das dann “nur” noch finetunen:

Ich habe hierfür die details.tpl angepasst, die products.tpl kopiert und verändert und dann als product-detail.tpl neu eingebunden.

Weiter ein bischen javagescribbe der oxid.js hinzugefügt und das wars auch schon.

Was noch zu tun wäre ist das finde-tuning:

[ul]
[li] Title kürzen (mit smarty über truncate)[/li]
[li] Die titles der eigentlichen boxen per css ausblenden, sonst sind die doppelt da[/li]
[li] per css das ganze gerade rücken[/ul][/li]Mit dem Code-Posten kämpfe ich noch, hab glaube ich habe noch nen bug drin, dass es als XSS erkannt wird oder so :wink: kommt gleich…[>> war wahrscheinlich zu lang]

Vielen Dank an der Stelle schon mal an “Klaus” denn ich hatte echt kein Bock hier manuell / dynamisch mit smarty so ne UL zu bauen

hier schon mal das Problemlose:

oxid.js (vorne anfügen)

[code type=“javascript”]
//jquery functions
var ul = $(’

‘).prependTo(’.tabs-container’);
$(’.tabs-container div.tab-container’).each(function() {
$(’

[li] [’ + $(‘strong.boxhead’, this).text() +
[/li] ‘](#’ + this.id + ')

').appendTo(ul);
}).parent().tabs();

$(function(){
// Tabs, tabify: media files, variants, reviews, current Product, tags. price alert
$(".tabs-container").tabs({
});
});

hi ich kämpf noch mit der formatierung…

hmm leeres Posting? Was willst du uns damit sagen?

Ah - nun ist was da.

wem geht das nicht so… ich hab heute den fehler gemacht und versucht was aus word hier reinzukopieren…

Erfüllst du Modul Wünsche? Ich hätte auch nen Wunsch, kann das aber definitv nicht selbst, da ich nur html und css kann, aber kein php.

http://www.oxid-esales.com/en/resources/forum/feature-anfragen/versand-packstation# :slight_smile:

war wol zuviel Text, ich werde das dann bei google code mit dazumachen, wenn das findetuning passt, wieder dann als paket

[code type=“smarty”]

[{ if $oView->getAttributes() }]

[b][{ oxmultilang ident="DETAILS_PERSPARAM_SPECIFICATION" }][/b]

	
	  [{foreach from=$oView->getAttributes() item=oAttr name=attribute}]
		  [{ $oAttr->title }]
			[{ $oAttr->value }]
		  
	  [{/foreach}]

[{/if}]

[{include file=“inc/media.tpl”}]

[{include file=“inc/tags.tpl”}]

[{if !$product->isParentNotBuyable()}]

[b][{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARM3" }][/b]

	[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARMMESSAGE" }]

	
	
		[{ $oViewConf->getHiddenSid() }]
		[{ $oViewConf->getNavFormParams() }]
		
		[{assign var="oCaptcha" value=$oView->getCaptcha() }]
		

	[{ oxmultilang ident="CONTACT_VERIFICATIONCODE" }]
		  [{ oxmultilang ident="DETAILS_PERSPARAM_EMAIL" }]
		  [{ oxmultilang ident="DETAILS_PERSPARAM_YOURPRICE" }]
		
			 [{if $oCaptcha->isImageVisible()}]
			   
			 [{else}]
			   [{$oCaptcha->getText()}]
			 [{/if}]
			
			
			
			getFPrice() }][{/if}][{/oxhasrights}]" size="20" maxlength="32">
			[{ $currency->sign}]

[{/if}]

[{if $oView->getVariantList() || $oView->drawParentUrl()}]

[b][{if $oView->drawParentUrl()}]
        [][{oxmultilang ident="INC_PRODUCT_VARIANTS_BACKTOMAINPRODUCT"|oxmultilangassign|cat:" "|cat:$oView->getParentName() }]]([{$oView->getParentUrl()})
    [{else}]
        [{oxmultilang ident="INC_PRODUCT_VARIANTS_VARIANTSELECTIONOF"|oxmultilangassign|cat:" `$product->oxarticles__oxtitle->value`" }]
    [{/if}][/b]


[{ if $oView->drawParentUrl()}]
  [{ oxmultilang ident="INC_PRODUCT_VARIANTS_OTHERVARIANTSOF" }] [{ $oView->getParentName() }]
  
[{/if}]

[{foreach from=$oView->getVariantList() name=variants item=variant_product}]

    [{if $smarty.foreach.variants.first}]
      [{assign var="details_variants_class" value="firstinlist"}]

    [{elseif $smarty.foreach.variants.last}]
      [{assign var="details_variants_class" value="lastinlist"}]
      
    [{else}]
      [{assign var="details_variants_class" value="inlist"}]
      
    [{/if}]

    [{$variants_head}]

    [{include file="inc/product.tpl" product=$variant_product size="thinest" altproduct=$product->getId() isfiltering=false class=$details_variants_class testid="Variant_"|cat:$variant_product->oxarticles__oxid->value}]

    [{assign var="details_variants_head" value=""}]

[{/foreach}]

[{/if}]

[b][{ oxmultilang ident="DETAILS_PERSPARAM_PRODUCTREVIEW" }][/b]

  [{ if $oxcmp_user }]
	
		
			[{ if $oView->canRate() }]
			[ul]

[li] [*] [url=[{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:]getActCatId() }]" onclick=“showReview(1);return false;” title=“1 [{ oxmultilang ident=“DETAILS_PERSPARAM_STAR” }]”>1[/li]
[li] [getActCatId() }]" onclick=“showReview(2);return false;” title=“2 [{ oxmultilang ident=“DETAILS_PERSPARAM_STARS” }]”>2]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)[/li]
[li] [getActCatId() }]" onclick=“showReview(3);return false;” title=“3 [{ oxmultilang ident=“DETAILS_PERSPARAM_STARS” }]”>3]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)[/li]
[li] [getActCatId() }]" onclick=“showReview(4);return false;” title=“4 [{ oxmultilang ident=“DETAILS_PERSPARAM_STARS” }]”>4]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)[/li]
[li] [getActCatId() }]" onclick=“showReview(5);return false;” title=“5 [{ oxmultilang ident=“DETAILS_PERSPARAM_STARS” }]”>5]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)[/ul][/li]
[{/if}]
[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]

	[getActCatId() }]" onclick="showReview();return false;">[{ oxmultilang ident="DETAILS_PERSPARAM_WRITEREVIEW" }]]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)
  [{else}]
	[getNavUrlParams() }]" class="fs10">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOWRITEREVIEW" }]]([{ $product->getLink()|oxaddparams:)
  [{/if}]

  [{if $oView->getReviews() }]
   [{foreach from=$reviews item=review name=ReviewsCounter}]

	
			[{ $review->oxuser__oxfname->value }] [{ oxmultilang ident="DETAILS_PERSPARAM_WRITES" }]
			[{ oxmultilang ident="DETAILS_PERSPARAM_TIME" }] [{ $review->oxreviews__oxcreate->value|date_format:"%H:%M" }]
			[{ oxmultilang ident="DETAILS_PERSPARAM_DATE" }] [{ $review->oxreviews__oxcreate->value|date_format:"%d.%m.%Y" }]
			[{if $review->oxreviews__oxrating->value }][{ oxmultilang ident="DETAILS_PERSPARAM_RATING" }] [{ $review->oxreviews__oxrating->value }][{/if}]
		
		
			[{ $review->oxreviews__oxtext->value }]
		
	

   [{/foreach}]
  [{else}]
	
	[{ oxmultilang ident="DETAILS_PERSPARAM_REVIEWNOTAVAILABLE" }]
  [{/if}]




[{ include file="inc/product-detail.tpl" product=$product size="thin" isfiltering=false head="DETAILS_PERSPARAM_CURRENTPRODUCT"|oxmultilangassign testid="current"}]

[{oxid_include_dynamic file=“dyn/last_seen_products.tpl” type=“lastproducts” aid=$product->oxarticles__oxid->value aparentid=$product->oxarticles__oxparentid->value testid=“LastSeen” }]

[{include file=“inc/details_locator.tpl” where=“Bottom”}]

[{ insert name=“oxid_tracker” title=“DETAILS_PERSPARAM_TITLE”|oxmultilangassign product=$product cpath=$oView->getCatTreePath() }]
[{include file="_footer.tpl" popup=“inc/popup_zoom.tpl” }]

Hey Geil, das ist geshihier oder?

Das mag ich ich hätt auch gerne noch ein paar smilies… mit Schilderund Bier

Wenn sich jemand von euch die Pixel-Schubbs-Arbeit macht bitte melden, dann packen wir das auf Google.

Viel spass m,it den Tabs, abba ma ehrlich das iss sooo “00er”

Das mit der Packsattion, was genau brauchst du da? nur 1 extra feld? kannste so lösen wie das mit den Geburtatag…

Viel Grüße

Magnus

Was machen denn die Tabs genau?

Sorry, dass ich dir so dazwischen gepostet habe. Vielleicht kann das morgen Marco löschen.

Keine Ahnung, aber mich nervt der Editor wegen vieler Dinge doch sehr… mir wäre ein stinknormaler BB-Code Editor wesentlich angenehmer. Die neuen Code Funktionen sind nett, aber die Anwendung ist etwas… naja.

Man müsste bei der Lieferadresse 2 zusätzliche felder haben, die auch übergeben werden. Poststation: Postationsnummer und Packstation: Packstationsnummer

Aber am schönsten fände ich es, wenn man anstatt der Lieferadresse eine eigene Eingabemaske für eine Packstation hätte, denn da gehört z.B. keine Straße dazu.

LG Carolin

Ja Tabs halt…

ich hatte ja angefangen dieFeatures die ich haben will abba nicht sehen will mit accordion zu versteken und der Kollege meinte dass er gerne tabs hätte.

Ich mag lieber das Accordion, weswegen ich das auch nicht sauber gemacht habe…

Ich habs nicht so mit bb code, iss doch cool, hier kannste direkt html tippen

Mit den Extra feldern… also dazu musst du die oxuser überschreiben, DB erweitern, und dann auch die Felder in den Tamplestes hinzufügen…

Das ist schon recht viel Aufwand… versuch doch das textlich in den griff zu bekommen über die Beschreibungen bei den vorghanden Feldern, wie in meinem Lieblings-Shop , oder mach ne schöne Erklärung für den Kunden.

Je mehr Felder ein kunde hat, desto weniger Bock hat er das ding auszufüllen, diese Spagat zwischen Möglichkeit, Usability, Features und Übersicht, also ich tendiere zu “weniger ist mehr” und das frei nach dem Motto, wenn die was wollen, melden die sich über das Kommentarfeld, oder rufen an.

Viele Grüße

Magnus

Ja was Tabs sind weiß ich selbst… also von vorgestern bin ich auch nicht. :wink:

Mir ging es mehr drum was du da so versteckst. Aber auch das ist ja durch das andere Posting inzwischen aufgeklärt.

Sieht aufjedenfall nett aus. :slight_smile: Was passiert ohne JS?

Ich bevorzuge gern einfache und schöne Lösungen. Ich finde es schön, wenn ein User anstat nur dem Button “Hier klicken um an eine andere Lieferadresse zu liefern” auch die Möglichkeit hätte einen Button anzuklicken “Hier klicken um an eine Paackstation zu liefern”. Oder so ähnlich.

Ich halte das für die klarste und sauberste Lösung. Warum dem Kunden das Leben unnötig schwer machen indem er Sachen in Felder eintragen soll, die dafür gar nicht gedacht sind?

Naja, mal schaun was sich so ergeben wird.

Meinst du dass sich dein Tabmodul auch dafür eignet: http://www.andro-shop.com/Proteine-Eiweiss/Spezial/

(also für diejenigen die JS anhaben den Wechsel der Subkategorien per JS zu machen)

LG Carolin

product-detail.tpl (neu anlegen in out\basic pl\inc)

[code type=“smarty”]
[{if $head}]
[{if $head_link}][]noIndex() }] rel=“nofollow”[{/if}]>[{/if}]
[{$head}]
[{if $head_link}]]([{$head_link})[{/if}]
[{if $head_desc}] [{ “$head_desc”|strip_tags}][{/if}]

[{/if}]

oxarticles__oxartnum->value}]"[{/if}] class=“product [{if $head}] head[{/if}] [{$size|default:’’}] [{$class|default:’’}]”>

[]noIndex() }] rel="nofollow"[{/if}]>]([{ $product->getLink() })

[b][]noIndex() }] rel="nofollow"[{/if}]>[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]]([{ $product->getLink()})
    [{ oxmultilang ident="INC_PRODUCTITEM_ARTNOMBER2" }] [{ $product->oxarticles__oxartnum->value }]
    [{if $size=='thin' || $size=='thinest'}]
     
    [{/if}][/b]

[{if $recommid }]
  [{ $product->text }]
[{/if}]
[{oxhasrights ident="SHOWSHORTDESCRIPTION"}]
  [{if $size=='big' || $size=='thin'}]
    [{ $product->oxarticles__oxshortdesc->value }]
  [{/if}]
[{/oxhasrights}]


    [][{ oxmultilang ident="INC_PRODUCTITEM_MOREINFO2" }]]([{ $product->getLink() })
    [{if $isfiltering }]
        [{oxid_include_dynamic file="dyn/compare_links.tpl" testid="_`$testid`" type="compare" aid=$product->oxarticles__oxid->value anid=$altproduct in_list=$product->blIsOnComparisonList page=$pageNavigation->actPage-1 text_to_id="INC_PRODUCTITEM_COMPARE2" text_from_id="INC_PRODUCTITEM_REMOVEFROMCOMPARELIST2"}]
    [{/if}]




[{capture name=product_price}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]
    
        [{if $product->getFTPrice() && $size=='big' }]
            [{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDFROM" }] [{ $product->getFTPrice()}] [{ $currency->sign}]
            [{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDTEXT" }][{ oxmultilang ident="DETAILS_PERSPARAM_NOWONLY" }]
        [{/if}]
        [{if $product->getFPrice()}]
          [{ $product->getFPrice() }] [{ $currency->sign}][li](#delivery_link)

[/li] [{else}]

        [{/if}]
    
[{/oxhasrights}]
[{/capture}]

[{if $size=='big'}][{$smarty.capture.product_price}][{/if}]


[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]

[{if $owishid}]
  
[{/if}]
[{if $toBasketFunction}]
  
[{else}]
  
[{/if}]


[{if $altproduct}]
    
[{else}]
    
[{/if}]

[{if $recommid}]

[{/if}]


[{if $size!='thin' && $size!='thinest'}]

[{/if}]

[{*if $size!='small'*}]

[{ if $product->getVariantList() }]
  [{ $product->oxarticles__oxvarname->value }] :
  
    [{ if !$product->isParentNotBuyable()}]
      [{ $product->oxarticles__oxvarselect->value }] [{oxhasrights ident="SHOWARTICLEPRICE"}] [{ $product->getFPrice() }] [{ $currency->sign}]* [{/oxhasrights}]
    [{/if}]
    [{foreach from=$product->getVariantList() item=variant}]
      [{ $variant->oxarticles__oxvarselect->value }] [{oxhasrights ident="SHOWARTICLEPRICE"}] [{ $variant->getFPrice() }] [{ $currency->sign}]* [{/oxhasrights}]
    [{/foreach}]
  
[{elseif $product->getDispSelList()}]
  [{foreach key=iSel from=$product->selectlist item=oList}]
    [{ $oList.name }] :
    
      [{foreach key=iSelIdx from=$oList item=oSelItem}]
        [{ if $oSelItem->name }]
          selected }]SELECTED[{/if }]>[{ $oSelItem->name }]
        [{/if}]
      [{/foreach}]
    
  [{/foreach}]
[{/if}]

[{*/if*}]


[{if $size!='big'}] [{$smarty.capture.product_price}] [{/if}]

[{oxhasrights ident="TOBASKET"}]
    [{ if !$product->isNotBuyable() }]

    [{if $size=='thin' || $size=='thinest'}]
    
        [{ oxmultilang ident="DETAILS_PERSPARAM_QUANTITY" }]
    [{/if}]
    
      
    [{/if}]
[{/oxhasrights}]


[{if $removeFunction && (($owishid && ($owishid==$oxcmp_user->oxuser__oxid->value)) || (($wishid==$oxcmp_user->oxuser__oxid->value))) }]

  
      [{ $oViewConf->getHiddenSid() }]
      
  
      

[{/if}]

[{if $removeFunction && $recommid }]

  
      [{ $oViewConf->getHiddenSid() }]
      
  
      

[{/if}]

Details.tpl (teil 1 von 2, in 1 Datei zusammenfügen)
Details.tpl

[code type=“smarty”]
[{assign var=“ispricealarm” value=“0” }]
[{if $oView->getSearchTitle() }]
[{ assign var=“template_location” value=$oView->getSearchTitle()}]
[{else}]
[{ assign var=“template_location” value=""}]
[{ assign var=“blSep” value=""}]
[{foreach from=$oView->getCatTreePath() item=oCatPath}]
[{ if $blSep == “y”}]
[{ assign var=“template_location” value=$template_location|cat:" / “}]
[{/if}]
[{ assign var=“template_location” value=$template_location|cat:”[getLink()|cat:"">"|cat:$oCatPath->oxcategories__oxtitle->value|cat:""}]
[{ assign var=“blSep” value=“y”}]
[{/foreach}]
[{/if}]

[{include file="_header.tpl" location=$template_location }]

[{include file=“inc/details_locator.tpl” where=“Top” actCategory=$oView->getActiveCategory()}]

[{assign var=“currency” value=$oView->getActCurrency() }]
[{assign var=“product” value=$oView->getProduct() }]

[b][{oxmultilang ident="DETAILS_PERSPARAM_PRODUCTDETAILS"}][/b]

[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]
[{ oxmultilang ident="INC_PRODUCTITEM_ARTNOMBER2" }] [{ $product->oxarticles__oxartnum->value }]


  


[{if $oView->showZoomPics() }]
    [{assign var="aZoomPics" value=$oView->getZoomPics() }]
    [{assign var="iZoomPic" value=$oView->getActZoomPic() }]
    [][{ oxmultilang ident="DETAILS_PERSPARAM_ZOOM" }]]([{$product->getMoreDetailLink()})
[{/if}]

[{if $product->oxarticles__oxfile->value}]
    [/0/[{ $product->oxarticles__oxfile->value }]][>] [{ $product->oxarticles__oxfile->value }]]([{$product->getPictureUrl()})
[{/if}]

[{if $product->oxarticles__oxexturl->value}]
    [][>] [{ $product->oxarticles__oxurldesc->value }]](http://[{ $product->oxarticles__oxexturl->value })
[{/if}]




[{oxhasrights ident="SHOWSHORTDESCRIPTION"}]
    [{ $product->oxarticles__oxshortdesc->value }]
[{/oxhasrights}]

[{ if !$oxcmp_user}]
  [{assign var="star_title" value="DETAILS_PERSPARAM_LOGGIN"|oxmultilangassign }]
[{ elseif !$oView->canRate() }]
  [{assign var="star_title" value="DETAILS_PERSPARAM_ALREADYRATED"|oxmultilangassign }]
[{ else }]
  [{assign var="star_title" value="DETAILS_PERSPARAM_RATETHISARTICLE"|oxmultilangassign }]
[{/if}]
[{math equation="x*y" x=20 y=$product->getArticleRatingAverage() assign="currentRate" }]
[ul]

[li] [[*] [url=]getLink()|oxaddparams:“fnc=showLogin”}]"[{ elseif $oView->canRate() }]href="#review" onclick=“showReview(1);”[{/if}] title="[{$star_title}]">1](]1[/url)[/li]
[li] [url=]getLink()|oxaddparams:“fnc=showLogin”}]"[{ elseif $oView->canRate() }]href="#review" onclick=“showReview(2);”[{/if}] title="[{$star_title}]">2[/li]
[li] [url=]getLink()|oxaddparams:“fnc=showLogin”}]"[{ elseif $oView->canRate() }]href="#review" onclick=“showReview(3);”[{/if}] title="[{$star_title}]">3[/li]
[li] [url=]getLink()|oxaddparams:“fnc=showLogin”}]"[{ elseif $oView->canRate() }]href="#review" onclick=“showReview(4);”[{/if}] title="[{$star_title}]">4[/li]
[li] [url=]getLink()|oxaddparams:“fnc=showLogin”}]"[{ elseif $oView->canRate() }]href="#review" onclick=“showReview(5);”[{/if}] title="[{$star_title}]">5](""|cat:$oCatPath-)[/ul][/li]
[{if $product->oxarticles__oxratingcnt->value}]
[{$product->oxarticles__oxratingcnt->value}] [{if $product->oxarticles__oxratingcnt->value == 1}][{ oxmultilang ident=“DETAILS_PERSPARAM_RATINGREZULT” }][{else}][{ oxmultilang ident=“DETAILS_PERSPARAM_RATINGREZULTS” }] [{/if}]
[{else}]
[{ oxmultilang ident=“DETAILS_PERSPARAM_NORATINGS” }]
[{/if}]

    [{ assign var="oVendor" value=$oView->getVendor()}]
    [{if ($oVendor && $oView->getListType()!='vendor') }]
        [{if $oVendor->oxvendor__oxicon->value}]
            
        [{/if}]
        [{ oxmultilang ident="DETAILS_PERSPARAM_MANUFACTURER" }]
        [{if !$oVendor->blReadOnly}]
            [][{ $oVendor->oxvendor__oxtitle->value}]]([{ $oVendor->getLink() })
        [{else}]
            [{ $oVendor->oxvendor__oxtitle->value}]
        [{/if}]
        
    [{/if}]
    [{ assign var="oCategory" value=$oView->getCategory()}]
    [{if $oCategory && $oView->getListType()!='list'}]
        [{ oxmultilang ident="DETAILS_PERSPARAM_CATEGORY" }]
        [][{ $oCategory->oxcategories__oxtitle->value }]]([{ $oCategory->getLink() })
    [{/if}]




  [{if $product->getStockStatus() == -1}]
  
    [{ if $product->oxarticles__oxnostocktext->value  }]
        [{ $product->oxarticles__oxnostocktext->value  }]
    [{elseif $oViewConf->getStockOffDefaultMessage() }]
        [{ oxmultilang ident="DETAILS_PERSPARAM_NOTONSTOCK" }]
    [{/if}]

    [{ if $product->getDeliveryDate() }]
      [{ oxmultilang ident="DETAILS_PERSPARAM_AVAILABLEON" }] [{ $product->getDeliveryDate() }]
    [{/if}]

  [{elseif $product->getStockStatus() == 1}]

  
  [{ oxmultilang ident="DETAILS_PERSPARAM_LOWSTOCK" }]

  [{elseif $product->getStockStatus() == 0}]

  

  [{ if $product->oxarticles__oxstocktext->value  }]
    [{ $product->oxarticles__oxstocktext->value  }]
  [{elseif $oViewConf->getStockOnDefaultMessage() }]
    [{ oxmultilang ident="DETAILS_PERSPARAM_READYFORSHIPPING" }]
  [{/if}]

  [{/if}]







[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]


[{if $oView->getSelectLists() }]
[{foreach key=iSel from=$oView->getSelectLists() item=oList}]
 
  [{ $oList.name }]:
    
      [{foreach key=iSelIdx from=$oList item=oSelItem}]
        [{ if $oSelItem->name }][{ $oSelItem->name }][{/if}]
      [{/foreach}]
    
[{/foreach}]
[{/if}]

[{oxhasrights ident="SHOWARTICLEPRICE"}]
    
        [{if $product->getFTPrice() }]
            [{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDFROM" }] [{ $product->getFTPrice()}] [{ $currency->sign}]
            [{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDTEXT" }][{ oxmultilang ident="DETAILS_PERSPARAM_NOWONLY" }]
        [{/if}]
        [{if $product->getFPrice() }]
            [{ $product->getFPrice() }] [{ $currency->sign}]
        [{/if}]
        [{assign var="oCont" value=$oView->getContentByIdent("oxdeliveryinfo") }]
        [{ oxmultilang ident="DETAILS_PERSPARAM_PLUSSHIPPING" }][][{ oxmultilang ident="DETAILS_PERSPARAM_PLUSSHIPPING2" }]]([{ $oCont->getLink() })
[{/oxhasrights}]

[{if $product->getPricePerUnit()}]

    ([{$product->getPricePerUnit()}] [{ $currency->sign}]/[{$product->oxarticles__oxunitname->value}])

[{/if}]

[{if $product->oxarticles__oxvpe->value > 1}]

    [{ oxmultilang ident="DETAILS_PERSPARAM_VPE_MESSAGE_1" }] [{ $product->oxarticles__oxvpe->value}] [{ oxmultilang ident="DETAILS_PERSPARAM_VPE_MESSAGE_2" }]

[{/if}]

[{oxhasrights ident="SHOWARTICLEPRICE"}]
 [{if $product->loadAmountPriceInfo()}]
   [{ oxmultilang ident="DETAILS_PERSPARAM_MOREYOUBUYMOREYOUSAVE" }]
     
     [{foreach from=$product->loadAmountPriceInfo() item=priceItem}]
       [{ oxmultilang ident="DETAILS_PERSPARAM_FROM" }] [{$priceItem->oxprice2article__oxamount->value}] [{ oxmultilang ident="DETAILS_PERSPARAM_PCS" }]
         
           [{if $priceItem->oxprice2article__oxaddperc->value}]
             - [{$priceItem->oxprice2article__oxaddperc->value}] [{ oxmultilang ident="DETAILS_PERSPARAM_DISCOUNT" }]
           [{else}]
             - [{$priceItem->fbrutprice}] [{ $currency->sign}]
           [{/if}]
         
       
     [{/foreach}]
   
[{/if}]
[{/oxhasrights}]

[{if $size!='big'}] [{$smarty.capture.product_price}] [{/if}]

[{oxhasrights ident="TOBASKET"}]
    [{ if $product->isBuyable() }]
        
            [{ oxmultilang ident="DETAILS_PERSPARAM_QUANTITY" }]
        
            

        
            [[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARM" }]](#preisalarm_link)
        

    [{else}]
        [{if !$product->isParentNotBuyable()}]
        
            [[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARM2" }]](#preisalarm_link)
        
        [{/if}]
    [{/if}]
[{/oxhasrights}]



    [{if $isfiltering }]
        [{oxid_include_dynamic file="dyn/compare_links.tpl" testid="" type="compare" aid=$product->oxarticles__oxid->value anid=$product->oxarticles__oxnid->value in_list=$product->isOnComparisonList() page=$pageNavigation->actPage-1 text_to_id="DETAILS_PERSPARAM_COMPARE" text_from_id="DETAILS_PERSPARAM_REMOVEFROMCOMPARELIST"}]
    [{/if}]

    [getNavUrlParams() }]">[{ oxmultilang ident="DETAILS_PERSPARAM_RECOMMEND" }]]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)

    [{ if $oxcmp_user }]
        [getNavUrlParams() }]" class="details">[{ oxmultilang ident="DETAILS_PERSPARAM_ADDTORECOMMLIST" }]]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)
    [{ else}]
        [getNavUrlParams() }]">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOACCESSRECOMMLIST" }]]([{ $product->getLink()|oxaddparams:)
    [{ /if}]

    [{if $oxcmp_user }]
        [oxarticles__oxnid->value`&anid=`$product->oxarticles__oxnid->value`&fnc=tonoticelist&am=1"|cat:$oViewConf->getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_ADDTONOTICELIST" }]]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)
    [{else}]
        [getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOACCESSNOTICELIST" }]]([{ $product->getLink()|oxaddparams:)
    [{/if}]

    [{if $oxcmp_user }]
        [oxarticles__oxnid->value`&anid=`$product->oxarticles__oxnid->value`&fnc=towishlist&am=1"|cat:$oViewConf->getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_ADDTOWISHLIST" }]]([{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:)
    [{else}]
        [getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOACCESSWISHLIST" }]]([{ $product->getLink()|oxaddparams:)
    [{/if}]


[{include file="inc/bookmarks.tpl"}]

[{if $oView->morePics() }]

[{foreach from=$oView->getIcons() key=picnr item=ArtIcon name=MorePics}]
    []([{ $product->getLink()|oxaddparams:)
[{/foreach}]

[{/if}]


    [b][{ $product->oxarticles__oxtitle->value }][{if $product->oxarticles__oxvarselect->value}] [{ $product->oxarticles__oxvarselect->value }][{/if}][/b]
    [{oxhasrights ident="SHOWLONGDESCRIPTION"}]
     [{ $product->oxarticles__oxlongdesc->value }]
    [{/oxhasrights}]

    
        [?subject=[{ 'DETAILS_PERSPARAM_QUESTIONSSUBJECT'|oxmultilangassign|escape:'url' }]%20[{$product->oxarticles__oxartnum->value|escape:'url'}]][{ oxmultilang ident="DETAILS_PERSPARAM_QUESTIONS" }]](mailto:[{$product->oxarticles__oxquestionemail->value|default:$oxcmp_shop->oxshops__oxinfoemail->value})

Hi Magnus,

kam noch gar net dazu, dir danke zu sagen für die Mühe der Programmierung. Also dankeschön.

Jan

[QUOTE=Machina non calculat;5160]

Was noch zu tun wäre ist das finde-tuning:

[ul]
[li] Title kürzen (mit smarty über truncate)[/li]
[li] Die titles der eigentlichen boxen per css ausblenden, sonst sind die doppelt da[/li]
[li] per css das ganze gerade rücken[/ul][/li]Mit dem Code-Posten kämpfe ich noch, hab glaube ich habe noch nen bug drin, dass es als XSS erkannt wird oder so :wink: kommt gleich…[>> war wahrscheinlich zu lang]
[/QUOTE]

versuche das jetzt mal nachzubauen. hoffe das funktioniert so…
was heisst denn “mit smarty über truncate”?

Alle Änderungen sind bold, richtig?

alo bei mir geht das irgendwie nicht.
darf nich noch mal zusammenfassen:

  1. in die [B]oxid.js[/B] kommt in die erste zeile:
//jquery functions
var ul = $('').prependTo('.tabs-container');
$('.tabs-container div.tab-container').each(function() {$('[li] ' + $('strong.boxhead', this).text() + '').appendTo(ul);}).parent().tabs();
[/li]
$(function(){
// Tabs, tabify: media files, variants, reviews, current Product, tags. price alert
$(".tabs-container").tabs({});
});
  1. Datei [B]product-detail.tpl[/B] anlegen und in out/basic/tpl/inc hochladen

[{if $head}]
[{if $head_link}]]noIndex() }] rel="nofollow"[{/if}]>[{/if}]
[{$head}]
[{if $head_link}][{/if}]
[{if $head_desc}] [{ "$head_desc"|strip_tags}][{/if}]
[{/if}]


oxarticles__oxartnum->value}]"[{/if}] class="product [{if $head}] head[{/if}] [{$size|default:''}] [{$class|default:''}]">

]noIndex() }] rel="nofollow"[{/if}]>

]noIndex() }] rel="nofollow"[{/if}]>[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]
[{ oxmultilang ident="INC_PRODUCTITEM_ARTNOMBER2" }] [{ $product->oxarticles__oxartnum->value }]
[{if $size=='thin' || $size=='thinest'}]

[{/if}]

[{if $recommid }]
[{ $product->text }]
[{/if}]
[{oxhasrights ident="SHOWSHORTDESCRIPTION"}]
[{if $size=='big' || $size=='thin'}]
[{ $product->oxarticles__oxshortdesc->value }]
[{/if}]
[{/oxhasrights}]


][{ oxmultilang ident="INC_PRODUCTITEM_MOREINFO2" }]
[{if $isfiltering }]
[{oxid_include_dynamic file="dyn/compare_links.tpl" testid="_`$testid`" type="compare" aid=$product->oxarticles__oxid->value anid=$altproduct in_list=$product->blIsOnComparisonList page=$pageNavigation->actPage-1 text_to_id="INC_PRODUCTITEM_COMPARE2" text_from_id="INC_PRODUCTITEM_REMOVEFROMCOMPARELIS T2"}]
[{/if}]




[{capture name=product_price}]
[{oxhasrights ident="SHOWARTICLEPRICE"}]

[{if $product->getFTPrice() && $size=='big' }]
[{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDFROM" }] [{ $product->getFTPrice()}] [{ $currency->sign}]
[{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDTEXT" }][{ oxmultilang ident="DETAILS_PERSPARAM_NOWONLY" }]
[{/if}]
[{if $product->getFPrice()}]
[{ $product->getFPrice() }] [{ $currency->sign}]*
[{else}]

[{/if}]

[{/oxhasrights}]
[{/capture}]

[{if $size=='big'}][{$smarty.capture.product_price}][{/if}]


[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]

[{if $owishid}]

[{/if}]
[{if $toBasketFunction}]

[{else}]

[{/if}]


[{if $altproduct}]

[{else}]

[{/if}]

[{if $recommid}]

[{/if}]


[{if $size!='thin' && $size!='thinest'}]

[{/if}]

[{*if $size!='small'*}]

[{ if $product->getVariantList() }]
[{ $product->oxarticles__oxvarname->value }] :

[{ if !$product->isParentNotBuyable()}]
[{ $product->oxarticles__oxvarselect->value }] [{oxhasrights ident="SHOWARTICLEPRICE"}] [{ $product->getFPrice() }] [{ $currency->sign}]* [{/oxhasrights}]
[{/if}]
[{foreach from=$product->getVariantList() item=variant}]
[{ $variant->oxarticles__oxvarselect->value }] [{oxhasrights ident="SHOWARTICLEPRICE"}] [{ $variant->getFPrice() }] [{ $currency->sign}]* [{/oxhasrights}]
[{/foreach}]

[{elseif $product->getDispSelList()}]
[{foreach key=iSel from=$product->selectlist item=oList}]
[{ $oList.name }] :

[{foreach key=iSelIdx from=$oList item=oSelItem}]
[{ if $oSelItem->name }]
selected }]SELECTED[{/if }]>[{ $oSelItem->name }]
[{/if}]
[{/foreach}]

[{/foreach}]
[{/if}]

[{*/if*}]


[{if $size!='big'}] [{$smarty.capture.product_price}] [{/if}]

[{oxhasrights ident="TOBASKET"}]
[{ if !$product->isNotBuyable() }]

[{if $size=='thin' || $size=='thinest'}]

[{ oxmultilang ident="DETAILS_PERSPARAM_QUANTITY" }]
[{/if}]


[{/if}]
[{/oxhasrights}]


[{if $removeFunction && (($owishid && ($owishid==$oxcmp_user->oxuser__oxid->value)) || (($wishid==$oxcmp_user->oxuser__oxid->value))) }]


[{ $oViewConf->getHiddenSid() }]


[{/if}]

[{if $removeFunction && $recommid }]


[{ $oViewConf->getHiddenSid() }]

[{/if}]


3.[B] Details.tpl[/B] ändern in:


[{assign var="ispricealarm" value="0" }]
[{if $oView->getSearchTitle() }]
[{ assign var="template_location" value=$oView->getSearchTitle()}]
[{else}]
[{ assign var="template_location" value=""}]
[{ assign var="blSep" value=""}]
[{foreach from=$oView->getCatTreePath() item=oCatPath}]
[{ if $blSep == "y"}]
[{ assign var="template_location" value=$template_location|cat:" / "}]
[{/if}]
[{ assign var="template_location" value=$template_location|cat:"getLink()|cat:"\">"|cat:$oCatPath->oxcategories__oxtitle->value|cat:""}]
[{ assign var="blSep" value="y"}]
[{/foreach}]
[{/if}]


[{include file="_header.tpl" location=$template_location }]


[{include file="inc/details_locator.tpl" where="Top" actCategory=$oView->getActiveCategory()}]


[{assign var="currency" value=$oView->getActCurrency() }]
[{assign var="product" value=$oView->getProduct() }]



[{oxmultilang ident="DETAILS_PERSPARAM_PRODUCTDETAILS"}]

[{$product->oxarticles__oxtitle->value}] [{$product->oxarticles__oxvarselect->value}]
[{ oxmultilang ident="INC_PRODUCTITEM_ARTNOMBER2" }] [{ $product->oxarticles__oxartnum->value }]





[{if $oView->showZoomPics() }]
[{assign var="aZoomPics" value=$oView->getZoomPics() }]
[{assign var="iZoomPic" value=$oView->getActZoomPic() }]
][{ oxmultilang ident="DETAILS_PERSPARAM_ZOOM" }]
[{/if}]

[{if $product->oxarticles__oxfile->value}]
/0/[{ $product->oxarticles__oxfile->value }]][>] [{ $product->oxarticles__oxfile->value }]
[{/if}]

[{if $product->oxarticles__oxexturl->value}]
][>] [{ $product->oxarticles__oxurldesc->value }]
[{/if}]




[{oxhasrights ident="SHOWSHORTDESCRIPTION"}]
[{ $product->oxarticles__oxshortdesc->value }]
[{/oxhasrights}]

[{ if !$oxcmp_user}]
[{assign var="star_title" value="DETAILS_PERSPARAM_LOGGIN"|oxmultilangassign }]
[{ elseif !$oView->canRate() }]
[{assign var="star_title" value="DETAILS_PERSPARAM_ALREADYRATED"|oxmultilang assign }]
[{ else }]
[{assign var="star_title" value="DETAILS_PERSPARAM_RATETHISARTICLE"|oxmultil angassign }]
[{/A?if}]
[{math equation="x*y" x=20 y=$product->getArticleRatingAverage() assign="currentRate" }]

    * 1
    * http://getLink()|oxaddparams:"fnc=sh...tar_title}]">1
    * http://getLink()|oxaddparams:"fnc=sh...tar_title}]">2
    * http://getLink()|oxaddparams:"fnc=sh...tar_title}]">3
    * http://getLink()|oxaddparams:"fnc=sh...tar_title}]">4
    * http://getLink()|oxaddparams:"fnc=sh...tar_title}]">5


[{if $product->oxarticles__oxratingcnt->value}]
[{$product->oxarticles__oxratingcnt->value}] [{if $product->oxarticles__oxratingcnt->value == 1}][{ oxmultilang ident="DETAILS_PERSPARAM_RATINGREZULT" }][{else}][{ oxmultilang ident="DETAILS_PERSPARAM_RATINGREZULTS" }] [{/if}]
[{else}]
[{ oxmultilang ident="DETAILS_PERSPARAM_NORATINGS" }]
[{/if}]


[{ assign var="oVendor" value=$oView->getVendor()}]
[{if ($oVendor && $oView->getListType()!='vendor') }]
[{if $oVendor->oxvendor__oxicon->value}]

[{/if}]
[{ oxmultilang ident="DETAILS_PERSPARAM_MANUFACTURER" }]
[{if !$oVendor->blReadOnly}]
][{ $oVendor->oxvendor__oxtitle->value}]
[{else}]
[{ $oVendor->oxvendor__oxtitle->value}]
[{/if}]

[{/if}]
[{ assign var="oCategory" value=$oView->getCategory()}]
[{if $oCategory && $oView->getListType()!='list'}]
[{ oxmultilang ident="DETAILS_PERSPARAM_CATEGORY" }]
][{ $oCategory->oxcategories__oxtitle->value }]
[{/if}]




[{if $product->getStockStatus() == -1}]

[{ if $product->oxarticles__oxnostocktext->value }]
[{ $product->oxarticles__oxnostocktext->value }]
[{elseif $oViewConf->getStockOffDefaultMessage() }]
[{ oxmultilang ident="DETAILS_PERSPARAM_NOTONSTOCK" }]
[{/if}]

[{ if $product->getDeliveryDate() }]
[{ oxmultilang ident="DETAILS_PERSPARAM_AVAILABLEON" }] [{ $product->getDeliveryDate() }]
[{/if}]

[{elseif $product->getStockStatus() == 1}]


[{ oxmultilang ident="DETAILS_PERSPARAM_LOWSTOCK" }]

[{elseif $product->getStockStatus() == 0}]



[{ if $product->oxarticles__oxstocktext->value }]
[{ $product->oxarticles__oxstocktext->value }]
[{elseif $oViewConf->getStoA?ckOnDefaultMessage() }]
[{ oxmultilang ident="DETAILS_PERSPARAM_READYFORSHIPPING" }]
[{/if}]

[{/if}]







[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]


[{if $oView->getSelectLists() }]
[{foreach key=iSel from=$oView->getSelectLists() item=oList}]

[{ $oList.name }]:

[{foreach key=iSelIdx from=$oList item=oSelItem}]
[{ if $oSelItem->name }][{ $oSelItem->name }][{/if}]
[{/foreach}]

[{/foreach}]
[{/if}]

[{oxhasrights ident="SHOWARTICLEPRICE"}]

[{if $product->getFTPrice() }]
[{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDFROM" }] [{ $product->getFTPrice()}] [{ $currency->sign}]
[{ oxmultilang ident="DETAILS_PERSPARAM_REDUCEDTEXT" }][{ oxmultilang ident="DETAILS_PERSPARAM_NOWONLY" }]
[{/if}]
[{if $product->getFPrice() }]
[{ $product->getFPrice() }] [{ $currency->sign}]
[{/if}]
[{assign var="oCont" value=$oView->getContentByIdent("oxdeliveryinfo") }]
[{ oxmultilang ident="DETAILS_PERSPARAM_PLUSSHIPPING" }]][{ oxmultilang ident="DETAILS_PERSPARAM_PLUSSHIPPING2" }]
[{/oxhasrights}]

[{if $product->getPricePerUnit()}]

([{$product->getPricePerUnit()}] [{ $currency->sign}]/[{$product->oxarticles__oxunitname->value}])

[{/if}]

[{if $product->oxarticles__oxvpe->value > 1}]

[{ oxmultilang ident="DETAILS_PERSPARAM_VPE_MESSAGE_1" }] [{ $product->oxarticles__oxvpe->value}] [{ oxmultilang ident="DETAILS_PERSPARAM_VPE_MESSAGE_2" }]

[{/if}]

[{oxhasrights ident="SHOWARTICLEPRICE"}]
[{if $product->loadAmountPriceInfo()}]
[{ oxmultilang ident="DETAILS_PERSPARAM_MOREYOUBUYMOREYOUSAVE" }]

[{foreach from=$product->loadAmountPriceInfo() item=priceItem}]
[{ oxmultilang ident="DETAILS_PERSPARAM_FROM" }] [{$priceItem->oxprice2article__oxamount->value}] [{ oxmultilang ident="DETAILS_PERSPARAM_PCS" }]

[{if $priceItem->oxprice2article__oxaddperc->value}]
- [{$priceItem->oxprice2article__oxaddperc->value}] [{ oxmultilang ident="DETAILS_PERSPARAM_DISCOUNT" }]
[{else}]
- [{$priceItem->fbrutprice}] [{ $currency->sign}]
[{/if}]


[{/foreach}]

A?
[{/if}]
[{/oxhasrights}]

[{if $size!='big'}] [{$smarty.capture.product_price}] [{/if}]

[{oxhasrights ident="TOBASKET"}]
[{ if $product->isBuyable() }]

[{ oxmultilang ident="DETAILS_PERSPARAM_QUANTITY" }]




[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARM" }]


[{else}]
[{if !$product->isParentNotBuyable()}]

[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARM2" }]

[{/if}]
[{/if}]
[{/oxhasrights}]



[{if $isfiltering }]
[{oxid_include_dynamic file="dyn/compare_links.tpl" testid="" type="compare" aid=$product->oxarticles__oxid->value anid=$product->oxarticles__oxnid->value in_list=$product->isOnComparisonList() page=$pageNavigation->actPage-1 text_to_id="DETAILS_PERSPARAM_COMPARE" text_from_id="DETAILS_PERSPARAM_REMOVEFROMCOMPAREL IST"}]
[{/if}]

getNavUrlParams() }]">[{ oxmultilang ident="DETAILS_PERSPARAM_RECOMMEND" }]

[{ if $oxcmp_user }]
getNavUrlParams() }]" class="details">[{ oxmultilang ident="DETAILS_PERSPARAM_ADDTORECOMMLIST" }]
[{ else}]
getNavUrlParams() }]">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOACCESSRECOMMLIST" }]
[{ /if}]

[{if $oxcmp_user }]
oxarticles__oxnid->value`&anid=`$product->oxarticles__oxnid->value`&fnc=tonoticelist&am=1"|cat:$oViewConf->getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_ADDTONOTICELIST" }]
[{else}]
getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOACCESSNOTICELIST" }]
[{/if}]

[{if $oxcmp_user }]
oxarticles__oxnid->value`&anid=`$product->oxarticles__oxnid->value`&fnc=towishlist&am=1"|cat:$oViewConf->getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_ADDTOWISHLIST" }]
[{else}]
getNavUrlParams() }]" rel="nofollow">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOACCESSWISHLIST" }]
[{/if}]


[{include file="inc/bookmarks.tpl"}]




[{if $oView->morePics() }]

[{foreach from=$oView->getIcons() key=picnr item=ArtIcon name=MorePics}]

[{/foreach}]

[{/if}]


[{ $product->oxarticles__oxtitle->value }][{if $produA?ct->oxarticles__oxvarselect->value}] [{ $product->oxarticles__oxvarselect->value }][{/if}]
[{oxhasrights ident="SHOWLONGDESCRIPTION"}]
[{ $product->oxarticles__oxlongdesc->value }]
[{/oxhasrights}]


?subject=[{ 'DETAILS_PERSPARAM_QUESTIONSSUBJECT'|oxmultilangas sign|escape:'url' }]%20[{$product->oxarticles__oxartnum->value|escape:'url'}]][{ oxmultilang ident="DETAILS_PERSPARAM_QUESTIONS" }]


[{ if $oView->getAttributes() }]

[{ oxmultilang ident="DETAILS_PERSPARAM_SPECIFICATION" }]


[{foreach from=$oView->getAttributes() item=oAttr name=attribute}]
[{ $oAttr->title }]
[{ $oAttr->value }]

[{/foreach}]


[{/if}]

[{include file="inc/media.tpl"}]

[{include file="inc/tags.tpl"}]

[{if !$product->isParentNotBuyable()}]

[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARM3" }]

[{ oxmultilang ident="DETAILS_PERSPARAM_PRICEALARMMESSAGE" }]



[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]

[{assign var="oCaptcha" value=$oView->getCaptcha() }]


[{ oxmultilang ident="CONTACT_VERIFICATIONCODE" }]
[{ oxmultilang ident="DETAILS_PERSPARAM_EMAIL" }]
[{ oxmultilang ident="DETAILS_PERSPARAM_YOURPRICE" }]

[{if $oCaptcha->isImageVisible()}]

[{else}]
[{$oCaptcha->getText()}]
[{/if}]



Details.tpl (Teil 2)



getFPrice() }][{/if}][{/oxhasrights}]" size="20" maxlength="32">
[{ $currency->sign}]







[{/if}]

[{if $oView->getVariantList() || $oView->drawParentUrl()}]

[{if $oView->drawParentUrl()}]
][{oxmultilang ident="INC_PRODUCT_VARIANTS_BACKTOMAINPRODUCT"|oxm ultilangassign|cat:" "|cat:$oView->getParentName() }]
[{else}]
[{oxmultilang ident="INC_PRODUCT_VARIANTS_VARIANTSELECTIONOF"|ox multilangassign|cat:" `$product->oxarticles__oxtitle->value`" }]
[{/if}]


[{ if $oView->drawParentUrl()}]
[{ oxmultilang ident="INC_PRODUCT_VARIANTS_OTHERVARIANTSOF" }] [{ $oView->getParentName() }]

[{/if}]

[{foreach from=$oView->getVariantList() name=variants item=variant_product}]

[{if $smarty.foreach.variants.first}]
[{assign var="details_variants_class" value="firstinlist"}]

[{elseif $smarty.foreach.variants.last}]
[{assign var="details_variants_class" value="lastinlist"}]

[{else}]
[{assign var="details_variants_class" value="inlist"}]

[{/if}]

[{$variants_head}]

[{include file="inc/product.tpl" product=$variant_product size="thinest" altproduct=$product->getId() isfiltering=false class=$details_variants_class testid="Variant_"|cat:$variant_product->oxarticles__oxid->value}]

[{assign var="details_variants_head" value=""}]

[{/foreach}]



[{/if}]


[{ oxmultilang ident="DETAILS_PERSPARAM_PRODUCTREVIEW" }]

[{ if $oxcmp_user }]


[{ if $oView->canRate() }]

    * 1

    * getActCatId() }]" onclick="showReview(1);return false;" title="1 [{ oxmultilang ident="DETAILS_PERSPARAM_STAR" }]">1

    * getActCatId() }]" onclick="showReview(2);return false;" title="2 [{ oxmultilang ident="DETAILS_PERSPARAM_STARS" }]">2

    * getActCatId() }]" onclick="showReview(3);return false;" title="3 [{ oxmultilang ident="DETAILS_PERSPARAM_STARS" }]">3

    * getActCatId() }]" onclick="showReview(4);return false;" title="4 [{ oxmultilang ident="DETAILS_PERSPARAM_STARS" }]">4

    * getActCatId() }]" onclick="showReview(5);return false;" title="5 [{ oxmultilang ident="DETAILS_PERSPARAM_STARS" }]">5


[{/if}]
[{ $oViewConf->getHiddenSid() }]
[{ $oViewConf->getNavFormParams() }]



getActCatId() }]" onclick="showReview();return false;">[{ oxmultilang ident="DETAILS_PERSPARAM_WRITEREVIEW" }]
[{else}]
getNavUrlParams() }]" class="fs10">[{ oxmultilang ident="DETAILS_PERSPARAM_LOGGINTOWRITEREVIEW" }]
[{/if}]

[{if $oView->getReviews() }]
[{foreach from=$reviews item=review name=ReviewsCounter}]


[{ $review->oxuser__oxfname->value }] [{ oxmultilang ident="DETAILS_PERSPARAM_WRITES" }]
[{ oxmultilang ident="DETAILS_PERSPARAM_TIME" }] [{ $review->oxreviews__oxcreate->value|date_format:"%H:%M" }]
[{ oxmultilang ident="DETAILS_PERSPARAM_DATE" }] [{ $review->oxreviews__oxcreate->value|date_format:"%d.%m.%Y" }]
[{if $review->oxreviews__oxrating->value }][{ oxmultilang ident="DETAILS_PERSPARAM_RATING" }] [{ $review->oxreviews__oxrating->value }][{/if}]

[{ $review->oxreviews__oxtext->value }]

[{/foreach}]
[{else}]

[{ oxmultilang ident="DETAILS_PERSPARAM_REVIEWNOTAVAILABLE" }]
[{/if}]

[{ include file="inc/product-detail.tpl" product=$product size="thin" isfiltering=false head="DETAILS_PERSPARAM_CURRENTPRODUCT"|oxmultilan gassign testid="current"}]
[{oxid_include_dynamic file="dyn/last_seen_products.tpl" type="lastproducts" aid=$product->oxarticles__oxid->value aparentid=$product->oxarticles__oxparentid->value testid="LastSeen" }]


[{include file="inc/details_locator.tpl" where="Bottom"}]

[{ insert name="oxid_tracker" title="DETAILS_PERSPARAM_TITLE"|oxmultilangassign product=$product cpath=$oView->getCatTreePath() }]
[{include file="_footer.tpl" popup="inc/popup_zoom.tpl" }]

bei mir kommt fehler : Fatal error: Smarty error: [in details.tpl line 62]: syntax error: expecting ‘=’ after attribute name ‘assign’ (Smarty_Compiler.class.php, line 1591) in /mnt/web8/13/75/51895375/htdocs/oxid/core/smarty/Smarty.class.php on line 1092

vielleicht bin ich bei den postings durcheinander gekommen. hab das mit teil 1+teil 2 nicht richtig geschnallt, was wohin.

Vielleicht kann jmd von euch licht ins dunkel bringen.

danke & gruß, racoon.

die dateien von jquery sind in vielen ordnern verteilt. muss ich diese jetzt alle in das folgende verzeichnis legen:
hier rein: [B]out\basic\src\jquery-ui heme[/B]

hab nun folgende dateien in dieses verzeichnis gelegt: (lieber mal mehr als zu wenig)

jquery-1.3.2.js
jquery-1.3.2.min.js
jquery-ui-1.7.2.custom.css
jquery-ui-1.7.2.custom.min.js

dazu habe ich die _header.tpl mit folgendem code im <head> erweitert. dabei habe ich mich für die “min” entschieden:

getResourceUrl() }]jquery-ui/theme/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
getResourceUrl() }]jquery-ui/jquery-1.3.2.min.js">
getResourceUrl() }]jquery-ui/jquery-ui-1.7.2.custom.min.js">

so alles gemacht. jedoch bekomme ich ein fehlermeldung aus der “details.tpl”— hmm, mache mal morgen weiter…

vielleicht gibts ja tipps von euch. gruß

[QUOTE=racoon;10309]3.[B] Details.tpl[/B] ändern in:



[{ if !$oxcmp_user}]
[{assign var="star_title" value="DETAILS_PERSPARAM_LOGGIN"|oxmultilangassign }]
[{ elseif !$oView->canRate() }]
[{assign var="star_title" value="DETAILS_PERSPARAM_ALREADYRATED"|oxmultilang assign }]
[{ else }]
[{assign var="star_title" value="DETAILS_PERSPARAM_RATETHISARTICLE"|oxmultil angassign }]
[{/A?if}]


[/QUOTE]

Hi da hat es offensichtlich ein wenig die zeichen zerlegt, hier nochmla meine details.tpl, geht ja nun besser mit dem posten :slight_smile:
aber achtung, das noch von der 4.0.1.0, ich habe da gerade nicht im überblick ob und welche Änderungen es noch an der details gab…

Gruß
Magnus

Hallo Magnus,

vielen Dank für deinen Check. Aber das Tutorial ist bissl verwirrend. Hab nun mal ein “offline-beispiel” mit jquery bereitgestellt. Datei als zip anbei. Auf dieser Grundlage muss sich doch das Tutorial einfacher gestalten lassen, sprich nur die Stellen angeben, an denen man was ändern muss. Soooo viel ist doch gar nicht zu tun, oder?

Wenn hier der komplette .tpl Code angegeben wird, ist das zu unübersichtlich. Daher versuche ich später die Stellen zu nennen, an denen etwas hinzugefügt bzw. gelöscht werden muss.

Werde Richtung WE damit kämpfen…bis dahin.