1. Documentation /
  2. Extensions /
  3. Volume Discount Coupons /
  4. API

API

Developer Documentation

This section is provided for WooCommerce developers who want to interact with the API or customize templates. You need an advanced understanding of PHP and WordPress development. If you are not a developer, but would like to find one to help with customization, select a WooExpert or Developer for assistance.

The Volume Discount Coupons extension includes functions that can be used to customize templates.

To render coupon description/info for a product in a template, the $product object can be used as follows:

<?php
    global $product;
    if ( $product ) {
        echo WooCommerce_Volume_Discount_Coupons_Product::render_info( $product );
    }
?>

The WooCommerce_Volume_Discount_Coupons_Shortcodes class provides additional methods that can be used.

WooCommerce

The most customizable eCommerce platform for building your online business.

  • 30 day money back guarantee
  • Support teams across the world
  • Safe & Secure online payment