• Resolved mathysservices

    (@mathysservices)


    The woocommerce products shortcode is showing the products correctly, but each product is pointing to the same product. Always is pointing to the last product listed.

    I tried with other theme, disabling all the plugins and the problem persist.

    I tried changing the permalink structure and the problem continues.

    There is the shortcode:

    [products columns=”3″ category=”626″ paginate=true per_page=9]

    ` WordPress Environment
    
    WordPress address (URL): https://mycosmeticsplace.com
    Site address (URL): https://mycosmeticsplace.com
    WC Version: 8.1.1
    REST API Version: ✔ 8.1.1
    WC Blocks Version: ✔ 10.9.3
    Action Scheduler Version: ✔ 3.6.2
    Log Directory Writable: ✔
    WP Version: 6.3.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: – Server Environment
    
    Server Info: Apache
    PHP Version: 8.1.23
    PHP Post Max Size: 128 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.74.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 10.6.15-MariaDB-1:10.6.15+maria~deb11-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔ Database
    
    WC Database Version: 8.1.1
    WC Database Prefix: ua3xljvmb8
    Total Database Size: 30.14MB
    Database Data Size: 24.12MB
    Database Index Size: 6.02MB
    ua3xljvmb8woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ua3xljvmb8woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ua3xljvmb8woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8actionscheduler_actions: Data: 0.20MB + Index: 0.22MB + Engine InnoDB
    ua3xljvmb8actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8actionscheduler_logs: Data: 0.17MB + Index: 0.16MB + Engine InnoDB
    ua3xljvmb8berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8braapf_product_stock_status_parent: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8braapf_product_variation_attributes: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ua3xljvmb8braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ua3xljvmb8braapf_variable_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    ua3xljvmb8e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    ua3xljvmb8e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ua3xljvmb8e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    ua3xljvmb8e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    ua3xljvmb8e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8options: Data: 8.03MB + Index: 0.17MB + Engine InnoDB
    ua3xljvmb8postmeta: Data: 8.38MB + Index: 2.56MB + Engine InnoDB
    ua3xljvmb8posts: Data: 5.05MB + Index: 0.28MB + Engine InnoDB
    ua3xljvmb8revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8revslider_sliders: Data: 0.09MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_slides: Data: 0.31MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8sbi_feed_caches: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8sbi_instagram_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8termmeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    ua3xljvmb8terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    ua3xljvmb8term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ua3xljvmb8wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8wc_orders: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    ua3xljvmb8wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ua3xljvmb8wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ua3xljvmb8wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ua3xljvmb8wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ua3xljvmb8wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8wc_product_meta_lookup: Data: 0.09MB + Index: 0.13MB + Engine InnoDB
    ua3xljvmb8wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ua3xljvmb8wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ua3xljvmb8wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB Post Type Counts
    
    acf-field: 6
    acf-field-group: 1
    attachment: 308
    br_filters_group: 1
    br_product_filter: 3
    br_product_tab: 1
    br_tabs_location: 1
    clients: 5
    custom_css: 1
    elementor_library: 20
    nav_menu_item: 124
    page: 38
    post: 38
    product: 315
    revision: 387
    shop_order_placehold: 1
    team: 8
    testimonials: 4
    wapf_product: 1
    wp_global_styles: 2
    wp_navigation: 1
    wp_template: 2
    wpcf7_contact_form: 3
    ywtm_tab: 4 Security
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔ Active Plugins (17)
    
    Advanced Custom Fields: by WP Engine – 6.2.1
    Contact Form 7: by Takayuki Miyoshi – 5.8
    Elementor Pro: by Elementor.com – 3.16.1
    Elementor: by Elementor.com – 3.16.4
    Smash Balloon Instagram Feed: by Smash Balloon – 6.2.2
    IONOS Assistant: by IONOS – 8.5.4
    IONOS Performance: by IONOS – 2.0.3
    Jetpack: by Automattic – 12.6
    Qi Addons For Elementor: by Qode Interactive – 1.6.3
    Qode Framework: by Qode Interactive – 1.1.6
    Slider Revolution: by ThemePunch – 6.5.8
    Sante Core: by Qode Interactive – 1.1.2
    Sante Membership: by Qode Interactive – 1.0.3
    WooCommerce AJAX Products Filter: by BeRocket – 3.1.4.5
    WooCommerce Payments: by Automattic – 6.4.2
    WooCommerce Shipping & Tax: by WooCommerce – 2.3.4
    WooCommerce: by Automattic – 8.1.1 Inactive Plugins (1)
    
    TikTok: by TikTok – 1.1.6 Must Use Plugins (1)
    
    1&1 Product Subdomain: by 1&1 – 1.1.0 Settings
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    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: –
    Enforce Approved Product Download Directories: –
    HPOS feature screen enabled: ✔
    HPOS feature enabled: ✔
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: – WC Pages
    
    Shop base: #10 - /shop/
    Cart: #11 - /cart/
    Checkout: #12 - /checkout/
    My account: #13 - /my-account/
    Terms and conditions: ❌ Page not set Theme
    
    Name: Sante
    Version: 1.3.1
    Author URL: https://qodeinteractive.com
    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: sante/inc/woocommerce/templates/content-widget-product.php
    sante/inc/woocommerce/templates/global/quantity-input.php
    sante/inc/woocommerce/templates/single-product/meta.php Subscriptions
    
    WCS_DEBUG: ✔ No
    Subscriptions Mode: ❌ Staging
    Subscriptions Live URL: https://mycosmeticsplace.com/
    Subscriptions-core Library Version: 6.0.0
    Subscription Statuses: trash: 1
    WooCommerce Account Connected: ❌ No Store Setup
    
    Country / State: United States (US) — California Subscriptions by Payment Gateway Payment Gateway Support
    
    WooPayments: products
    refunds
    multiple_subscriptions
    subscription_cancellation
    subscription_payment_method_change_admin
    subscription_payment_method_change_customer
    subscription_payment_method_change
    subscription_reactivation
    subscription_suspension
    subscriptions
    gateway_scheduled_payments
    tokenization
    add_payment_method
    
    Cash on delivery: products Admin
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: customize-store
    minified-js
    new-product-management-experience
    product-variation-management
    settings
    async-product-editor-category-field
    
    Daily Cron: ✔ Next scheduled: 2023-09-21 03:52:53 -05:00
    Options: ✔
    Notes: 82
    Onboarding: skipped WooCommerce Payments
    
    Version: 6.4.2
    Connected to WPCOM: Yes
    Blog ID: 221420522
    Account ID: acct_1NVRepCGyjP72k8I Action Scheduler
    
    Complete: 550
    Oldest: 2023-08-21 01:37:31 +0000
    Newest: 2023-09-20 03:29:04 +0000
    
    Failed: 12
    Oldest: 2023-02-15 05:36:55 +0000
    Newest: 2023-08-31 20:52:49 +0000
    
    Pending: 1
    Oldest: 2023-09-21 02:04:02 +0000
    Newest: 2023-09-21 02:04:02 +0000 Status report information
    
    Generated at: 2023-09-20 14:36:34 -05:00
    `

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shameem – a11n

    (@shameemreza)

    Hi @mathysservices

    It seems like you’ve already tried some common troubleshooting steps such as testing with a different theme, deactivating plugins, and changing the permalink structure, but the issue persists.

    This issue might be due to a problem with the product IDs. The shortcode you’re using is designed to display products from a certain category, but it seems like it’s not functioning correctly.

    Please ensure that category “626” actually exists and contains more than one product. If it does, try replacing “626” with the actual slug of the category.

    Here is how your shortcode should look like:

    [products columns="3" category="your-category-slug" paginate="true" per_page="9"]

    Replace “your-category-slug” with the actual slug of your category.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter mathysservices

    (@mathysservices)

    Hi

    I am using the slug category and the problem persists.

    [products columns=”3″ category=”summecosmetics” paginate=”true” per_page=”9″]

    Example:

    https://mycosmeticsplace.com/shop-2/cosmetic-shop/?filters=product_cat%5B627%5D

    Any other help?

    Plugin Support Shameem – a11n

    (@shameemreza)

    Hi @mathysservices

    The link you shared shows the results of the filter functionality created using the WooCommerce AJAX Products Filter rather than a page where you’ve used the shortcode.

    Here’s a simple guide on what you could do next:

    • Go to Pages > Add New.
    • Name your new page and insert the shortcode.
    • Once you’ve published the page, open it in a new tab to see if the products display correctly.

    Please share the outcome with us once you’ve done that, including the page link.

    Let us know how that goes. Looking forward to helping you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Products Shortcode is not working’ is closed to new replies.