Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-264

Order manager order entry still looking at tracking code in cookie

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Trunk, Upcoming Branch
    • None
    • marketing, order
    • None
    • Bug Crush Event - 21/2/2015

    Description

      It's a copy of the old jira issue http://jira.undersunconsulting.com/browse/OFBIZ-700 from Si Chen.

      ==========================================================

      If you visit the ecommerce store with a tracking code (?atc=${trackingCodeId}) and then visit the order manager and create an order, the order manager's order will also be attached to the tracking code. This is because in CheckoutEvents.java there is this block of code in createOrder:

      //get the TrackingCodeOrder List
      List trackingCodeOrders = TrackingCodeEvents.makeTrackingCodeOrders(request);
      String distributorId = (String) session.getAttribute("DISTRIBUTOR_ID");
      String affiliateId = (String) session.getAttribute("AFFILIATE_ID");
      String visitId = VisitHandler.getVisitId(session);
      String webSiteId = CatalogWorker.getWebSiteId(request)

      callResult = checkOutHelper.createOrder(userLogin, distributorId, affiliateId, trackingCodeOrders, areOrderItemsExploded, visitId, webSiteId);

      We need to find some way to let the checkout code know that the order is coming from the order manager and hence disable it from figuring out the tracking code.

      One possible solution is to set a parameter in web.xml for disable tracking code, so if it is turned on, then we skip this block of code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            risalitm Marco Risaliti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: