Woocommerce - overriding the template through a plugin

前端 未结 3 2023
南旧
南旧 2021-01-14 16:09

I have a question: is there a way to override WooCommerce\'s default template through a plugin the same way you\'d do it with a theme? I have this code:

Clas         


        
3条回答
  •  被撕碎了的回忆
    2021-01-14 16:54

    Few months ago the i had the same requirements. So searched a bit more on the net and found useful code which helped me(with a little more customization as per my requirements).

    For a detailed code with explanation check this and this link. The approach might be different than what you currently using but it results in overriding woocommerce templates in plugin

提交回复
热议问题