Card Layouts

Make sure you familiarize yourself with the following important concepts of our API:
Prices and Quantities, Products and Articles, Sync Markers
After taking the time to understand these concepts, you will much better understand the basics of our API.

Contents

Introduction

Card layouts represent the available fields for articles, relations and employees, and their configuration and visual representation.

getArticleCardLayout Retrieve the card layout for articles


updateArticleCardLayout Update the card layout for articles

 array(
    'cardLayoutField' => array(
      array(
        'cardLayoutFieldId' => xxx, // insert intended cardLayoutFieldId
        'infoPopup' => true, // use this field in the information pop-up
      ),
    ),
  ),
);

// Then we call the updateArticleCardLayout() function wrapped in a try/catch block to intercept any exceptions.
try {
  if (false !== $mplusqapiclient->updateArticleCardLayout($article_card_layout)) {
    exit('Updated article card layout.');
  } else {
    exit('Unable to update article card layout.');
  }
} catch (MplusQAPIException $e) {
  exit($e->getMessage());
}