Netcosports-marketing profile

Home Forums Netcosports-marketing

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Hi Team,

    Thank you for your answer and sorry for my unclear explanation.

    I added a file to explain what I am trying to achieve (catalogue structure and what my “agencies” page is looking like right now).

    I also took a look at the Woo Recent Products shortcode and tried to add a selection option in the options.php file (I copied pasted the multiselect field from the Woo Categories shortcode). See code I added below:
    ‘categories’ => array(
    ‘type’ => ‘multi-select’,
    ‘label’ => esc_html__(‘Product Categories’, ‘jevelin’),
    ‘desc’ => esc_html__(‘Choose which product categories you want to show’, ‘jevelin’),
    ‘population’ => ‘taxonomy’,
    ‘source’ => ‘product_cat’,
    ‘prepopulation’ => 15,
    ‘limit’ => 100,
    ),

    This is well displayed and working fine in the visual editor of my page, however I cannot find how to call properly the categories I choose in this field and display them on front-end. Normally, I will only have one category at a time, corresponding to my Client type. So I think I “just” have to call this category to populate the data-filter of the “All” item from the view.php file. See below:
    <span class=”sh-filter-item active” data-filter=”.product_cat-agencies“>
    However I don’t know how to achieve that by calling the categories field I referred above.

    But maybe it is a bit complicated and there is another easier way to achieve what I am trying to do.

    Thanks for your help,
    Julie

    Attachments:
    You must be logged in to view attached files.

    I just wondered if it would be possible to filter not with categories but with tags? or attributes? This way I could have my different product ranges in categories and my client types in tags or attribute?

    However I still need a way to filter the woo recent products element…

    Can you help me?

Viewing 2 posts - 1 through 2 (of 2 total)