View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002121 | OXID eShop (all versions) | 1. ----- eShop frontend ----- | public | 2010-09-22 14:55 | 2012-12-10 14:37 |
Reporter | MBa | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.6.0_beta2 | ||||
Summary | 0002121: basket.tpl Exceptions are ambiguous | ||||
Description | The article-exception throws the product-id of the article. In the basket.tpl the product-id will be checked, too. But, if you have two differnt articles with the same Id (eg. selectlists or parameters) then you have muliple error-messages under the specific basket-article. | ||||
Steps To Reproduce | Create a article 'Product can be customized' => true Delivery Status = 'If out of Stock, not orderable' Stock = 2 Put this article 2 times in the basket with different texts. Go to basket. Increase one of you basketproducts. Remember the other one have a correct value. So you see, both articles got a error-message. If you increase both basket-articles, both articles have 2 error-messages. The same with select list, too. | ||||
Additional Information | Solution: Add to the Exceptions a basketitem-id und check in the template for this id instead the product-id. For testing: $oEx->setArticleNr($sBasketItemKey);//articleNr will be now index of basketitem basket.tpl Instead: <!-- display only the exceptions for the current article--> [{if $basketproduct->oxarticles__oxid->value == $oEr->getValue('productId') }] <tr> <td class="brd"></td> <td id="test_basket_StockError_[{ $basketproduct->oxarticles__oxid->value }]_[{$key}]" colspan="6"> <span class="err">[{ $oEr->getOxMessage() }] [{ $oEr->getValue('remainingAmount') }]</span> </td> <td></td> </tr> [{/if}] this: <!-- display only the exceptions for the current basketitem--> [{if $basketindex == $oEr->getValue('articleNr') }] <tr> <td class="brd"></td> <td id="test_basket_StockError_[{ $basketproduct->oxarticles__oxid->value }]_[{$key}]" colspan="6"> <span class="err">[{ $oEr->getOxMessage() }] [{ $oEr->getValue('remainingAmount') }]</span> </td> <td></td> </tr> [{/if}] | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
|
I grep 'articleNr' over the complete oxid shop. Found it in: oxbasketitem.php oxarticleexception.php oxorder.php Case sensitive it is only in oxarticleexeption. In all files the articleNr will be only use for throw. - So these entree seems not in use. |
|
bug was resolved adding a basketindex for checking which article was selected |