Support » Plugin: WooCommerce » Woocommerce loop counting: every 3 item

  • Resolved evada

    (@evada)


    I need to do something like that in the product display loop every 3rd product has a div with an image. Generally, I can’t find the file responsible for the product display loop. Where can I find it?

    I found something like hook “loop_shop_columns” and I try to count the number of displayed items, then if QUANTITY == 3 then I put <div class = “test”> </div> just asking where can I find it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @evada,

    Based on what you described, it sounds like you would need to override the woocommerce/archive-product.php file. I’d suggest taking a look at the links in this forum post, as they do a pretty good job of explaining the product loop for the archive pages.

    Plugin Support Shaun Kuschel a11n

    (@shaunkuschel)

    Automattic Happiness Engineer

    Hey @evada! Since we haven’t heard back from you in a while, I’m going to mark this as resolved. If you still need assistance with this or have any further questions, please feel free to create a new thread. Thanks!

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