• Resolved hwamart

    (@hwamart)


    So I am using the following snippet to add a prefix and suffix to my order number, can anyone help with getting the order tracker to work so the customer could enter the fuller order number in the correct format without stripping off the prefix/suffix?

    add_filter( 'woocommerce_order_number', 'change_woocommerce_order_number' );
    
    function change_woocommerce_order_number( $order_id ) {
        $prefix = 'PYXS-';
        $suffix = '-44';
        $new_order_id = $prefix . $order_id . $suffix;
        return $new_order_id;
    }

    Is this even the right file to be looking at /woocommerce/order/form-tracking.php

Viewing 1 replies (of 1 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    Since this is a few weeks old, and about customization, I am going to mark as resolved. A lot of people have found help in the Advanced WooCommerce group with things like this, so I would recommend checking there, or we highly recommend contacting one of the services on our Customizations page (https://woocommerce.com/customizations/)

Viewing 1 replies (of 1 total)
  • The topic ‘Order Tracker – Custom Order Number’ is closed to new replies.