Home Forums WoodMart – Premium Template Article per Page

This topic contains 11 replies, has 3 voices, and was last updated by Artem Temos Artem Temos 3 days, 12 hours ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #267838

    vionic
    Customer

    Hi, we have a problem with the article per page option. When clicking on a number, not only the articles of the respective merchant are displayed, but you get to the total overview. But only the articles of the respective merchant should be displayed. Thank you in advance.

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

    Hello,

    I saw the screenshot you attached.

    Please elaborate with the help of some relevant screenshots of the specific area with the URL of the page what issue you are facing because your current explanation is not clear enough to understand what you required.

    Regards.
    Xtemos Studios

    #267895

    vionic
    Customer

    thank you for the quick reply

    at the moment the links of the symbols lose the merchant-specific part of the URL.
    these would be the correct urls:

    https://needs24.de/store/cactus?shop_view=list
    https://needs24.de/store/cactus?per_row=4&shop_view=grid
    https://needs24.de/store/cactus?per_page=12
    https://needs24.de/store/cactus?per_page=36

    currently these are generated:

    https://needs24.de/shop/?shop_view=list
    https://needs24.de/shop/?per_row=4&shop_view=grid
    https://needs24.de/shop/?per_page=12
    https://needs24.de/shop/?per_page=36

    this will take you back to the marketplace and you will no longer be in the merchant store :/

    the symbols described are in the green bordered area of the last screenshot.

    regards

    • This reply was modified 1 week ago by  vionic.
    #268128

    Hello,

    Please, provide us with your admin and FTP access so we can check what is wrong.

    Kind Regards

    #268309

    vionic
    Customer

    Thank you for your quick reply.

    Private Content Hidden
    #268315

    Try to add the following PHP code snippet to the child theme functions.php file to fix this

    function woodmart_wcfmmp_shop_page_link($user_id) {
       add_filter( 'woodmart_shop_page_link', function() use($user_id){
          return wcfmmp_get_store_url($user_id);
       } );
    }
    add_action( 'wcfmmp_before_store_product', 'woodmart_wcfmmp_shop_page_link' );
    #268430

    vionic
    Customer

    Thank you very much. We have inserted the code, but unfortunately it still does not work

    #268440

    Could you please send us a screenshot of where you placed the code? We don’t see it now.

    #268705

    vionic
    Customer

    the code works now. Thank you very much for this. There would still be a problem with the number of articles. There are always only 12 articles per page displayed, even if 24 or 36 are selected above. Like here for example: https://needs24.de/store/cactus/?per_page=24

    #268733

    Try to add the following code snippet also

    add_action(
    	'init',
    	function() {
    		add_filter(
    			'wcfmmp_store_ppp',
    			function( $post_per_page ) {
    				if ( isset( $_REQUEST['per_page'] ) && 1 != $_REQUEST['per_page'] && ! isset( $_REQUEST['_locale'] ) && ( ( isset( $_POST['action'] ) && 'wcfmmp_stores_list_map_markers' !== $_POST['action'] ) || ! isset( $_POST['action'] ) ) ) {
    					$post_per_page = $_REQUEST['per_page'];
    				}
    				return $post_per_page;
    			},
    			50
    		);
    	},
    	100
    );

    Regards

    #268745

    vionic
    Customer

    Thank you very much. Now it works

    #268746

    Great, you are welcome! We would like to kindly ask you to complete a simple poll to help us make our theme better. It will not take you more than 2 minutes. Link: https://8uehqcg4tjy.typeform.com/to/IgyV2EiP

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

You must be logged in to reply to this topic.