Home › Forums › WoodMart – Premium Template › Article per Page
- You must be logged in to create new topics. Login / Register
This topic contains 11 replies, has 3 voices, and was last updated by Artem Temos 3 days, 12 hours ago.
-
AuthorPosts
-
February 19, 2021 at 12:13 pm #267838
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.February 19, 2021 at 12:57 pm #267854Hello,
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 StudiosFebruary 19, 2021 at 4:11 pm #267895thank 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=36currently 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=36this 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.
February 21, 2021 at 7:32 am #268128Hello,
Please, provide us with your admin and FTP access so we can check what is wrong.
Kind Regards
February 22, 2021 at 9:21 am #268309Thank you for your quick reply.
Private Content HiddenFebruary 22, 2021 at 9:27 am #268315Try 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' );
February 22, 2021 at 2:44 pm #268430Thank you very much. We have inserted the code, but unfortunately it still does not work
February 22, 2021 at 3:57 pm #268440Could you please send us a screenshot of where you placed the code? We don’t see it now.
February 23, 2021 at 1:18 pm #268705the 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
February 23, 2021 at 2:27 pm #268733Try 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
February 23, 2021 at 2:55 pm #268745Thank you very much. Now it works
February 23, 2021 at 2:56 pm #268746Great, 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
-
This reply was modified 1 week ago by
-
AuthorPosts
You must be logged in to reply to this topic.
- You must be logged in to create new topics. Login / Register