farboud22
Forum Replies Created
-
Forum: Plugins
In reply to: [Discount Rules for WooCommerce] At the same time discount to 2 productI create 2 discount


It is work and set discount to products but all discounts is set to first product, but we need set discount once for each product.
Thanks a lot
I just add ‘include php file’ at the firstMy plugin is connected to MNG Kargo (provider) and it get all data about order tracking.
Like: ‘tracking_provider’ , ‘tracking_number’ , ‘date_shipped’ and etc.Now i want to add or insert Tracking detail to order (programmatically)
What is the best way?
Unfortunately i can’t use this code:
<?php if ( class_exists( 'WC_Advanced_Shipment_Tracking_Actions' ) ) { $order_id = '123'; //Replace with your order id $tracking_provider = 'USPS'; //Replace with your shipping provider $tracking_number = '123123'; //Replace with your tracking number $date_shipped = '2020-06-22'; ////Replace with your shipped date $status_shipped = 1; // 0=no,1=shipped,2=partial shipped(if partial shipped order status is enabled) if ( function_exists( 'ast_insert_tracking_number' ) ) { ast_insert_tracking_number($order_id, $tracking_number, $tracking_provider, $date_shipped, $status_shipped) } }I include php file and new calss()
But i don’t khow why with this way i cant do this.——————————–
In fact, I want to add tracking information to the orders
- This reply was modified 5 years, 8 months ago by farboud22.
I made a plugin for myself that gives all information of tracking.
like tracking number , time and etc.Now i want to send data from my plugin to this plugin when give track id of order.
Problem just insert tracking number , tracking provider and etc. to order.
I have all details just i want to add programilly tracking data.