WC Lovers

WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Vendorshop – sort products by EventDate #135968
    Nico Bein
    Participant

    The code above is from a project WITHOUT vendors, WCFM and stuff. There I can use Elementor Pro’s “Posts” widget and either use the built-in filter options or give the query an ID and filter it via code in the functions.php (see https://developers.elementor.com/custom-query-filter/).

    Now I use the marketplace and also “WCFM – WCFM Marketplace integrate Elementor” plugin. I created a store page with Elementor Pro and added the “Store Tab Contents” widget from the “WCFM – WCFM Marketplace integrate Elementor” plugin. It works and only the vendor’s products are shown. But I want this query to be sorted by a special field (in my case ‘WooCommerceEventsDate’) and I need the expired events to be hidden.

    I only know the way to do that like mentioned in the first paragraph and I hoped that it would be possible to give the query created by the “Store Tab Contents” widget a custom ID (like ft_event_listing) and then order it.

    What would be the best way to do that?

    If there is no way with using the “Store Tab Contents” widget it might be possible the other way round…? Maybe I could use Elemetor Pro’s “Posts” widget, sort it the way I like, give it an ID (e.g. ft_event_listing) and have a function to only display the vendor’s products…?

    in reply to: Vendorshop – sort products by EventDate #135959
    Nico Bein
    Participant

    Thanks, but actually that doesn’t help.

    I need to add a query ID on the shop page to filter it like that:

    add_action('elementor/query/ft_event_listing', function($query){	
    	$query->set('orderby', 'meta_value');
    	$query->set('meta_key', 'WooCommerceEventDate');
    	$query->set('order', 'ASC');
    });

    It would be great if it would be possible to easily add the ID in the Elementor widget settings (as seen on other plugins). Since that is not possible: Where may I add the ID?

    Best,
    Nico

    in reply to: WCFM Marketplace – Elementor integrated #130868
    Nico Bein
    Participant

    Is it possible to customize the product grid that is used for the vendor’s shop pages? I want to sell tickets and need to display the date, the location etc. in the grid…

    Best,
    Nico

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