• Resolved Ammar R.

    (@ammarrasool)


    Hello,

    I noticed that the single product add to cart and buy now button doesn’t work for some reason as well. it supposes to open the cart model when adding the product to the cart but it is currently not. The value doesn’t show in the cart as well until and unless you click on the car, whereas everything else, is working fine.

    Can someone help me sorting this out? I’m attaching the Status Report below.

    WordPress Environment
    WordPress address (URL): https://gentshub.ae
    Site address (URL): https://gentshub.ae
    WC Version: 7.5.1
    REST API Version: ?</img> 7.5.1
    WC Blocks Version: ?</img> 9.6.6
    Action Scheduler Version: ?</img> 3.5.4
    Log Directory Writable: ?</img>
    WP Version: 6.2
    WP Multisite: –
    WP Memory Limit: 2 GB
    WP Debug Mode: –
    WP Cron: ?</img>
    Language: en_US
    External object cache: –
    Server Environment
    Server Info: LiteSpeed
    PHP Version: 8.0.28
    PHP Post Max Size: 2 GB
    PHP Time Limit: 5000
    PHP Max Input Vars: 5000
    cURL Version: 7.84.0
    OpenSSL/1.1.1p
    SUHOSIN Installed: –
    MySQL Version: 10.3.38-MariaDB-cll-lve
    Max Upload Size: 2 GB
    Default Timezone is UTC: ?</img>
    fsockopen/cURL: ?</img>
    SoapClient: ?</img>
    DOMDocument: ?</img>
    GZip: ?</img>
    Multibyte String: ?</img>
    Remote Post: ?</img>
    Remote Get: ?</img>
    Database
    WC Database Version: 7.5.1
    WC Database Prefix: wpyx_
    Total Database Size: 35.11MB
    Database Data Size: 26.38MB
    Database Index Size: 8.73MB
    wpyx_woocommerce_sessions: Data: 4.02MB + Index: 0.08MB + Engine InnoDB
    wpyx_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpyx_woocommerce_order_items: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    wpyx_woocommerce_order_itemmeta: Data: 0.38MB + Index: 0.34MB + Engine InnoDB
    wpyx_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpyx_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_actionscheduler_actions: Data: 1.52MB + Index: 0.52MB + Engine InnoDB
    wpyx_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_actionscheduler_logs: Data: 0.47MB + Index: 0.28MB + Engine InnoDB
    wpyx_cartflows_ca_cart_abandonment: Data: 0.11MB + Index: 0.02MB + Engine InnoDB
    wpyx_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_chaty_contact_form_leads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_chaty_widget_analysis: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    wpyx_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_comments: Data: 0.22MB + Index: 0.25MB + Engine InnoDB
    wpyx_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    wpyx_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wpyx_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_gla_budget_recommendations: Data: 0.20MB + Index: 0.11MB + Engine InnoDB
    wpyx_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_ngenius_networkinternational: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_options: Data: 4.44MB + Index: 0.19MB + Engine InnoDB
    wpyx_postmeta: Data: 3.52MB + Index: 1.94MB + Engine InnoDB
    wpyx_posts: Data: 1.52MB + Index: 0.19MB + Engine InnoDB
    wpyx_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_term_relationships: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wpyx_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_trp_dictionary_en_us_ar: Data: 1.52MB + Index: 0.61MB + Engine InnoDB
    wpyx_trp_gettext_ar: Data: 1.52MB + Index: 0.44MB + Engine InnoDB
    wpyx_trp_gettext_en_us: Data: 1.52MB + Index: 0.59MB + Engine InnoDB
    wpyx_trp_gettext_original_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpyx_trp_gettext_original_strings: Data: 0.52MB + Index: 0.23MB + Engine InnoDB
    wpyx_trp_original_meta: Data: 0.11MB + Index: 0.16MB + Engine InnoDB
    wpyx_trp_original_strings: Data: 1.52MB + Index: 0.38MB + Engine InnoDB
    wpyx_usermeta: Data: 1.52MB + Index: 0.58MB + Engine InnoDB
    wpyx_users: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wpyx_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wpyx_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wpyx_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_wc_order_product_lookup: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wpyx_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wpyx_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpyx_wc_product_attributes_lookup: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wpyx_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpyx_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_wt_guest_wishlists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_wt_iew_action_history: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wpyx_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpyx_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpyx_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    Post Type Counts
    attachment: 284
    custom_css: 1
    elementor_library: 11
    ic_mega_menu: 1
    language_switcher: 4
    mb_siwc_lite_image: 1
    nav_menu_item: 15
    page: 18
    post: 15
    product: 125
    shop_order: 295
    wp_global_styles: 1
    wpforms: 5
    Security
    Secure connection (HTTPS): ?</img>
    Hide errors from visitors: ?</img>
    Active Plugins (23)
    Redux Framework: by Team Redux – 4.4.0
    All-in-One WP Migration Unlimited Extension: by ServMask – 2.49
    All-in-One WP Migration: by ServMask – 7.73
    bunny.net: by bunny.net – 1.0.8
    Chaty Pro: by Premio – 2.8.1
    Duplicate Page: by mndpsingh287 – 4.5.1
    Elementor Pro: by Elementor.com – 3.11.6
    Elementor: by Elementor.com – 3.12.0
    Facebook for WooCommerce: by Facebook – 3.0.16
    OMGF: by Daan from Daan.dev – 5.5.6
    Insight Core: by ThemeMove – 2.6.4
    Insight Swatches: by ThemeMove – 1.4.0
    Shoppable Images Lite: by Studio Wombat – 1.2.4
    Multi Currency Pro for WooCommerce: by palscode – 1.8
    MyFatoorah - WooCommerce: by MyFatoorah – 2.2.1
    Snapchat Pixel for WooCommerce: by Snapchat – 1.0.0
    Temporary Login Without Password: by StoreApps – 1.8.1.1
    Thememove Addons For Elementor: by ThemeMove – 1.3.0
    TranslatePress - Developer: by Cozmoslabs
    Razvan Mocanu
    Madalin Ungureanu – 1.2.6
    TranslatePress - Multilingual: by Cozmoslabs
    Razvan Mocanu
    Madalin Ungureanu
    Cristophor Hurduban – 2.5.0
    Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.3.8
    WooCommerce: by Automattic – 7.5.1
    WPForms Lite: by WPForms – 1.8.1.1
    Inactive Plugins (5)
    Header Footer Code Manager: by 99robots – 1.1.32
    Insight Product Brands for Woocommerce: by ThemeMove – 1.1.0
    WooCommerce Admin: by WooCommerce – 3.3.2
    WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.23
    WooCommerce Coupon Generator: by Jeroen Sormani – 1.2.0
    Dropin Plugins (1)
    advanced-cache.php: advanced-cache.php
    Must Use Plugins (2)
    Disable Extendify Module For Redux Framework: by ThemeMove – 1.0.0
    SSO: by Garth Mortensen
    Mike Hansen – 0.4
    Settings
    API Enabled: –
    Force SSL: –
    Currency: AED (?.?)
    Currency Position: right_space
    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: –
    Enforce Approved Product Download Directories: ?</img>
    Order datastore: WC_Order_Data_Store_CPT
    WC Pages
    Shop base: #6 - /shop/
    Cart: #7 - /cart/
    Checkout: #8 - /checkout/
    My account: #9 - /my-account/
    Terms and conditions: ?</img> Page not set
    Theme
    Name: Minimog Child
    Version: 1.0.0
    Author URL: https://thememove.com/
    Child Theme: ?</img>
    Parent Theme Name: Minimog
    Parent Theme Version: 2.5.7
    Parent Theme Author URL: https://thememove.com
    WooCommerce Support: ?</img>
    Templates
    Overrides: minimog/woocommerce/archive-product.php
    minimog/woocommerce/cart/cart-shipping.php
    minimog/woocommerce/cart/cart-totals.php
    minimog/woocommerce/cart/cart.php
    minimog/woocommerce/cart/cross-sells.php
    minimog/woocommerce/cart/mini-cart.php
    minimog/woocommerce/cart/proceed-to-checkout-button.php
    minimog/woocommerce/cart/shipping-calculator.php
    minimog/woocommerce/checkout/form-checkout.php
    minimog/woocommerce/checkout/form-coupon.php
    minimog/woocommerce/checkout/form-login.php
    minimog/woocommerce/checkout/payment-method.php
    minimog/woocommerce/checkout/review-order.php
    minimog/woocommerce/checkout/thankyou.php
    minimog/woocommerce/content-product-cat.php
    minimog/woocommerce/content-product.php
    minimog/woocommerce/content-single-product.php
    minimog/woocommerce/content-widget-price-filter.php
    minimog/woocommerce/content-widget-product.php
    minimog/woocommerce/global/form-login.php
    minimog/woocommerce/global/quantity-input.php
    minimog/woocommerce/loop/add-to-cart.php
    minimog/woocommerce/loop/loop-end.php
    minimog/woocommerce/loop/loop-start.php
    minimog/woocommerce/loop/orderby.php
    minimog/woocommerce/loop/pagination.php
    minimog/woocommerce/loop/price.php
    minimog/woocommerce/loop/rating.php
    minimog/woocommerce/loop/result-count.php
    minimog/woocommerce/loop/sale-flash.php
    minimog/woocommerce/myaccount/form-login.php
    minimog/woocommerce/myaccount/form-lost-password.php
    minimog/woocommerce/myaccount/form-reset-password.php
    minimog/woocommerce/myaccount/my-account.php
    minimog/woocommerce/order/order-details.php
    minimog/woocommerce/product-searchform.php
    minimog/woocommerce/single-product/add-to-cart/external.php
    minimog/woocommerce/single-product/add-to-cart/grouped.php
    minimog/woocommerce/single-product/add-to-cart/simple.php
    minimog/woocommerce/single-product/add-to-cart/variable.php
    minimog/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    minimog/woocommerce/single-product/meta.php
    minimog/woocommerce/single-product/price.php
    minimog/woocommerce/single-product/product-image.php
    minimog/woocommerce/single-product/rating.php
    minimog/woocommerce/single-product/related.php
    minimog/woocommerce/single-product/review-meta.php
    minimog/woocommerce/single-product/review-rating.php
    minimog/woocommerce/single-product/review.php
    minimog/woocommerce/single-product/sale-flash.php
    minimog/woocommerce/single-product/stock.php
    minimog/woocommerce/single-product/tabs/additional-information.php
    minimog/woocommerce/single-product/tabs/description.php
    minimog/woocommerce/single-product/tabs/tabs.php
    minimog/woocommerce/single-product/title.php
    minimog/woocommerce/single-product/up-sells.php
    minimog/woocommerce/single-product-reviews.php
    minimog/woocommerce/single-product.php
    Admin
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-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: minified-js
    new-product-management-experience
    product-variation-management
    settings
    Daily Cron: ?</img> Next scheduled: 2023-03-31 23:42:42 +00:00
    Options: ?</img>
    Notes: 43
    Onboarding: completed
    Action Scheduler
    Complete: 2,014
    Oldest: 2023-03-21 23:45:39 +0000
    Newest: 2023-03-31 15:22:44 +0000
    Failed: 5
    Oldest: 2023-03-21 23:51:38 +0000
    Newest: 2023-03-30 14:59:05 +0000
    Pending: 5
    Oldest: 2023-03-31 19:24:23 +0000
    Newest: 2023-04-06 20:37:56 +0000
    Status report information
    Generated at: 2023-03-31 15:40:37 +00:00
    `

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Roxy

    (@roxannestoltz)

    Hi @ammarrasool ,

    Thanks for reaching out!

    I understand that the single product “Add to Cart” and “Buy Now” buttons aren’t working as expected. The cart modal isn’t opening, and the cart doesn’t show the item until you click on it, while other functionalities are working fine, is this correct?

    I was able to open the individual product for https://gentshub.ae/product/fakama/ and add the product to the cart. It added correctly to the cart and I could see the cart value increase to 1. I also got the notice stating that the product was added to the cart successfully.

    It sounds like you expected the cart page to automatically be opened at that point after adding the product, however, that would only happen if you enabled the “Redirect to the cart page after successful addition” which is a setting you can find within the WooCommerce → Settings → ProductsGeneral settings page, as seen below:

    The “Enable AJAX add to cart buttons on archives” function on the other hand (also found on the same settings page), only adds the product to the cart directly from the shop/archive page without leaving or reloading the page.

    At this time, I would recommend you enable both the settings above, to see if that resolves your issue. If that doesn’t work, the next step would be to perform a conflict test as per this support guide.

    Cheers!

    Hello,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add to Cart Ajax Function & Buy Now Not Working In Single Product Page’ is closed to new replies.