For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set cross-selling settings

Use the setCrossSellSettings method to customize the way your cross-sell campaigns are displayed in the shopping cart.

Request parameters

Parameters
Type / Description

displayShortDescription

Optional (boolean)

Determines if the product short description is displayed next to the thumbnail or not.

displayProductsMax

Optional (int)

The maximum number of recommended products; We recommend adding a maximum of 3 products as cross-selling options.

maxThumbSize

Optional (int)

Maximum product thumbnail size. Must be any of [60, 80, 100, 150].

Request sample

<?php

require ('PATH_TO_AUTH');

$jsonRpcRequest = array(

    'jsonrpc' => '2.0',
    'method' => 'setCrossSellSettings',
    'params' => [\
        $sessionID,\
        [\
            'displayProductsMax' => 10,\
            'maxThumbSize' => 100,\
            'displayShortDescription' => false,\
        ]\
    ],
    'id' => $i++
);

callRPC((Object)$jsonRpcRequest, $host);

Response

The response of the setCrossSellSettings method is the input object with the settings updated.

Last updated

Was this helpful?