JSON API - Also Bought Products - query list of unassigned products

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TipPro
    Mivite


    • Apr 2006
    • 293

    #1

    JSON API - Also Bought Products - query list of unassigned products

    I have no problem retrieving assigned products. According to the documentation, I should be able to set "Assigned" to false to include unassigned products. Here is my request and response.

    docs: https://apps.miva.com/mm5/graphics/p...umentation.pdf

    REQUEST
    Code:
     [TABLE]
    [TR]
    [TD] [/TD]
     			[TD]Array[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]([/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][Store_Code] => ***[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][Product_Code] => *******[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][Count] => 5[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][Assigned] =>[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][Module_Code] => pdsalsobought[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][Module_Function] => AlsoBoughtProductsList_Load_Query[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD])[/TD]
     		[/TR]
    [/TABLE]

    RESPONSE
    Code:
     [TABLE]
    [TR]
    [/TR]
    [TR]
    [TD]Array[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD]([/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD][success] => 1[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     			[TD])[/TD]
     		[/TR]
    [TR]
    [TD] [/TD]
     		[/TR]
    [/TABLE]
  • Nick
    Super Moderator











    • Dec 2011
    • 575

    #2
    You will also need to include the Unassigned parameter. In the documentation PDF it is on the top of page number 10 (12th page in the document). This will include unassigned also bought products in the product list results.
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment

    • TipPro
      Mivite


      • Apr 2006
      • 293

      #3
      I missed that; works as expected. Thanks for the quick response.

      Comment

      Working...
      X