Skip to content

flycartinc/woo-discount-rules-sample-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

woo-discount-rules-sample-filter

Example plugin to add additional filter in discount rules

You can add multiple filters through the method protected static function setFilters(){ self::$filter_types['product_weight'] = array( 'label' => __('Product weight', 'woo-discount-rules-sample-filter'), 'group' => __('Product', 'woo-discount-rules-sample-filter'), 'template' => WDR_SAMPLE_FILTER_PLUGIN_PATH . 'views/filters/weight.php', ); }

here the backend UI will be handled in the path 'template' => WDR_SAMPLE_FILTER_PLUGIN_PATH . 'views/filters/weight.php',

and the filter checks for front end(on apply rules) can be done through the method checkFilterPassed

About

Example plugin to add additional filter in discount rules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages