View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004240 | OXID eShop (all versions) | 3.1. Design, GUI, UX | public | 2012-07-11 17:23 | 2012-12-05 09:45 |
| Reporter | leofonic | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 4.6.2 revision 46646 | ||||
| Fixed in Version | 4.8.0_5.1.0_beta1 | ||||
| Summary | 0004240: Selectionlist selection is deleted in basket on Update | ||||
| Description | Selectionlist selection is deleted in basket on update if "Load Selection Lists in Product Lists" is deactivated. | ||||
| Steps To Reproduce | 1. Create selectionlist and put different selections in basket 2. Change number of an item and click update 3. Different selections are now merged into a single article | ||||
| Tags | No tags attached. | ||||
| Attached Files | basketcontents.tpl.txt (1,195 bytes)
--- azure.orig/tpl/page/checkout/inc/basketcontents.tpl 2012-10-08 22:08:19.512011176 +0200
+++ azure/tpl/page/checkout/inc/basketcontents.tpl 2012-10-08 22:06:09.407005661 +0200
@@ -79,6 +79,17 @@
[{/foreach}]
</div>
[{/if}]
+ [{else}]
+ [{assign var="oSelections" value=$basketproduct->getSelections(null,$basketitem->getSelList())}]
+ [{if $oSelections}]
+ [{foreach from=$oSelections item=oList name=selections}]
+ [{assign var="oActiveSelection" value=$oList->getActiveSelection()}]
+ <p>
+ [{$oList->getLabel()}]: [{$oActiveSelection->getName()}]
+ <input type="hidden" name="aproducts[[{$basketindex}]][sel][[{$smarty.foreach.selections.index}]]" value="[{if $oActiveSelection }][{$oActiveSelection->getValue()}][{/if}]">
+ </p>
+ [{/foreach}]
+ [{/if}]
[{/if}]
[{/if }]
| ||||
| Theme | Azure | ||||
| Browser | All | ||||
| PHP Version | any | ||||
| Database Version | any | ||||
| has duplicate | 0004931 | closed | jurate.baseviciene | Values of selection lists do not appear in checkout |
| related to | 0005440 | closed | cesnauskast | basket update resets selection list values and prices |
|
|
possible fix here: http://forum.oxid-esales.com/showthread.php?p=104129 [{if $oViewConf->showSelectListsInList()}] [{assign var="oSelections" value=$basketproduct->getSelections(null,$basketitem->getSelList())}] [{if $oSelections}] <div class="selectorsBox clear" id="cartItemSelections_[{$smarty.foreach.basketContents.iteration}]"> [{foreach from=$oSelections item=oList name=selections}] [{include file="widget/product/selectbox.tpl" oSelectionList=$oList sFieldName="aproducts[`$basketindex`][sel]" iKey=$smarty.foreach.selections.index blHideDefault=true sSelType="seldrop"}] [{/foreach}] </div> [{/if}] [{else}] [{assign var="oSelections" value=$basketproduct->getSelections(null,$basketitem->getSelList())}] [{if $oSelections}] [{foreach from=$oSelections item=oList name=selections}] [{assign var="oActiveSelection" value=$oList->getActiveSelection()}]
[{/foreach}] [{/if}] [{/if}] |
|
|
Reminder sent to: leofonic Hi, Thanks a lot for submitting this issue, but we can't reproduce such issue nor on current versions 4.6. neither version 5.0. Could you please try to reproduce that on our demo shops: http://demoshop.oxid-esales.com/community-edition/ Best regards, |
|
|
I can reproduce this in current demoshop with default settings. |
|
|
http://demoshop.oxid-esales.com/community-edition/Kiteboarding/Kites/Kite-CORE-GT.html 1. Choose the variant "Test" 1 and "In den Warenkorb" 2. Choose the variant "Test" 2 and "In den Warenkorb" 3. "Warenkorb zeigen" -> aktualisieren |
|
|
Yes exactly, that's the select list i just created, you'll need to create it again to reproduce, demoshop has no select lists per default. |
|
|
Hi, as this does require template changes, we will release it only in 5.1. For earlier versions please use this fix (with small changes from ray suggestion): change azure/tpl/page/checkout/inc/basketcontents.tpl line 84 to: [{if !$basketitem->isBundle() || !$basketitem->isDiscountArticle()}] [{assign var="oSelections" value=$basketproduct->getSelections(null,$basketitem->getSelList())}] [{if $oSelections}] <div class="selectorsBox clear" id="cartItemSelections_[{$smarty.foreach.basketContents.iteration}]"> [{foreach from=$oSelections item=oList name=selections}] [{if $oViewConf->showSelectListsInList()}] [{include file="widget/product/selectbox.tpl" oSelectionList=$oList sFieldName="aproducts[`$basketindex`][sel]" iKey=$smarty.foreach.selections.index blHideDefault=true sSelType="seldrop"}] [{else}] [{assign var="oActiveSelection" value=$oList->getActiveSelection()}] [{if $oActiveSelection}] <input type="hidden" name="aproducts[[{$basketindex}]][sel][[{$smarty.foreach.selections.index}]]" value="[{if $oActiveSelection }][{$oActiveSelection->getValue()}][{/if}]"> <div>[{$oList->getLabel()}]: [{$oActiveSelection->getName()}]</div> [{/if}] [{/if}] [{/foreach}] </div> [{/if}] [{/if }] |