Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?

Question

So I’m currently using Woocommerce and managed to figure how to override templates based on the documentation. Now I have a problem, so i managed to override a specific template let’s say upsell.php. Right now I need to create another upsell.php template that provides a different layout. Lets just call it up-sell-alternate.php

Now my question is it possible to create a hook and fetch that custom template even though it is not part of the woocomerce templates.

I need to reuse various parts of woocommerce templates and provide a different layouts for each of them. I cannot to find something that fits my question on the documentation of woocommerce

0
, , clestcruz 3 years 2020-08-28T07:10:59-05:00 0 Answers 40 views 0

Leave an answer

Browse
Browse