• Resolved veneetsayyer11

    (@veneetsayyer11)


    I Want to hide the tracking details box on the order view page for some of my orders depends on the courier selections. Is there any way to do that?
    Like if an order is shipped via my custom provider or via Shadowfax then I don’t want to show the tracking details box for that specific order.
    If not possible right now then I request you to create something for this in the next update.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Zorem

    (@zorem)

    Hi, sorry, this is not in the plugin scoop, it’s custom development.

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

    Can you please share hooks or filters to add new row and column to your Tracking Information table?
    Screenshot- https://nimb.ws/0n8Ixs

    Plugin Author Zorem

    (@zorem)

    Hi, we use the WC email hooks, I think that you will need to hire a developer to help you with custom development.
    Thanks.

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

    I just want to add a new row or column on the order view page not in mails.

    Plugin Author Zorem

    (@zorem)

    Yes, I understand but its still custom work.

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

    Any way to get these details on the view order page?
    “id”: 2171201,
    “key”: “_wc_shipment_tracking_items”,
    “value”: [{
    “tracking_provider”: “delhivery”,
    “tracking_number”: “2438118618525”,
    “date_shipped”: “1604793600”,
    “status_shipped”: “0”,
    “tracking_id”: “d50a049ecc6efe1553e7a7f1174de5b4”

    Like we get other details by using these simple get commands- https://nimb.ws/aQ03gW
    Q- What I am trying to do?
    A- I am trying to create my own tracking information table with mix of your plugin details + my own custom details.

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

    Issue Solved.

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

    Hi this function is working fine in Theme > function.php but when I added this in my custom plugin it is showing 401 error. Why is this happening?
    I used your Get shipment Tracking API from this documentation- https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/rest-api-support/

    //CUSTOM TABLE FOR ADVANCED SHIPMENT PLUGIN START//
    // add_action( ‘woocommerce_view_order’, ‘get_order_details’, 0 );
    // function get_order_details( $order_id ){
    // $ch = curl_init();
    // $url = ‘https://abc.com/wp-json/wc-ast/v3/orders/’.$order_id.’/shipment-trackings/’;
    // $username = ‘ck_992b***************’;
    // $password = ‘cs_5288***************’;
    // curl_setopt($ch, CURLOPT_URL, $url);
    // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    // curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
    // curl_setopt($ch, CURLOPT_USERPWD, “$username:$password”);
    // curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “GET”);
    // curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’));

    // $res = curl_exec($ch);
    // curl_close($ch);

    // $json_response = json_decode($res);
    // $tracking_provider = $json_response[0]->tracking_provider;
    // $tracking_number = $json_response[0]->tracking_number;
    // $tracking_link = $json_response[0]->tracking_link;
    // $date_shipped = $json_response[0]->date_shipped;
    // $date_shipped = date(‘d F Y’, strtotime($date_shipped));

    // echo $tracking_provider.'<br>’;
    // echo $tracking_number.'<br>’;
    // echo $tracking_link.'<br>’;
    // echo $date_shipped.'<br>’;
    // echo ‘[row style=”collapse” col_style=”solid”]

    // [col span__sm=”12″ border=”2px 2px 2px 2px” border_margin=”5px 5px 5px 5px” border_radius=”0″]

    // <h3><span data-text-color=”primary”>TRACKING DETAILS</span></h3>
    // [divider width=”full” color=”rgb(0, 0, 0)”]

    // <p>Courier: ‘.$tracking_provider.'</p>
    // <p>Tracking/ AWB Number: ‘.$tracking_number.'</p>
    // <p>Dispatched On: ‘.$date_shipped.'</p>
    // [/col]

    // [/row]
    // [gap height=”10px”]
    // <p>[button text=”Live track your order” expand=”0″ icon=”icon-map-pin-fill” icon_reveal=”true” link=”‘.$tracking_link.'”]</p>’;
    // }

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

    please check

    Thread Starter veneetsayyer11

    (@veneetsayyer11)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Want to hide tracking details box’ is closed to new replies.