• Resolved gregvlahokostas

    (@gregvlahokostas)


    Hello,
    i’m using the following code in my homepage:

    
    <h2>Don't miss our sales!</h2>
    [sale_products limit='4' paginate='true']
    <h2>Our latest products! Don't forget; it's one of a kind!</h2>
    [recent_products limit='4' paginate='true']
    <h2>Have a look at our bestseller's</h2>
    [best_selling_products limit='4' paginate='true']
    

    The problem i face, is that when i change page from shortcode’s pagination (let’s say going from page 1 to page 2 for sale_products shortcode), it changes the page from all the other shortcodes too (recent_products & best_selling_products).
    Url after page change

    So i wonder how to change page only for the desired shortcode without affecting the others shortcodes pagination.

    Video screen capture reproducing this problem

    Website Status Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://borse.gr
    Site address (URL): https://borse.gr
    WC Version: 3.8.0
    REST API Version: ? 1.0.2
    Log Directory Writable: ?
    WP Version: 5.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: el
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.11
    PHP Post Max Size: 64 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 5120
    cURL Version: 7.29.0
    NSS/3.44
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.2.27-MariaDB
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 3.8.0
    WC Database Prefix: z94PE_
    Total Database Size: 18.13MB
    Database Data Size: 14.23MB
    Database Index Size: 3.90MB
    z94PE_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    z94PE_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    z94PE_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_aiowps_failed_logins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_aiowps_global_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    z94PE_aiowps_login_activity: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_alphabank_masterpass_transactions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_alphabank_transactions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_ariadminer_connections: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    z94PE_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_options: Data: 3.14MB + Index: 0.16MB + Engine InnoDB
    z94PE_postmeta: Data: 3.47MB + Index: 1.88MB + Engine InnoDB
    z94PE_posts: Data: 4.38MB + Index: 0.28MB + Engine InnoDB
    z94PE_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_sbi_instagram_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_statistics_historical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    z94PE_statistics_pages: Data: 0.09MB + Index: 0.27MB + Engine InnoDB
    z94PE_statistics_search: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    z94PE_statistics_useronline: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    z94PE_statistics_visit: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_statistics_visitor: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    z94PE_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
    z94PE_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    z94PE_term_relationships: Data: 0.28MB + Index: 0.11MB + Engine InnoDB
    z94PE_term_taxonomy: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    z94PE_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    z94PE_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    z94PE_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    z94PE_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    z94PE_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    z94PE_wonderplugin_slider: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    z94PE_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    z94PE_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (31) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.3
    All-in-One WP Migration: by ServMask – 7.10
    All In One WP Security: by Tips and Tricks HQ
    Peter Petreski
    Ruhul
    Ivy – 4.4.2
    
    ARI Adminer: by ARI Soft – 1.2.3
    Classic Editor: by WordPress Contributors – 1.5
    GDPR Cookie Consent: by WebToffee – 1.8.1
    Elementor: by Elementor.com – 2.7.5
    Messenger Customer Chat: by Facebook – 1.3
    Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 5.3.9
    Smash Balloon Instagram Feed: by Smash Balloon – 2.1.2
    Jetpack by WordPress.com: by Automattic – 7.9
    Mailchimp for WooCommerce: by Mailchimp – 2.3 – Not tested with the active version of WooCommerce
    Ocean Extra: by OceanWP – 1.5.19
    qTranslate-X: by qTranslate Team – 3.4.6.8
    WC Hide Shipping Methods: by Rynaldo Stoltz – 1.3
    WooCommerce Smart COD: by Stratos Vetsos – 1.4.9.6 – Not tested with the active version of WooCommerce
    Web Expert Alpha Bank WooCommerce Payment Gateway: by Web Expert – 1.0.18
    Wonder Slider Lite: by Magic Hills Pty Ltd – 11.3
    WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.4 – Not tested with the active version of WooCommerce
    WooCommerce Extra Charges To Payment Gateway (Standard): by hemsingh1 – 1.0.12.9 – Not tested with the active version of WooCommerce
    WooCommerce & qTranslate-X: by qTranslate Team – 1.3 – Not tested with the active version of WooCommerce
    WooCommerce Services: by Automattic – 1.22.1
    WooCommerce: by Automattic – 3.8.0
    Yoast SEO: by Team Yoast – 12.5
    WP Media Category Management: by DeBAAT  – 1.9.4
    WP Notification Bars: by MyThemeShop – 1.0.5
    Integration: Yoast SEO & qTranslate-X: by qTranslate Team – 1.1.1
    WP Statistics: by VeronaLabs – 12.6.10
    WP Super Cache: by Automattic – 1.7.0
    WPForms Lite: by WPForms – 1.5.6.2
    WPFront Notification Bar: by Syam Mohan – 1.7.1
    
    ### Inactive Plugins (2) ###
    
    Complianz | GDPR Cookie Consent: by RogierLankhorst
    complianz – 3.2.3
    
    qTranslate X Importer: by OntheGoSystems – 2.0.4
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php
    
    ### Must Use Plugins (1) ###
    
    akeeba-backup-coreupdate.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #11 - /shop/
    Cart: #12 - /cart/
    Checkout: #13 - /checkout/
    My account: #14 - /my-account/
    Terms and conditions: #3 - /privacy-policy/
    
    ### Theme ###
    
    Name: OceanWP
    Version: 1.7.3
    Author URL: https://oceanwp.org/about-me/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: oceanwp/woocommerce/cart/mini-cart.php
    oceanwp/woocommerce/content-single-product.php
    oceanwp/woocommerce/loop/loop-start.php
    oceanwp/woocommerce/single-product/title.php
    
    ### Action Scheduler ###
    
    Complete: 0
    Oldest: –
    Newest: –
    
    Pending: 0
    Oldest: –
    Newest: –
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    This is consistent with the expected behavior for paginated product shortcodes. The pagination adds the following to the page URL: ?product-page=1, which will change the page of all the different product shortcodes on the page.

    Custom coding would be needed in order to change that behavior. I’ll leave this thread open for now in case any other users have additional suggestions.

    Thread Starter gregvlahokostas

    (@gregvlahokostas)

    Thanks for your reply.

    I suppose that adding an extra parameter, with custom code, at shortcode’s pagination could do the trick.

    So, instead of:
    ?product-page=1
    this could be (let’s say for sales product shortcode):
    ?product-page-sales=1

    I’ll give it a try and i’ll inform you if this worked or not. I hope I’ll find the way to make it happen.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    If you do end up finding a solution, make sure to share it here, as other users might find that useful in the future!

    Thread Starter gregvlahokostas

    (@gregvlahokostas)

    Of course, but unfortunately nothing yet

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pagination conflict at woocommerce shortcodes’ is closed to new replies.