Tip values
-
We were reading the documentation and we found that the values could be modified with a function, the drawback that we have is that it is not taking values less than 1.
add_filter (‘wc_order_tip_rates’, ‘your_custom_wc_order_tip_rates’);
function your_custom_wc_order_tip_rates ($ rates) {
$ rates = array (0.1,0.25,0.50,1,2);
return $ rates;
}When we add some value, example: 0.10 shows us the tip as zero. Is it possible to modify this part?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Tip values’ is closed to new replies.