getUpsells
Syntax
getUpsells( product_id )
Returns the upsell product IDs for an initial product.
Access rights
Full access required.
Arguments
product_id – The product ID in Digistore24
Return data
[data] => Array
(
[product_id] => 50
[upsells] => Array
(
[y] => 51
[yn] => 52
[yy] => 53
[yny] => 52
[yyy] => 54
[yyyy] => 55
[yyyn] => 55
),
[product_options] => Array( ... )
)
upsells
is the upsell tree.
The keys of the array are the positions in the upsell process:
y = The first upsell offer after the initial sale yy = The upsell offer after the buyer has bought the first upsell offer. yn = The upsell offer if the buyer DID NOT buy the first upsell offer.
A position
- consists only of y and n
- always begins with a y
- consists of 1 to 5 characters
Was this helpful?