arbeite gerade mit SEO-URLs und dabei bin ich nun auf ein Problem im Zusammenhang mit dem we:form Tag gestoßen.
Auf einer Object-Detailseite (Artikel eines Shops), die über eine SEO-URL-Link aufgerufen wird, gibt es Dropdown-Menü mit Auswahl der verschiedenen Größen (unterschiedliche Varianten). Das Dropdown-Menü habe ich wie folgt gelöst:
Code: Alles auswählen
<we:form id="self" nameid="variantForm" method="get" target="_self">
<input type="hidden" name="we_objectID" value="<?php echo $GLOBALS['we_obj']->ID ?>"/>
<we:ifHasShopVariants>
<we:listview type="shopVariant" defaultname="S">
<h3>Dieses Produkt gibt es in folgenden Größen:</h3>
<select name="we_variant" onchange="document.getElementById('variantForm').submit()">
<we:repeat>
<option value="<we:field name="WE_VARIANT_NAME"/>"><we:field name="WE_VARIANT_NAME"/></option>
</we:repeat>
</select>
</we:listview>
<p clear="both">
<we:ifShopPayVat>
<we:calculate num_format="german" print="true"><we:var type="float" name="price" />*1.<we:shopVat id="1" /></we:calculate> €<br />
<we:else/>
<we:var type="float" name="price" /> €<br/>
</we:ifShopPayVat>
</p>
<we:else/>
<p clear="both">
<we:ifShopPayVat>
<we:var type="select" name="size" />: <we:calculate num_format="german" print="true"><we:var type="float" name="price" />*1.<we:shopVat id="1" /></we:calculate> €<br />
<we:else/>
<we:var type="float" name="price" /> €<br/>
</we:ifShopPayVat>
</p>
</we:ifHasShopVariants>
</we:form>
Code: Alles auswählen
<form target="_self" id="variantForm" method="get" name="variantForm" onsubmit=";if(self.weWysiwygSetHiddenText){weWysiwygSetHiddenText();};return true;" action="/webEdition/redirectSEOurls.php">
<input type="hidden" name="we_objectID" value="25"/>
<h3>Dieses Produkt gibt es in folgenden Größen:</h3>
<select name="we_variant" onchange="document.getElementById('variantForm').submit()">
<option value="L">L</option>
<option value="XL">XL</option>
<option value="S">S</option>
</select>
<p clear="both">174,00 €<br /></p>
</form>
Grüße, Andreas