Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #742127

    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

    #742319

    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

    #742821

    Hi Basilis,

    Thanks, I wasn’t sure if Enfold followed the same structure. Thats great.

    #742940

    Hi,

    Glad we could help :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.