Jump to content
xt:Commerce Community Forum

Master Slave zerlegt Template / Webseite


casademobila

Recommended Posts

welche html datei meinst du?

gehe mal von der template aus..

<div id="wrap">

	<div id="header">

		<div id="logo"><img src="{$tpl_url_path}img/top_logo.png" alt="{$store_name}" /></div>

		<div id="search">{box name=search}</div>

	</div>

	<div id="topmenuwrap">

		<ul id="topmenu">

			<li><a href="{link page='cart'}">{txt key=TEXT_CART}</a></li>

			{if $account == true}

			<li><a href="{link page='customer' conn=SSL}">{txt key=TEXT_ACCOUNT}</a></li>

			{/if}

			<li><a href="{link page='checkout' paction='shipping' conn=SSL}">{txt key=TEXT_CHECKOUT}</a></li>

			{if $account == true}

			{if $registered_customer}

			<li><a href="{link page='customer' paction='logoff' conn=SSL}">{txt key=TEXT_LOGOFF}</a></li>

			{else}

			<li><a href="{link page='customer' paction='login' conn=SSL}">{txt key=TEXT_LOGIN}</a></li>

			{/if}

			{/if}


		</ul>

		<div id="currencies">{box name=currency}</div>

		<div id="languages">{box name=language}</div>


	</div>

	<div id="breadcrumb">

{include file="/xtCore/pages/navigation/breadcrumb.html" type="tpl_include"} 

	</div>

	<div id="contentwrap">

		{if $show_index_boxes == 'true'}

		<div id="leftcol">{box  name=categories}

		{box name=manufacturers}

		{content block_id=7 levels=true}

{if $_content_7|count > 0}

<h2 class="boxheader">{txt key=TEXT_INFO}</h2>

<div class="infoboxbody">

<ul class="contentlist">

{foreach name=aussen item=box_data from=$_content_7}

<li class="level{$box_data.level}{if $box_data.active} active{/if}"><a href="{$box_data.link}">{$box_data.title}</a></li>

{/foreach}

</ul>

</div>

{/if}


{box name=xt_special_products type=user order_by='rand()'}

{box name=xt_new_products type=user order_by='rand()'}

{box name=xt_trusted_shops type=user}

		</div>

		{/if}

		<div>

		{if $show_index_boxes == 'true'}<div id="content">{else}<div id="contentfull">{/if}

		{$content}</div>

		{if $show_index_boxes == 'true'}

		<div id="rightcol">{box name=cart}{box name=loginbox}{box name=xt_bestseller_products type=user}</div>

		{/if}

	</div>

</div>

<p class="footer">

{content block_id=6}

{if $_content_6|count > 0}

{foreach name=aussen item=box_data from=$_content_6}

<a href="{$box_data.link}">{$box_data.title}</a>

{/foreach}

{/if}

</p>

[<copyright>]

</div>

{hook key=index_footer_tpl}

{banner bg=banner}

</div>

Link to comment
Share on other sites

  • 2 weeks later...

habe genau dasselbe problem und leider noch keine lösung gefunden.

irgendwie liegt es am hookpoint product_info_tpl. wenn ich diesen deaktiviere bleibt das layout korrekt, aber es werden keine slave artikel dargestellt. auch mit aktiven hookpoint sehe ich in der detailansicht keine slaveartikel, aber das template wird 'zerlegt'

habe veyton erst gerade installiert und alles nach anleitung gemacht!!

Link to comment
Share on other sites

  • 2 weeks later...

hallo,

sobald man auf den artikel klickt, passiert folgendes:

http://www.fernandoberlin.eu/index.php?page=product&info=13

da ich ein schuhgeschäft aufmache, möchte ich die Master Slave option für die schuhgrößen verwenden.

wenn ich bei den hookpoints den hookpoint "product_info_tpl" deaktiviere, wird der artikel angezeigt, jedoch sind dann auch keine Slaves sichtbar.

der sieht "product_info_tpl" sieht bei mir so aus:

if(XT_MASTER_SLAVE_ACTIVE == 'true'){

global $current_product_id;

require_once _SRV_WEBROOT._SRV_WEB_PLUGINS.'xt_master_slave/classes/class.xt_master_slave_products.php';

$xt_ms = new master_slave_products();

$xt_ms->setProductID($current_product_id);

if (!$_GET['action']['select_ms'] && !$_POST['action']['select_ms']) {

$xt_ms->unsetFilter();

} elseif (is_array($_POST['id'])) {

$xt_ms->setFilter($_POST['id']);

}

$xt_ms->getMasterSlave();

echo $xt_ms->productOptions;

echo $xt_ms->showProductList;

}

meine index.html aus dem template sieht wie folgt aus:

<div id="wrap">

<div id="header"><div id="logo"><a href="{link page='index'}"><img src="{$tpl_url_path}img/top_logo.gif" alt="{$store_name}" /></a></div>{box name=cart}

</div>

<div id="topmenuwrap">

<ul id="topmenu">

<li><div class="search">{box name=search}</div></li>

