[memb_has_in_cart]
Description
Checks the live cart for the listed product IDs; the content shows when at least one matches. Useful for cross-sells tied to cart contents ("You added X, add Y for 20% off").
Shortcode Examples
[memb_has_in_cart product_id="42,67"] bundle upsell [/memb_has_in_cart]
Shortcode Parameters
product_id
Comma-separated product IDs to look for in the cart.
Default: ''.
txtfmt
Text format applied to the output.
capture
Output capture mode.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | Yes |
| Nestable | Yes |
| Accepts formatting | Yes |