• Threads

    (@ardits)


    Hello,

    I have been able to see in other Threads Suppport that the store shortcode does not work properly with Elementor.

    [wcfm_stores theme = ‘simple’ per_page = “6” orderby = “alphabetical_asc” has_orderby = “no” has_search = “no”]

    I wish I could change the display order and the number of stores per page.

    Can you tell me how I can do it?
    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author WC Lovers

    (@wclovers)

    I have been able to see in other Threads Suppport that the store shortcode does not work properly with Elementor.

    – Store list page does not support Elementor.

    [wcfm_stores theme = ‘simple’ per_page = “6” orderby = “alphabetical_asc” has_orderby = “no” has_search = “no”]

    – Parameters are fine for the purpose. Add these short code in WP default editor. Though it’s double quotes are not valid.

    https://docs.wclovers.com/store-list/

    Thread Starter Threads

    (@ardits)

    I understand, but I have the whole website created with Elementor and I need to be able to sort the stores with the shortcode parameters with Elementor.

    Is there no snippet or code to functions.php that can force these values?

    Plugin Author WC Lovers

    (@wclovers)

    Kindly show me a screenshot, where you have added this shortcode.

    Thread Starter Threads

    (@ardits)

    Hello,

    As I mentioned the shortcode I have it embedded in the page of the list of stores with Elementor.

    https://ibb.co/8xtsmnQ

    thanks

    Thread Starter Threads

    (@ardits)

    is there anyone?

    Plugin Author WC Lovers

    (@wclovers)

    https://ibb.co/8xtsmnQ – quotes are not here. Remove those and type from keyboard.

    Thread Starter Threads

    (@ardits)

    I’m sorry, but I don’t understand what you mean …

    Thread Starter Threads

    (@ardits)

    I did not understand your last comment, I also attach a screenshot with the code in the shortcode. This time written manually in the elementor shortcode widget.

    https://ibb.co/M8T0rfh

    I just want to show 30 stores per page and the random order.

    thanks

    Plugin Author WC Lovers

    (@wclovers)

    I just want to show 30 stores per page and the random order.

    – How many it’s showing now?

    To show them in random order add this snippet to your site –

    add_filter( 'wcfmmp_stores_default_orderby', function( $orderby ) {
    	return 'random';
    });
    add_action( 'pre_user_query', function( $query ) {
    	if( 'rand' == $query->query_vars['orderby'] )
    	$query->query_orderby = str_replace( 'user_login', 'RAND()', $query->query_orderby );
    	return $query;
    }, 500 );
    Thread Starter Threads

    (@ardits)

    The Snippet is perfect for random organization.

    Currently all stores are shown on the same page, we have more than 80 stores.
    Do you have a snippet to configure 30 stores per page?

    thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Number of stores per page and change display order’ is closed to new replies.