<li><a href="{link page='search'}">{txt key=text_advanced_search}</a></li>

<li><a href="{link page='index'}">{txt key=TEXT_HOME}</a></li>

<li><a href="{link page='cart'}">{txt key=TEXT_CART}</a></li>

{if $account == true}{if $registered_customer}

<li><a href="{link page='customer' conn=SSL}">{txt key=TEXT_ACCOUNT}</a></li>

<li><a href="{link page='checkout' paction='shipping' conn=SSL}">{txt key=TEXT_CHECKOUT}</a></li>

{/if}{/if}

{if $account == true}

{if $registered_customer}

<li><a href="{link page='customer' paction='logoff' conn=SSL}">{txt key=TEXT_LOGOFF}</a></li>

{else}

<li><a href="{link page='customer' paction='login' conn=SSL}">{txt key=TEXT_LOGIN}</a></li>

{/if}

{/if}

</ul>

<div id="languages">{box name=language}</div>

<div id="currencies">{box name=currency}</div>

</div>{box name=loginbox}

<div id="headout"></div>

<div id="contentwrap">

{if $show_index_boxes == 'true'}

<div id="leftcol">{box name=categories}

{box name=manufacturers}

{content block_id=7 levels=true}

{if $_content_7|count > 0}

<h2 class="boxheader">{txt key=TEXT_INFO}</h2>

<div class="infoboxbody">

<ul class="contentlist">

{foreach name=aussen item=box_data from=$_content_7}

<li class="level{$box_data.level}{if $box_data.active} active{/if}"><a href="{$box_data.link}">{$box_data.title}</a></li>

{/foreach}

</ul>

</div><div class="tsbox_footer"> </div>

{/if}

{box name=xt_special_products type=user order_by='rand()'}

{box name=xt_new_products type=user order_by='rand()'}

{*box name=cart*}{*box name=loginbox*}{box name=xt_bestseller_products type=user}{box name=xt_trusted_shops type=user}

</div>

{/if}

<div>

{if $show_index_boxes == 'true'}<div id="content">{else}<div id="contentfull">{/if}

<div id="breadcrumb">{include file="/xtCore/pages/navigation/breadcrumb.html" type="tpl_include"}</div>

{$content}</div>

{*<!--{if $show_index_boxes == 'true'}

<div id="rightcol">{box name=cart}{box name=loginbox}{box name=xt_bestseller_products type=user}{box name=xt_trusted_shops type=user}</div>

{/if}-->*}

</div>

</div>

<p class="footer">

{content block_id=6}

{if $_content_6|count > 0}|

{foreach name=aussen item=box_data from=$_content_6}

<a href="{$box_data.link}">{$box_data.title}</a> |

{/foreach}

{/if}

</p>

[<copyright>]{include file="/_ts_template/tsc/tsc.html" type="tpl_include"}

</div>

{hook key=index_footer_tpl}

{banner bg=banner}

</div>

aber wie gesagt, dass problem besteht auch beim default template.

vielleicht helfen ja auch die product-dateien weiter.

product.html

<h1>{$products_name}</h1>

{socialbookmark url=$products_link title=$products_name}

{if $date_available!=''}

<ul class="info_info">

<li class="infoInfo">{txt key=TEXT_PRODUCT_AVAILABLE} {$date_available|date_format:"%A, %B %e, %Y"}</li>

</ul>

<br />

{/if}

<div id="productinfowrap">

{if $products_image!=''}

<div id="productinfoimages">

<a href="{img img=$products_image type=m_popup path_only=true}" class="thickbox">{img img=$products_image type=m_info alt=$products_name}</a>

</div>

{/if}

{if $products_image!=''}<div id="productinfopricewithimages">{else}<div id="productinfopricewithoutimages">{/if}

<div id="productinfoprice">

{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}<p class="productprice">{$products_price.formated}</p>

<p class="taxandshippinginfo">{$products_tax_info.tax_desc}{if $products_shipping_link}<a href="{$products_shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if}</p>

{price_table}

{/if}

{if $products_weight > 0}<p class="taxandshippinginfo">{txt key=TEXT_PRODUCTS_WEIGHT}: {$products_weight} KG</p>{/if}

{if $shipping_status}<p class="shippingtime">{txt key=TEXT_SHIPPING_STATUS} {$shipping_status}</p>{/if}

{if $stock_image}

<p class="stockimage">{img img=$stock_image.image type=t_img_stockrules alt=$stock_image.name}</p>

<p class="stockimagetext">{$stock_image.name}</p>

{/if}

{if $review_stars_rating}

<div class="reviews_rating_light"><div class="reviews_rating_dark" style="width:{$review_stars_rating}%"></div></div>

<p class="reviews_text">{if $products_rating_count}{$products_rating_count}{else}0{/if} <a href="{$link_reviews_list}">{txt key=TEXT_XT_REVIEWS_INFO}</a> | <a href="{$link_reviews_write}" rel="nofollow">{txt key=TEXT_XT_REVIEWS_WRITE}</a></p>

