Oxid 4.4.8
Hallo, folgendes Problem: Standardmäßig hat man bei Oxid auch im Warenkorb noch die Auswahlliste als Drop-Down-Menü, ich möchte da aber nur noch die Artikel als Text.
Nun habe ich die “product title & number” in der basket.tpl mit der aus der order.tpl ersetzt. Was ich als Non-Programmierer ganz schlau fand:D
Jetzt steht also nur noch der Artikeltext da, so wie es gut ist, wenn man die Bestellmenge aber ändert und aktualisiert, gehen alle Werte der Auswahlliste futsch bzw. auf den Anfangswert der Liste. Kann jemand helfen?
beste Grüße
[B]basket.tpl[/B]:
<!-- product title & number -->
[B]NEU aus order.tpl kopiert[/B]
<td>
<div class="art_title"><a id="test_orderUrl_[{ $basketproduct->oxarticles__oxid->value }]_[{$smarty.foreach.testArt.iteration}]" rel="nofollow" href="[{ $basketproduct->getLink() }]">[{ $basketproduct->oxarticles__oxtitle->value }][{if $basketproduct->oxarticles__oxvarselect->value }], [{ $basketproduct->oxarticles__oxvarselect->value }][{/if }]</a>[{if $basketitem->blSkipDiscounts }] <sup><a rel="nofollow" href="#SkipDiscounts_link" class="note">**</a></sup>[{/if}]</div>
<div class="art_num" id="test_orderArtNo_[{ $basketproduct->oxarticles__oxid->value }]_[{$smarty.foreach.testArt.iteration}]">[{ oxmultilang ident="ORDER_ARTICLENOMBER" }] [{ $basketproduct->oxarticles__oxartnum->value }]</div>
[{if $basketitem->isBundle() }]
[{else}]
[{foreach from=$basketitem->getChosenSelList() item=oList}]
[{ $oList->name }] : [{ $oList->value }]<br>
[{/foreach}]
[{/if}]
</td>
[B]Das steht da normalerweise:[/B]
[{* <td>
<div class=“art_title”><a id=“test_basketTitle_[{ $basketproduct->oxarticles__oxid->value }][{$smarty.foreach.test_Contents.iteration}]" rel=“nofollow” href="[{ $basketproduct->getLink() }]">[{ $basketproduct->oxarticles__oxtitle->value }][{if $basketproduct->oxarticles__oxvarselect->value }], [{ $basketproduct->oxarticles__oxvarselect->value }][{/if }]</a>[{if $basketitem->isSkipDiscount() }] <sup><a rel=“nofollow” href="#SkipDiscounts_link" class=“note”>**</a></sup>[{/if}]</div>
<div class=“art_num” id="test_basketNo[{ $basketproduct->oxarticles__oxid->value }]_[{$smarty.foreach.test_Contents.iteration}]”>[{ oxmultilang ident=“BASKET_ARTNOMBER” }] [{ $basketproduct->oxarticles__oxartnum->value }]</div>
[{if !$basketitem->isBundle() || !$basketitem->isDiscountArticle()}]
[{if $basketproduct->selectlist }]
<div class="variants">
[{foreach key=iSel from=$basketproduct->selectlist item=oList }]
<select id="test_basketSelect_[{ $basketproduct->oxarticles__oxid->value }]_[{$smarty.foreach.test_Contents.iteration}]_[{ $iSel }]" name="aproducts[[{ $basketindex }]][sel][[{ $iSel }]]">
[{foreach key=iSelIdx from=$oList item=oSelItem }]
[{if $oSelItem->name }]
<option value="[{ $iSelIdx }]"[{if $oSelItem->selected }]SELECTED[{/if }]>[{ $oSelItem->name }]</option>
[{/if }]
[{/foreach }]
</select>
[{/foreach }]
</div>
[{/if}]
[{/if }]
</td>*}]