ShoppCollection()

get and set the global Collection object.

ShoppCollection ( &$Object )

@param Collection (optional) $Object the Collection object to set to the global context.
@return mixed if the global Collection context isn't set, bool false will be returned, otherwise the global Collection object will be returned

Description

get and set the global Collection object (ie. ProductTag, ProductCategory, SmartCollection)

Example

// Load products tagged "tagname"
ShoppCollection(shopp_tag_products('tagname'));
// get the current global Collection, if applicable
$Collection = ShoppCollection();

See Also

You must be logged in to post a comment.

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

Skip to toolbar