Home › Forums › WoodMart support forum › link store WCFM page
link store WCFM page
- This topic has 5 replies, 3 voices, and was last updated 4 years, 9 months ago by Artem Temos.
-
AuthorPosts
-
April 21, 2020 at 4:30 pm #188913
tiendaspyParticipantHi,
I use WCFM with your theme
I have a problem with my stores pages, with “show number of product”
the link redirect automatically to the “all product page”I send you a link exemple as private content :
Regards,
April 21, 2020 at 10:06 pm #188978
Elise NoromitMemberHello,
Our theme does not officially support the plugin, it means we have not tested the plugin and do not guarantee 100% compatibility. Please contact the plugin support, let them check and suggest the solution.
Best Regards
April 22, 2020 at 12:44 am #189006
tiendaspyParticipantBut it’s written on you theme purchase page..
Multi vendors plugins supported
Dokan
WCFM Marketplace
YITH Multi Vendor
WC Marketplace
WC Vendorsthe WCFM support told to ask you that why i’m asking you…
Regards
April 22, 2020 at 2:10 pm #189189
Elise NoromitMemberHello,
Sorry for my mistake.
Please add these two PHP snippets to the functions.php of the child theme:
function woodmart_shop_page_link( $keep_query = false, $taxonomy = '' ) { // Base Link decided by current page if ( woodmart_is_shop_on_front() || defined( 'SHOP_IS_ON_FRONT' ) ) { $link = home_url(); } elseif ( is_post_type_archive( 'product' ) || is_page( wc_get_page_id( 'shop' ) ) || is_shop() ) { $link = get_permalink( wc_get_page_id( 'shop' ) ); } elseif( is_product_category() ) { $link = get_term_link( get_query_var('product_cat'), 'product_cat' ); } elseif( is_product_tag() ) { $link = get_term_link( get_query_var('product_tag'), 'product_tag' ); } else { $queried_object = get_queried_object(); $link = get_term_link( $queried_object->slug, $queried_object->taxonomy ); } if( $keep_query ) { // Min/Max if ( isset( $_GET['min_price'] ) ) { $link = add_query_arg( 'min_price', wc_clean( $_GET['min_price'] ), $link ); } if ( isset( $_GET['max_price'] ) ) { $link = add_query_arg( 'max_price', wc_clean( $_GET['max_price'] ), $link ); } // Orderby if ( isset( $_GET['orderby'] ) ) { $link = add_query_arg( 'orderby', wc_clean( $_GET['orderby'] ), $link ); } /** * Search Arg. * To support quote characters, first they are decoded from " entities, then URL encoded. */ if ( get_search_query() ) { $link = add_query_arg( 's', rawurlencode( wp_specialchars_decode( get_search_query() ) ), $link ); } // Post Type Arg if ( isset( $_GET['post_type'] ) ) { $link = add_query_arg( 'post_type', wc_clean( $_GET['post_type'] ), $link ); } // Min Rating Arg if ( isset( $_GET['min_rating'] ) ) { $link = add_query_arg( 'min_rating', wc_clean( $_GET['min_rating'] ), $link ); } // All current filters if ( $_chosen_attributes = WC_Query::get_layered_nav_chosen_attributes() ) { foreach ( $_chosen_attributes as $name => $data ) { if ( $name === $taxonomy ) { continue; } $filter_name = sanitize_title( str_replace( 'pa_', '', $name ) ); if ( ! empty( $data['terms'] ) ) { $link = add_query_arg( 'filter_' . $filter_name, implode( ',', $data['terms'] ), $link ); } if ( 'or' == $data['query_type'] ) { $link = add_query_arg( 'query_type_' . $filter_name, 'or', $link ); } } } } if ( is_string( $link ) ) { return apply_filters( 'woodmart_shop_page_link', $link ); } else { return ''; } }
and this one:
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' );
Best Regards
April 23, 2020 at 1:20 pm #189460
tiendaspyParticipantHi,
50% of the problem is solve, the number of products doesn’t show more: 25/50/75 it’s will stay to 25
on the category it’s work
https://www.tiendaspy.com/categoria-producto/gastronomia/
but not on the store
https://www.tiendaspy.com/store/tiendas-py/Regards
April 24, 2020 at 6:09 am #189584
Artem TemosKeymasterHello,
The store you sent the link to doesn’t have a lot of products to test this functionality. Do you have some other examples?
Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register