Button to remove an item from the order
-
I’m looking for a way of adding a button next to each item that will delete it from the order.
The file is:
woocommerce > order > order-details-item.php??I found a function to use, which is: wc_delete_order_item()
It removes all the items if I add it inside the loop. However how do I run the function on a click of a button?
I’ve tried using ajax however having ‘wc_delete_order_item()’ in an external file comes up with ‘Undefined function’.??
Please help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Button to remove an item from the order’ is closed to new replies.