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.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.