• Resolved ctafret80

    (@ctafret80)


    I can add to cart from the product catalog but when I click add to cart from the single product page, it goes directly to the cart and says the cart is empty.

    I found an old topic with the same title but it doesn’t seem to be the same problem

    ### WordPress Environment ###

    WordPress address (URL): https://simplyrosejewelry.com
    Site address (URL): https://simplyrosejewelry.com
    WC Version: 9.4.1
    Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.
    Action Scheduler Version: ? 3.8.2
    Log Directory Writable: ?
    WP Version: ? 6.6.2 - There is a newer version of WordPress available (6.7)
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: ?

    ### Server Environment ###

    Server Info: nginx/1.24.0
    PHP Version: 8.1.22
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 5000
    cURL Version: 8.9.1
    OpenSSL/3.1.7

    SUHOSIN Installed: –
    MySQL Version: 5.7.35-38-log
    Max Upload Size: 512 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 9.4.1
    WC Database Prefix: wp_
    Total Database Size: 21.46MB
    Database Data Size: 17.37MB
    Database Index Size: 4.09MB
    wp_woocommerce_sessions: Data: 1.33MB + Index: 0.04MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.06MB + Index: 0.06MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 1.52MB + Index: 0.73MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.52MB + Index: 0.36MB + Engine InnoDB
    wp_betterdocs_analytics: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_betterdocs_search_keyword: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_betterdocs_search_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_brizy_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_comments: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    wp_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_e_submissions: Data: 0.11MB + Index: 0.27MB + Engine InnoDB
    wp_e_submissions_actions_log: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
    wp_e_submissions_values: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    wp_failed_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 5.11MB + Index: 0.12MB + Engine MyISAM
    wp_postmeta: Data: 4.37MB + Index: 0.51MB + Engine MyISAM
    wp_posts: Data: 1.67MB + Index: 0.19MB + Engine MyISAM
    wp_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.05MB + Index: 0.04MB + Engine MyISAM
    wp_terms: Data: 0.05MB + Index: 0.13MB + Engine MyISAM
    wp_term_relationships: Data: 0.08MB + Index: 0.14MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.04MB + Index: 0.04MB + Engine MyISAM
    wp_usermeta: Data: 0.17MB + Index: 0.03MB + Engine MyISAM
    wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wacv_abandoned_cart_record: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wacv_cart_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wacv_email_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wacv_guest_info_record: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.09MB + Index: 0.01MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.01MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wpforms_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB
    wp_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.36MB + Index: 0.22MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    ### Post Type Counts ###

    astra_adv_header: 1
    astra-advanced-hook: 2
    attachment: 679
    brizy-project: 1
    customize_changeset: 8
    dpcd_category_design: 1
    e-landing-page: 1
    elementor_library: 6
    jb_store_css: 7
    nav_menu_item: 32
    page: 21
    post: 2
    product: 355
    revision: 619
    shop_coupon: 7
    shop_order: 11
    shop_order_refund: 3
    wacv_email_template: 3
    wc_category_slider: 1
    wp_global_styles: 1
    wpcode: 5
    wpforms: 3

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (22) ###

    FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.29.0
    Brizy: by Brizy.io – 2.6.0
    Classic Widgets: by WordPress Contributors – 0.3
    Customizer Search: by Brainstorm Force – 1.1.6
    Dynamic Product Categories Design: by DynamicWebLab – 1.1.4
    Elementor: by Elementor.com – 3.25.5
    Essential Addons for Elementor: by WPDeveloper – 6.0.9
    Facebook for WooCommerce: by Facebook – 3.3.0
    Jetpack Boost: by Automattic - Jetpack Site Speed team – 3.5.2
    Jetpack: by Automattic – 14.0
    Pinterest for WooCommerce: by WooCommerce – 1.4.12
    Premium Addons for Elementor: by Leap13 – 4.10.62
    Sidebar Manager: by Brainstorm Force – 1.1.8
    UpdraftPlus - Backup/Restore: by TeamUpdraft
    DavidAnderson – 1.24.7

    Wishlist for WooCommerce: by WPFactory – 3.1.2
    Payment Plugins for Stripe WooCommerce: by Payment Plugins
    [email protected] – 3.3.77

    USPS Simple Shipping for Woocommerce: by dangoodman – 1.10.8
    WooCommerce Shipping & Tax: by WooCommerce – 2.8.3
    WooCommerce: by Automattic – 9.4.1
    WP Categories Widget: by WP-EXPERTS.IN TEAM – 2.5
    WP Mail SMTP: by WP Mail SMTP – 4.2.0
    WPForms Lite: by WPForms – 1.9.2.1

    ### Inactive Plugins (4) ###

    Abandoned Cart Recovery for WooCommerce: by VillaTheme – 1.1.6
    Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3
    Brizy Pro: by Brizy.io – 2.4.38
    Yoast SEO: by Team Yoast – 23.8

    ### Dropin Plugins () ###

    advanced-cache.php: advanced-cache.php
    object-cache.php: Redis Object Cache Drop-In

    ### Must Use Plugins (1) ###

    EasyWP Plugin: by Namecheap
    Inc. – 1.4.13


    ### Settings ###

    Legacy 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 enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: –

    ### Logging ###

    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 days
    Level threshold: –
    Log directory size: 24 KB

    ### WC Pages ###

    Shop base: #17075 - /categories/
    Cart: #308 - /cart/ - Contains the [woocommerce_cart] shortcode
    Checkout: #309 - /checkout/ - Contains the [woocommerce_checkout] shortcode
    My account: #310 - /my-account-2/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: Astra
    Version: 4.8.5
    Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
    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: –

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    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
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store

    Disabled Features: product-data-views
    experimental-blocks
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    blueprint
    reactify-classic-payments-settings
    use-wp-horizon

    Daily Cron: ? Next scheduled: 2024-11-13 23:24:11 -05:00
    Options: ?
    Notes: 215
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 1,465
    Oldest: 2024-10-13 02:21:21 +0000
    Newest: 2024-11-13 01:48:37 +0000

    Failed: 1,109
    Oldest: 2023-03-25 02:40:41 +0000
    Newest: 2024-11-12 20:35:34 +0000

    Pending: 13
    Oldest: 2024-11-13 08:31:25 +0000
    Newest: 2024-11-19 12:17:07 +0000


    ### Status report information ###

    Generated at: 2024-11-12 21:16:36 -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 Jonayed Hosen (woo-hc)

    (@jonayedhosen)

    Hey @ctafret80,

    I’m sorry to hear that the Add to Cart button isn’t working as expected on your Single Product Page. I was able to replicate the issue on my end as well.

    This type of issue is often caused by conflicts with third-party plugins or themes. To check if this plugin or another third-party plugin/theme might be causing the issue, could you try running a full conflict test? This involves:

    • Switching temporarily to a default theme, like Storefront.
    • Disabling all plugins except for WooCommerce.

    Please let us know if this resolves the issue!

    Thread Starter ctafret80

    (@ctafret80)

    I temporarily switched the Theme to “Twenty Twenty-Five” as suggested the conflict test link you sent. I also disabled all plugins except WooCommerce. Neither change resolved the issue. I did notice that if you add an item to cart from the product catalog (page called categories), it successfully goes to the cart and thereafter, items can be added to the cart from the Single Product Page – even if the cart has been emptied. After clearing cookies, it returned to the behavior of not adding to the cart. So whatever is preventing the Single Product Page “Add to Cart” from working isn’t a problem if the Catalog page “Add to Cart” has previously been used and is stored in the cookies.

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @ctafret80 ,

    The most common cause of this type of problem is caching. Can you please head over to?WooCommerce → Status → Tools?and doing the following:

    • WooCommerce transients?–?Clear transients
    • Expired transients?–?Clear transients

    Next, please clear all site and server caching mechanisms, as well as browser cache, and see if this resolves the issue?

    Additionally, can you reach out to your host and ask them to make sure that the following pages are excluded from being cached:

    • Cart
    • Checkout
    • My Account

    Those three pages should never be cached. Please let us know how this goes.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.