Hallo,
ich bin noch neu hier und bräuchte dringend Hilfe. Ich habe einen Shop mit xtc-modified erstellt und nutze das YAML-xtc-1-8-0 Template.
Ich benötige aber dringend die Funktion, das ich Varianten erstellen kann.Also einen Artikel in verschiedenen Farben z.B.
Dafür möchte ich oben genanntes Modul einbauen, die Anleitung ist zwar für "xtc5", aber bis jetzt lief alles ganz gut, nun bin ich bei der Installation so fast am Ende auf ein Problem gestoßen.
in den Dateien:
- templates/xtc5/module/product_info/product_info_tabs_v1.html
- templates/xtc5/module/product_info/product_info_v1.html
- templates/xtc5/module/product_info/product_info_x_accordion_v1.html
################################################## ########################
suchen nach (Hauptbildblock):
und ersetzen durch:Code:{if $PRODUCTS_IMAGE!=''} <a title="{$PRODUCTS_NAME}" href="{$PRODUCTS_IMAGE|replace:"info_images":"popup_images"}" class="thickbox" rel="{$PRODUCTS_ID}"><img src="{$PRODUCTS_IMAGE}" alt="{$PRODUCTS_NAME}" class="productimage" />{if $PRODUCTS_POPUP_LINK!=''}<br/>{#text_zoom#}{/if}</a> {/if}
suchen nach (Optionen):Code:{if $PRODUCTS_IMAGE!=''} {if $smarty.const.CLOUDZOOM_ACTIVE=='true'} <div id="productmainimg"><a title="{$PRODUCTS_NAME}" href="{$PRODUCTS_IMAGE|replace:"info_images":"popup_images"}" class="cloud-zoom cloud-zoom-gallery" id="zoom1" rel="adjustX: {$smarty.const.CLOUDZOOM_ADJUSTX}, adjustY:{$smarty.const.CLOUDZOOM_ADJUSTY}, zoomWidth:{$smarty.const.CLOUDZOOM_ZOOM_WIDTH}, zoomHeight:{$smarty.const.CLOUDZOOM_ZOOM_HEIGHT}"><img src="{$PRODUCTS_IMAGE}" alt="{$PRODUCTS_NAME}" title="{$PRODUCTS_NAME}" class="productimage" id="products_image" /></a></div> <div id="cloud-zoom-hint">{#cz_hint#}</div> {else} <div id="productmainimg"> <a title="{$PRODUCTS_NAME}" href="{$PRODUCTS_IMAGE|replace:"info_images":"popup_images"}" class="thickbox" rel="{$PRODUCTS_ID}" id="zoom1"><img src="{$PRODUCTS_IMAGE}" alt="{$PRODUCTS_NAME}" title="{$PRODUCTS_NAME}" class="productimage" id="products_image" />{if $PRODUCTS_POPUP_LINK!=''}<br/>{#text_zoom#}</a>{/if}</div> {/if} {/if}und ersetzen durch:Code:</td></tr></table> {if $MODULE_product_options !=''} <div class="productoptions">{$MODULE_product_options}</div>{/if}
Die Datei "product_info_x_accordion_v1.html" gibt es bei mir nicht die heißt "product_info_v1org.html".Code:</td></tr> <!-- BOF Atributte Matrix mit Bild --> {if $cz_more_images|@count > 0 && $smarty.const.CLOUDZOOM_ACTIVE=='true'} <tr> <td colspan="2"> <h4>{#cz_more_images#}</h4> <div class="morepics2"> <a title="{$PRODUCTS_NAME}" href="{$PRODUCTS_IMAGE|replace:"info_images":"popup_images"}" class="cloud-zoom-gallery" rel="useZoom: 'zoom1',smallImage:'{$PRODUCTS_IMAGE}'" ><img src="{$PRODUCTS_THUMB_IMAGE}" alt="{$PRODUCTS_NAME}" class="zoom-tiny-image" height="{$smarty.const.CLOUDZOOM_IMAGE_THUMBNAIL_HEIGHT}" width="{$smarty.const.CLOUDZOOM_IMAGE_THUMBNAIL_WIDTH}" /></a> {foreach item=cz_more_images_data from=$cz_more_images} <a class="cloud-zoom-gallery" rel="useZoom: 'zoom1',smallImage:'{$cz_more_images_data.PRODUCTS_IMAGE}'" title="{$PRODUCTS_NAME}" href="{$cz_more_images_data.PRODUCTS_IMAGE|replace:"info_images":"popup_images"}"><img src="{$cz_more_images_data.PRODUCTS_THUMB_IMAGE}" alt="{$PRODUCTS_NAME}" title="{$PRODUCTS_NAME}" class="zoom-tiny-image" height="{$smarty.const.CLOUDZOOM_IMAGE_THUMBNAIL_HEIGHT}" width="{$smarty.const.CLOUDZOOM_IMAGE_THUMBNAIL_WIDTH}" /></a> {/foreach} </div><div style="clear:both;"></div> </td> </tr> {/if} </table> {if $MODULE_product_options !='' && $MODULE_product_matrix==''}<div class="productoptions">{$MODULE_product_options}</div>{/if} {if $MODULE_product_matrix !=''}<div class="productoptions">{$MODULE_product_matrix}</div>{/if} <!-- EOF Atributte Matrix mit Bild -->
Die anderen beiden sind gleich.
Es gibt auch den gesuchten Hauptbildblock:nirgends es gibt bloß:Code:{if $PRODUCTS_IMAGE!=''} <a title="{$PRODUCTS_NAME}" href="{$PRODUCTS_IMAGE|replace:"info_images":"popup_images"}" class="thickbox" rel="{$PRODUCTS_ID}"><img src="{$PRODUCTS_IMAGE}" alt="{$PRODUCTS_NAME}" class="productimage" />{if $PRODUCTS_POPUP_LINK!=''}<br/>{#text_zoom#}{/if}</a> {/if}mhh, und auchCode:{if $PRODUCTS_IMAGE !=''}<a href="{$PRODUCTS_IMAGE|replace:"info_images":"popup_images"}" title="{$PRODUCTS_NAME}" rel="lightbox-productimg"><img src="{$PRODUCTS_IMAGE}" alt="{$PRODUCTS_NAME}" class="imgLeft"/></a>{/if}gibt es bei mir nicht nur so was:Code:</td></tr></table> {if $MODULE_product_options !=''} <div class="productoptions">{$MODULE_product_options}</div>{/if}Ich komm hier nicht weiter.Man muss in YamL Template etwas HTML umbauen, weil "xtc5" tabellarisch aufgebaut ist und YamL mit DIVs...Code:{if $MODULE_product_options !=''}<div class="options">{$MODULE_product_options}</div><br class="clearHere" />{/if}
Kann mir irgendjemand helfen?


Zitieren
Lesezeichen