Home Forums WoodMart support forum link store WCFM page

link store WCFM page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #188913

    tiendaspy
    Participant

    Hi,

    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,

    #188978

    Hello,

    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

    #189006

    tiendaspy
    Participant

    But it’s written on you theme purchase page..

    Multi vendors plugins supported
    Dokan
    WCFM Marketplace
    YITH Multi Vendor
    WC Marketplace
    WC Vendors

    the WCFM support told to ask you that why i’m asking you…

    Regards

    #189189

    Hello,

    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

    #189460

    tiendaspy
    Participant

    Hi,

    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

    #189584

    Artem Temos
    Keymaster

    Hello,

    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

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