1. Documentation /
  2. Volume Discount Coupons /
  3. 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:

    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.