Home Forums WoodMart support forum #288428 URL paignation on last Woodmart update About Information

#288428 URL paignation on last Woodmart update About Information

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #624500

    Ecommerce
    Participant

    hi,
    #288428 It seems the topic was resolved by you in 2021. Is the solution method still the same? Is it possible to configure it in the theme settings without adding code?

    Kod:
    add_filter( ‘woodmart_load_more_button_page_url’, ‘__return_false’ );

    #624668

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    You can use an option for this in Theme Settings -> Product archive -> Products grid -> Keep the page number in the URL.

    Kind Regards

    #627457

    Ecommerce
    Participant

    Hello,

    We have communicated the ongoing pagination and related SEO issues in a private section to prevent our website’s URL from being publicly visible. Please ensure to provide support for such matters in the same manner.

    #627552

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Pagination functionality is related to the WooCommerce plugin and our theme doesn’t influence it. Could you please check all these points with the default theme?

    Kind Regards

    #627800

    Ecommerce
    Participant

    The feature to list more products by using “load more” on category pages is available. In the theme settings, the canonical URLs for page2, page3, etc., can be removed from the URL structure. However, the canonical structure is not completely eliminated, and when clicking on URLs like page2, they are still accessible. How can we solve the issue of crawling budget and SEO duplicate problems by completely removing these canonical URLs in WooCommerce?

    In summary: What is the way to completely remove the pagination structure on category pages and eliminate the page2, page3 URLs?

    #627882

    Artem Temos
    Keymaster
    Xtemos team

    Sorry, but we don’t have instructions for this. You need to refer to the WooCommerce documentation or contact its support since it is not related to the theme.

    #628409

    Ecommerce
    Participant

    Chat gpt provides many codes to disable pagination on category pages, but this one “load more save” button does not work. Can you help me with this?

    Sample Code1:
    // Block Access to Page2, Page3 URLs
    add_action(‘template_redirect’, ‘block_pagination_urls’);
    function block_pagination_urls() {
    if ( is_shop() || is_product_category() ) {
    // WooCommerce’de page2, page3 gibi URL’leri kontrol et
    if ( get_query_var(‘paged’) > 1 ) {
    wp_redirect( get_permalink( wc_get_page_id( ‘shop’ ) ), 301 );
    exit;
    }
    }
    }

    Sample Code2:
    // Block /page 2, /page 3 URLs in WooCommerce
    add_action(‘template_redirect’, ‘disable_pagination_urls_compatible_with_loadmore’);
    function disable_pagination_urls_compatible_with_loadmore() {
    if ( is_shop() || is_product_category() ) {
    // AJAX yükleme işlemlerini kontrol et
    if ( isset($_GET[‘load_more’]) || defined(‘DOING_AJAX’) && DOING_AJAX ) {
    return; // Continue “Load More” operations without affecting them
    }
    // Check normal pagination
    if ( get_query_var(‘paged’) > 1 ) {
    wp_redirect( get_permalink( wc_get_page_id( ‘shop’ ) ), 301 );
    exit;
    }
    }
    }

    #628473

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    “Load more” button works in conjunction with WooCommerce pagination. If you disable the pagination, Load more will be disabled too.

    Kind Regards

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