custom view of orders using bigcommerce wordpress plugin


i’m working on a website that uses the bigcommerce plugin for wordpress:

and i’d like to make a custom view of a customer’s orders, that lists the names of every product that customer has ordered. the default order history page provided by the plugin mostly does this, but in an order with multiple products will list one of the products followed by “and # other item(s)”.

and i was thinking i could then get the info i need from the order detail page, by using each individual order detail page’s url and passing it to using get_page:

however, i don’t think the urls are actually referring to specific pages, but rather querying something from bigcommerce via the url. i don’t know how to confirm this, but i can’t seem to get info back using the get_page function.

my other thought is the order is a custom post type, but using code found here:

 * Check if a post is a custom post type.
 * @param  mixed $post Post object or ID
 * @return boolean
function is_custom_post_type( $post = NULL )
    $all_custom_post_types = get_post_types( array ( '_builtin' => FALSE ) );

    // there are no custom post types
    if ( empty ( $all_custom_post_types ) )
        return FALSE;

    $custom_types      = array_keys( $all_custom_post_types );
    $current_post_type = get_post_type( $post );

    // could not detect current type
    if ( ! $current_post_type )
        return FALSE;

    return in_array( $current_post_type, $custom_types );


if ( is_custom_post_type() )
    print 'This is a custom post type!';

those detail pages do not return as custom post types.

any help on this is much appreciated! thank you!!!

user1693174 2 months 2022-11-28T07:55:16-05:00 0 Answers 0 views 0

Leave an answer