{/if}

{if $base_price}<div class="hrlightgrey"></div>{$base_price.price} {txt key=TEXT_SHIPPING_BASE_PER} {$base_price.vpe.name}{/if}

{if $products_discount!=''}<div class="hrlightgrey"></div>{$products_discount}{/if}

{if $products_fsk18=='1'}<div class="hrlightgrey"></div><img src="media/images/icon/usk18.gif" alt="" style="cursor:default" />{/if}

{if $products_model!=''}<div class="hrlightgrey"></div>{txt key=TEXT_PRODUCTS_MODEL}: {$products_model}{/if}

{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}{if $link_priceinquiry}<p><a href="{$link_priceinquiry}">{txt key=TEXT_XT_PRICEINQUIRY_ASK}</a></p>{/if}{/if}

<div class="hrlightgrey"></div>

</div>

</div>

{hook key=product_info_tpl_before_cart}

{if $allow_add_cart eq 'true'}

{form type=form name=product action='dynamic' link_params=getParams method=post}

{form type=hidden name=action value=add_product}

{form type=hidden name=product value=$products_id}

<div style="clear:both;"></div>

<div class="addtobasket">

<table border="0" cellspacing="0" cellpadding="2">

<tr><td colspan="2">{$products_information}</td></tr>

<tr>

<td style="width:100%">{form type=text name=qty value=1 style='width:50px;'}</td>

<td>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</td>

</tr>

</table>

</div>

{form type=formend}

{/if}

{hook key=product_info_tpl_cart}

</div>

<div style="clear:both;"></div>

<br />

<div id="productinfodetail">

{if $products_description !=''}

<div id="productinfo_desc">

<h2>{txt key=TEXT_PRODUCTS_DESCRIPTION}</h2>

{$products_description}

</div>

{/if}

{if $more_images !=''}

{foreach name=aussen item=img_data from=$more_images}

<a href="{img img=$img_data.file type=m_popup path_only=true}" class="thickbox">{img img=$img_data.file type=m_thumb alt=$products_name}</a>

{/foreach}

{/if}

{box name=xt_cliplister type=user}

{if $media_files !=''}

<br />

{include file="$selected_template/xtCore/pages/files/product_public_files.html"}

{/if}

</div>

{hook key=product_info_tpl}

{if $_socialbookmarks}

<br />

<div id="socialbookmark">

{$_socialbookmarks}

</div>

{/if}

product_master.html

<h1>{$products_name}</h1>

<div id="productinfowrap">

{if $products_image!=''}

<div id="productinfoimages">

<a href="{img img=$products_image type=m_popup path_only=true}" class="thickbox">{img img=$products_image type=m_info alt=$products_name}</a>

</div>

{/if}

{if $products_image!=''}<div id="productinfopricewithimages">{else}<div id="productinfopricewithoutimages">{/if}

<div id="productinfoprice">

{if $products_fsk18=='1'}<div class="hrlightgrey"></div><img src="media/images/icon/usk18.gif" alt="" style="cursor:default" />{/if}

<div class="hrlightgrey"></div>

</div>

</div>

</div>

<div id="productinfodetail">

{if $products_description !=''}

<div id="productinfo_desc">

{$products_description}

</div>

{/if}

{if $more_images !=''}

{foreach name=aussen item=img_data from=$more_images}

<a href="{img img=$img_data.file type=m_popup path_only=true}" class="thickbox">{img img=$img_data.file type=m_thumb alt=$products_name}</a>

{/foreach}

{/if}

{if $media_files !=''}

<ul>

{foreach name=aussen item=file_data from=$media_files}

<li>{img img=$file_data.icon type=w_media_filetypes alt=$file_data.file} {$file_data.file}</li>

{/foreach}

</ul>

{/if}

</div>

<div class="hrproductpreview"></div>

{hook key=product_info_tpl_before_cart}

{hook key=product_info_tpl_cart}

<div style="clear:both;"></div>

<br />

{hook key=product_info_tpl}

wäre einem helfendem und schlauem kopf sehr verbunden.

p.s.: habe es eben einen neuen test gemacht. wenn ich bei einem masterartikel im Reiter "Template" den Artikelinfo Template: product_master.html auswähle, passiert bei der artikelauswahl im shop folgendes:

http://www.fernandoberlin.eu/index.php?page=product&info=15

Link to comment
Share on other sites

  • 1 year later...

das problem ist das viele plugins den selben hook im template nutzen.

so habe ich das problem gelösst:

ich habe in jedem plugin das {hook key=product_info_tpl} nutzt den inhalt von {hook key=product_info_tpl} kopiert und einen neuen hook erstellt mit dem inhalt. so konnte ich die plugins "getrennt" von einander im produkttemplate bearbeiten.

diese hooks habe ich erstellt:

{hook key=review_info_tpl} (bewertungen)

{hook key=auto_cross_selling_info_tpl} (auto cross selling)

{hook key=cross_selling_info_tpl} (cross selling)

{hook key=master_slave_info_tpl} (master slave)

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...