Thread Starter
MathF
(@mathf)
First off before i continue i do have to say i’m making a plugin and not a theme (as these things seem to be vastly different).
I already created that function as you said (had found that before but it doesn’t really change anything or i’m doing something wrong)
function woocommerce_mytype_add_to_cart() {
wc_get_template( WP_PLUGIN_DIR.'/mypluginname/templates/mytype.php' );
}
I also have my template, but don’t I miss a certain hook or… that lets woocommerce know that it should load my template instead of the standard product template
Also mytype’s extends WC_Product and not WC_Simple_Product (don’t know if it matters for this)
Thread Starter
MathF
(@mathf)
@mike Jolley first of thanks for your response but could provide a small code/plugin example that i could go off from (so i can understand it better) as the explanation you’ve given me is rather minimal and i’m by far an expert 🙂
Thread Starter
MathF
(@mathf)
Did not see that the $wp_list_table = _get_list_table(‘WP_Posts_List_Table’); Did work