Home Forums Newsletter Plugin Support tags and categories filters in default theme aren't working with woocommerce

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15471
    ricferr
    Participant

    Hi,

    I’m using your plugin with woocommerce. I’m trying to create a custom theme that would send a newsletter with selected products based on their tags and/or categories. I tried using the default theme as a starting point, but that theme only fetches the articles/posts tags and categories and not the products ones.

    I tried messing with the controls.php file, but I was going out of my depth. I understand that there should be some control that would call for the products tags and categories, but I just don’t know how to get there.

    Can you help me out with this?

    Thanks in advance

    best regards

    RF

    #15474
    Stefano
    Keymaster

    Hi, the default theme should already show the post types to be activated, but if you filter per category probably the taxonomy of products is not recognized. If you remove every tag or category filter, do the products are extracted?

    #15480
    ricferr
    Participant

    Hi Stefano,

    The filter is working fine for posts/pages’ tags and categories. Products use a separate range of tags/categories which aren’t fetched with the default theme filter.

    I tried to tamper with the controls.php’s function “categories”, replacing get_categories by get_products_cat, but I’m not even sure if that’s the right approach or the right function. I’m not a true programmer and that’s why I’m asking for your help.

    Thanks for everything

    RF

    #15489
    Stefano
    Keymaster

    Probably they’re using a custom taxonomy. It would be simple to find the filter to be passes to the post extraction theme and use them directly in a child theme, removing the options panel for your custom theme.

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