Is In Cart

Evaluates whether a product is in stock. The advantage of using this tag over checking inventory information directly on the channel entry is that this take into account item options and cartthrob_calculate_inventory hook results.

Table of Contents

Parameters

entry_id

Entry ID of the product.

entry_id="123"

Examples

{if '{exp:cartthrob:is_in_stock entry_id="123"}'}
    In Stock
{if:else}
    Out of Stock
{/if}