I am using woocommerce to develop an ecommerce store. Everything is fine with woocommerce. But I have one problem. As because I want to show some custom images with some texts in the product page(shop based page). So for that I thought wordpress advanced custom fields will be good. I made it install. And now I need to extract the image in the template file. But by going through woocommerce plugin I got that it doesn't use the wordpress template. Woocommerce is generating the total page (producr page) by itself. And Iwant to show some custom fields from wordpress advanced custom fields plugin. So can someone kindly tell me how to do this? Any help and suggestions will be really appreciable. Thanks...
I want that woocommerce shop page where all the products are shown should use my own custom template. So that I can use wordpress advanced custom fields code there
In order to override a Woocommerce template from wp-content/plugins/woocommerce/templates
, create a file with the same name in wp-content/themes/<your theme>/woocommerce
. It will be used instead of the original one.
If you look at one of the original template files, you will actually find this instruction in a comment at the top:
Override this template by copying it to yourtheme/woocommerce/single-product.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With