Tagged: Shop Page, woocommerce
Im working on the Enfold theme for my client and want to write a conditional statement for a specific product on the woocommerce shop page.
We have a dummy product, but we don’t want the product to link to the product page. We want it to links elsewhere.
I need to write a conditional statement that will change the link on the product image:
If product ID {
Custom link
} else {
the_permalink
However, I’ve checked the Enfold theme folder and the Woocimmerce folder is not present. I see you have integrated woocommerce using a configure – which I’m not familiar with.
What file/files do I need to edit to make the above possible?
Thanks
Hey timpro!
If you want to modify the template files, you can use the following structure
https://docs.woocommerce.com/document/template-structure/
Let us know if we can do anything else for you.
Thanks a lot
Cheers!
Basilis
Hi Basilis,
Thanks, I wasn’t sure if Enfold followed the same structure. Thats great.