Cart

shopp('cart.apply-code')

Displays an empty text input box and a button to accept promotional codes and apply them to the cart.

shopp('cart.discount')

Displays the total discount amount currently applied to the cart in the store’s default currency.

shopp('cart.discount-name')

Displays the name of the discount currently applied. Used within a shopp('cart'.discounts') loop.

shopp('cart.discounts')

Loops through each discounts applied to the current shopping cart.

shopp('cart.discounts-available')

Used to test whether the promotions limit has been reached (when a promotions limit has been set.)

shopp('cart.download-items')

Loops through only the downloadable items in the cart (ignoring other types of products).

shopp('cart.empty-button')

Renders a button that empties the shopper’s cart completely.

shopp('cart.function')

Includes hidden functional elements needed to control how the cart is managed.

shopp('cart.has-discount')

Used to test whether there are any discount applied to the shopping cart or not.

shopp('cart.has-discounts')

Provides a simple test mechanism to allow different template layouts to be shown depending on whether there are promotions applied to the current cart.

shopp('cart.has-downloads')

Used to test whether the cart has items that are derived from a download-product type.

shopp('cart.has-items')

Provides a simple test mechanism to allow different template layouts to be shown depending on whether there are items in the cart or not.

shopp('cart.has-promos')

Provides a simple test mechanism to allow different template layouts to be shown depending on whether there are promotions applied to the current cart.

shopp('cart.has-ship-costs')

Used to test if the cart has shipping costs associated with it.

shopp('cart.has-shipped')

Used to test whether the cart has items that need to be physically shipped to an address.

shopp('cart.has-shipping-methods')

When there is physical products to be shipped in the cart, this tag is used to determine if there is one or more shipping method estimates.

shopp('cart.has-taxes')

Used to test whether there are taxes calculated for the order.

shopp('cart.items')

Loops through the items in the cart to display information specific to a single item.

shopp('cart.lastitem')

This is a programmer’s tag, which returns the last item object added to the cart.

shopp('cart.needs-shipped')

Used to test whether shipping is enabled and that there are goods in the cart that need shipped.

shopp('cart.needs-shipping-estimates')

Used to test whether shipping estimates are needed based on your current cart (has physical products that need shipped) and shipping settings (whether shipping cost will vary).

shopp('cart.promo-code')

Displays an empty text input box and a button to accept promotional codes and apply them to the cart.

shopp('cart.promo-discount')

Shows the total discount for an applied promotion. Used within a shopp(‘cart’,’promos’) loop.

shopp('cart.promo-name')

Displays the name of the promotion currently applied. Used within a shopp('cart','promos') loop.

shopp('cart.promos')

Loops through the promotions applied to the cart to display information specific to each applied promotion.

shopp('cart.promos-available')

Used to test whether the promotions limit has been reached (when a promotions limit has been set.)

shopp('cart.referrer')

Displays the URL of the previous page the visitor was viewing from which a link to the cart page was followed.

shopp('cart.shipped-items')

Loops through only the shipped items in the cart (ignoring other types of products).

shopp('cart.shipping')

Displays the cost of shipping of the cart in the store’s default currency.

shopp('cart.shipping-estimates')

Displays a set of inputs for getting shipping estimates in the cart, by allowing the customer to set basic address information.

shopp('cart.sidecart')

Displays the sidecart layout as defined in the [[sidecart.php template file]].

shopp('cart.subtotal')

Displays the subtotal amount of the cart in the store’s default currency.

shopp('cart.tax')

Displays the total tax assessed for the cart in the store’s default currency.

shopp('cart.total')

Displays the grand total amount for the cart in the store’s default currency.

shopp('cart.total-discounts')

Displays the total number of promotions currently applied to the shopping cart.

shopp('cart.total-items')

Displays the total number of unique items in the shopping cart.

shopp('cart.total-quantity')

Displays the total quantity of all items in the cart.

shopp('cart.totalpromos')

Displays the total number of promotions currently applied to the shopping cart.

shopp('cart.update-button')

Renders a button that when clicked will cause the shopping cart to recalculate all totals including prices, promotional discounts, shipping, and taxes.

shopp('cart.url')

Displays the shopping cart page permalink for use in href attributes of HTML anchor <a> tags or the action attribute of a <form> tag.

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

Skip to toolbar