Skip to Content
avatar image
Former Member

How to add products in buying history

Dear Community,

what are the prerequisites that products are being displayed in the buying history on the customer account “commerce”-tab?

  • Is a specific interaction needed? E.g. SHOP_CHECKOUT_SUCCES?
  • Can also custom interactions be used?
  • How should the purchased product be delivered? As interaction product?

Unfortunately, I can not find any information about this in the SAP-documents.

Thank you!

Best Peter

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Apr 19, 2017 at 06:03 PM

    Hi,

    Please find my response for each point as follow:

    1. You need to create a "SALES_ORDER" as interaction to generate Buying History with Products.

    2. I am not sure but I do not think we can use Custom Interaction types to generate buying history.

    3. Regarding Point 3 for Interaction Product, Can you please be more clear about your query?


    Thanks

    Saurabh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      For SHOP_CHECKOUT_SUCCES we do not have the order number, except as a part of the LAUNCH_URL (we are using standard web actions from Hybris Commerce to Hybris Marketing). The SALES_ORDER has the order number in the SOURCE_OBJECT_ID field. Both interactions have the same SOURCE_SYSTEM_TYPE and SOURCE_SYSTEM_ID.

      IF both interactions would have the order number in the SOURCE_OBJECT_ID field, you might use that for matching.

      However, The customer journey insight seems to create the customer journey based on the timestamps (e.g. quite buggy), and we have not seen a standard way that links these two interactions in Hybris Marketing.

  • avatar image
    Former Member
    Apr 20, 2017 at 12:30 AM

    Regarding 3:

    Assuming you will create Interaction SALES_ORDER, when sending the product information these should have been imported using Import Data or integrated from External System.

    For instance the header of your Interaction

    <d:CommunicationMedium>BUSINESS_DOCUMENT</d:CommunicationMedium>
    <d:InteractionType>SALES_ORDER</d:InteractionType>

    The Product(s) will be sent along with the above interaction as following

    <d:ItemId>00000000000000000052</d:ItemId> 
    <d:ItemType>SAP_HYBRIS_PRODUCT</d:ItemType>
    

    Then that product should already exist as SAP Hybris Marketing product master data e.g. in the tables

    CUAND_PROD_CATEG
    CUAND_PROD_DESC
    CUAND_PROD_FACET
    CUAND_PROD_FDESC
    CUAND_PROD_ROOT
    CUAND_PROD_TOCAT
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 23, 2017 at 06:56 PM

    Thank you for your answers!
    may I add some additional questions:

    We'd like to differentiate if a purchase was made in nlineshop-1, onlineshop-2 or in a “offline” store (marketing location).
    Is that even possible with only one SALES_ORDER-interaction? how?
    What is the purpose of the SHOP_CHECKOUT_SUCCES interaction, if it's not for sales oders?

    Must the "Communication Medium" set to "BUSINESS_DOCUMENT" - what is the purpose of "BUSINESS_DOCUMENT"? Can also e.g. "WEB" be used?

    Thank you once again,
    Best Peter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 24, 2017 at 04:45 AM

    Dear Peter,

    Let's start with the easy answer first. Regarding the communication method, besides business document you can use web, or any other value that you customize in the Hybris Marketing application server. See "Channel Assignment" in below website for examples.

    Import of Interaction Data Using OData Services

    If you look above, you can see that the Business Document with IA type Sales Order can have different Interaction Channels, maybe you could try to play around with that. Or what is easier is to use source system to differentiate between the types of shops.

    SourceSystemIdID of the system which stores the raw data or detailed information, such as a clickstream monitoring IDSourceSystemTypeType of system which stores the raw data or detailed information, such as a clickstream monitoring tool
    Add comment
    10|10000 characters needed characters exceeded