WordPress.org

Ready to get started?Download WordPress

Forums

WP-Spreadplugin
[resolved] Get Only categories with products in (4 posts)

  1. Doc Schneider
    Member
    Posted 8 months ago #

    Hi Thimo,

    first of all thank you for this real great plugin! Love it :)...

    At the moment I'm customizing the plugin for my therms and I asked, if its possible to get only these categories inside the select, where products exists?

    Thanx for your help
    King regards
    Danny

    http://wordpress.org/plugins/wp-spreadplugin/

  2. Thimo Grauerholz
    Member
    Plugin Author

    Posted 8 months ago #

    is possible, but not easy :) this must be done by reading the articles first and read the assigned category and then build the category selection :)

  3. Doc Schneider
    Member
    Posted 8 months ago #

    Thanx for replying :)...

    Ok, sounds logically. Is there a function inside the plugin, where I get the needed lists? Especially the article/category list, so that I can customize the loop for filling the select?

    Best regards from Berlin
    Danny

  4. Thimo Grauerholz
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,

    actually not, because there was no need of something like this, so I'm sorry.
    But you could read your articles categories via:
    http://api.spreadshirt.net/api/v1/shops/' . self::$shopOptions['shop_id'].'/articleCategories?locale=de_DE

    Hope this helps :)

    Grüße aus Hamburg

Reply

You must log in to post.

About this Plugin

About this Topic