View Issue Details

IDProjectCategoryView StatusLast Update
0005021OXID eShop (all versions)1.03. Basket, checkout processpublic2013-03-26 13:53
Reporterray 
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.7.3 / 5.0.3 revision 54408 
Target VersionFixed in Version4.8.0_5.1.0_beta1 
Summary0005021: wrong code in account/order.tpl causes crash
Descriptionaccount/order.tpl line 79:

                                    [{* Commented due to Trusted Shops precertification. Enable if needed *}]
                                    [{*
                                    [{oxhasrights ident="TOBASKET"}]
                                    [{if $oArticle->isBuyable() }]
                                      [{if $oArticle->oxarticles__oxid->value }]
                                        <a id="accOrderToBasket_[{$order->oxorder__oxordernr->value}]_[{$smarty.foreach.testOrderItem.iteration}]" href="[{ oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=account_order" params="fnc=tobasket&aid=`$oArticle->oxarticles__oxid->value`&am=1" }]" rel="nofollow">[{ oxmultilang ident="ADD_TO_CART" }]</a>
                                      [{/if }]
                                    [{/if }]
                                    [{/oxhasrights}]
                                    *}]

should be:
[{oxhasrights ident="TOBASKET"}]
                                    [{if $oArticle->oxarticles__oxid->value && $oArticle->isBuyable() }]

instead of:
[{oxhasrights ident="TOBASKET"}]
                                    [{if $oArticle->isBuyable() }]
                                      [{if $oArticle->oxarticles__oxid->value }]
Steps To Reproduceuncomment the lines to enable "to basket" functionality in order history
Additional Informationrelated to https://bugs.oxid-esales.com/view.php?id=4547
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP Versionany
MySQL Versionany

Activities

ray

2013-03-26 12:35

reporter   ~0008533

donĀ“t forget to delete the second [{/if }]

(like I did at the moment - wondering why the page was not loading...)