Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Change Add-To-Cart-Button based on evaluate_dependencies()

$
0
0

Replies: 0

Is there a way to use the public function evaluate_dependencies( $item ) from class WC_Product_Dependencies in my child themes function.php to change/hide the add-to-cart-button, if dependency requirements are not met?
Is it maybe even possible to even get/use the vars like $ownership_dependency_result? Any help would be really appreciated.


Viewing all articles
Browse latest Browse all 59525

Trending Articles