shopp('product.variation')

Displays a specified property from the current variation in a shopp('product','variations') loop.

Options

  • id: Displays the database ID of the pricing variation.
  • label: Displays the full label of the variation. The label is built from a comma-separated list of the option names that make up a given variation.
  • type: Displays the type of the pricing variation (e.g. Shipped, Virtual, Download, Donation)
  • sku: Displays the SKU (Stock Keeping Unit) of the product pricing variation.
  • price: Displays the price of the product’s variation in the currency format associated with the store’s base of operations. The tax behavior of the price is the same as the shopp(‘product’,’price’) tag and can be overriden by the taxes option.
  • saleprice: Displays the price of the product’s variation in the currency format associated with the store’s base of operations. The tax behavior of the price is the same as the shopp(‘product’,’saleprice’) tag and can be overriden by the taxes option.
  • stock: Displays the current stock of the product’s pricing variation.
  • weight: Displays the weight of the product’s pricing variation.
  • shipfee: Displays the shipping fee of the product’s pricing variation in the currency associated with the store’s base of operation setting.
  • sale: Returns a boolean true or false value representing whether the product’s pricing variation is “on sale”. This can be tested against using a PHP if statement.
  • shipping: Returns a boolean true or false value representing whether the product’s pricing variation has shipping enabled. Shipping enabled for a pricing variation means shipping costs will be calculated for the product in the cart. This can be tested against using a PHP if statement.
  • tax: Returns a boolean true or false value representing whether the product is taxable. This can be tested against using a PHP if statement.
  • inventory: Returns a boolean true or false value representing whether the product’s pricing variation has inventory tracking is enabled.

Examples

<?php shopp('product','variation'); ?>

See Also

  1. Avatar of wbickley

    Worth mentioning here that you can still use the shopp(‘product’, ‘getvariation’, ‘option’) to return the value, and if you wish to you can use the return parameter like shopp(‘product’, ‘variation’, ‘label&return=true’).

    October 14th   #

You must be logged in to post a comment.

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

Skip to toolbar