Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checar_quantidade($order_id) {
- $order = new WC_Order( $order_id );
- if($order['product_id'] == 8){
- add_qtd($order['qtd'] );
- }
- }
- add_action( 'woocommerce_order_status_completed', 'checar_quantidade' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement