Displays the ID the catalog product that is the original source of the cart item.


  • priceline – if set to true, will return specific price line id instead of product id (Default: false)


Displays the product ID for the cart item

<?php shopp('cartitem.product'); ?>

Get the product ID for the cart item

<?php $productid = shopp('cartitem.get-product'); ?>

Get the product priceline ID for the cart item

<?php $priceid = shopp('cartitem.get-product','priceline=true'); ?>

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.