I am aware that we can exclude products from deposit function through dashboard because I use Pro version.
But for my case, I don’t want to exclude product. I want to exclude products based on product Variation.
For example, I have one Product name Apple. Within that product, I have one attribute called Variation. There are 3 Variations. Sample, 10×6, 20×10.
Each Variation has different prices. Like: Apple Sample 10$, Apple 10×6 50$, APPLE 20×10 is 100$. And I want to exclude only Apple Sample for deposit and partial payment.
So, I cannot achieve this by using Exclude products because it can exclude only Product (Apple) not Product Variation (Apple Sample).
That’s why I want to know whether we can achieve it using custom code in function.php.