Back to Website
Show / Hide Table of Contents

Interface IConfigProductInformationAJAX

A widget that is used to get product interface.

{
  "widgets": [
    {
      "name": "pim-ajax",
      "type": "pim-ajax",
      "params": {
        "productId": "{{ Product.id }}",
        "options": {"7804":"11519"},  // { "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }
        "settings": {
             "designs": {
                 "enabled": true
              },
             "variants": {
                 "enabled": true
              },
             "mockups": {
                 "enabled": true
              }
         },
         "eventsCallbacks": {
              "options": {
                "onError": "{{ #function(err) console.warn(err); }}",
                "onSuccess": "{{ #function(response) console.warn(response); }}"
              },
              "designs": {
                 "onError": "{{ #function(err) console.warn(err); }}",
                 "onSuccess": "{{ #function(response) console.warn(response); }}"
              },
              "variants": {
                 "onError": "{{ #function(err) console.warn(err); }}",
                 "onSuccess": "{{ #function(response) console.warn(response); }}"
              }
          }
          }
        ]
      }
    }
  ]
}
Package: ui-framework

Properties

choices

Declaration
choices: Record<string, number[]>
Property Value
Type Description
Record<string, number[]>

currentSku

Declaration
currentSku: string
Property Value
Type Description
string

eventsCallbacks

Declaration
eventsCallbacks: Object
Property Value
Type Description
Object

options

Declaration
options: Record<string, string | string[]>
Property Value
Type Description
Record<string, string | string[]>

productId

Declaration
productId?: number
Property Value
Type Description
number

productLinkId

Declaration
productLinkId?: number
Property Value
Type Description
number

productVersionId

Declaration
productVersionId?: number
Property Value
Type Description
number

settings

Declaration
settings: Object
Property Value
Type Description
Object
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback