无法使用handleSetOrderByCommerceId

时间:2015-09-18 14:24:49

标签: java atg

我无法使用commerceItem更改handleSetOrderByCommerceId.PFB的数量。

我正在使用Art Technology Group的网络商务平台。

这是我的代码段:

for (CommerceItem cI : commerceItems) {

    if (isLoggingDebug()) {
        logDebug("inside handleRemoveItemFromOrder : commerceItems iteration : "+cI.getId() +" : "+ cI.getCatalogRefId());
    }
    request.setParameter(cI.getId(), cI.getQuantity());

    if(cI.getCatalogRefId().equals(dealTobeDeleted)){
        long quantity = cI.getQuantity();
        //String currentSku = cI.getCatalogRefId();
        if(quantity > 1){

            // Set the new quantity for the commerce item being updated.
            request.setParameter(cI.getCatalogRefId(), quantity-1);
            setCheckForChangedQuantity(true);
            result = super.handleSetOrderByCommerceId(request, response);

            if (isLoggingDebug()) {
                logDebug("inside handleRemoveItemFromOrder : after super call handleSetOrderByCommerceId : "+result);
            }

        }else{
            String[] dealArray = new String[]{cI.getId()};
            repoItemIdOfCommerceItemGettingRemoved = cI.getCatalogRefId();
            setRemovalCommerceIds(dealArray);
            if (isLoggingDebug()) {
                logDebug("inside handleRemoveItemFromOrder : before super call handleRemoveItemFromOrder : "+repoItemIdOfCommerceItemGettingRemoved +" : "+getRemovalCommerceIds().length);
            }
            break;
        }                                               
    }
}

日志说:

**** debug  Fri Sep 18 15:49:55 CAT 2015    1442584195886   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-37/atg/commerce/order/purchase/CartModifierFormHandler    no form errors - staying on same page.
**** debug  Fri Sep 18 15:49:55 CAT 2015    1442584195886   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-37/atg/commerce/order/purchase/CartModifierFormHandler    no form errors - staying on same page.
**** info   Fri Sep 18 15:49:55 CAT 2015    1442584195889   /com/cellc/online/commerce/pricing/calculators/OrderMonthlyCostCalculator   monthlyPrice::::::::::::::509.0
**** debug  Fri Sep 18 15:49:55 CAT 2015    1442584195889   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-37/atg/commerce/order/purchase/CartModifierFormHandler    runProcess skipped because chain ID is null
**** debug  Fri Sep 18 15:49:55 CAT 2015    1442584195889   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-37/atg/commerce/order/purchase/CartModifierFormHandler    no form errors - staying on same page.
**** debug  Fri Sep 18 15:49:55 CAT 2015    1442584195889   /atg/commerce/order/OrderManager    Order: o8950004  Version in object: 183  Version in repItem: 183
**** debug  Fri Sep 18 15:49:56 CAT 2015    1442584196206   /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-37/atg/commerce/order/purchase/CartModifierFormHandler    no form errors - staying on same page.

0 个答案:

没有答案