• Hello,

    After updating to WooCommerce v2.5.0 the ajax add to cart is not working. Here is my system log:

    ### WordPress Environment ###
    
    Home URL: https://localhost/howes
    Site URL: https://localhost/howes
    WC Version: 2.5.0
    Log Directory Writable: ?  E:\wamp\www\howes/wp-content/uploads/wc-logs/
    WP Version: 4.4.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.9 (Win64) PHP/5.5.12
    PHP Version: 5.5.12
    PHP Post Max Size: 3 MB
    PHP Time Limit: 1200
    PHP Max Input Vars: 2500
    SUHOSIN Installed: –
    MySQL Version: 5.6.17
    Max Upload Size: 3 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.5.0
    :
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_termmeta: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    
    ### Active Plugins (17) ###
    
    bbPress: by The bbPress Community – 2.5.8
    Breadcrumb NavXT: by John Havlik – 5.2.2
    CF Post Formats: by crowdfavorite – 1.2
    Contact Form 7: by Takayuki Miyoshi – 4.2.2
    Easy Pricing Tables Lite by Fatcat Apps: by David Hehenberger – 2.0.3
    Envato WordPress Toolkit: by Envato – 1.7.2
    Thememount Style Switcher: by Kwayy Infotech – 1.0
    WPBakery Visual Composer: by Michael M - WPBakery.com – 4.7
    Kwayy Get PHP File Name: by Kwayy Infotech – 1.0
    Regenerate Thumbnails: by Viper007Bond – 2.2.4
    Revolution Slider: by ThemePunch – 5.0.7
    The Events Calendar: by Modern Tribe
    Inc. – 3.11.2
    
    Theme Check: by Pross
    Otto42 – 20150818.1
    
    ThemeForest-Check: by Japh – 1.0.4
    WooCommerce: by WooThemes – 2.5.0
    WordPress Importer: by wordpressdotorg – 0.6.1
    WP Clean Up: by BoLiQuan – 1.2.3
    
    ### Settings ###
    
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    API Version: 3.1.0
    
    ### WC Pages ###
    
    Shop Base: #1569 - /shop/
    Cart: #1570 - /cart/
    Checkout: #1571 - /checkout/
    My Account: #1572 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Howes
    Version: 12.0
    Author URL: https://www.thememount.com/
    Child Theme: ? – If you're modifying WooCommerce on a parent theme you didn't build personally
    then we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –

    The “Enable AJAX add to cart buttons on archives” checkbox is already checked and I saved the settings again but still the ajax not working. Also it was working with prev version of WooCommerce so I think this is a bug. Technically, I checked and found that the add-to-cart button is missing the “add_to_cart_button product_type_simple” class. I can see only “button” class on the button.

    Bob

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Check and see if you made any custom edits to the previous WC version. WC 2.5 would’ve removed those custom edits. I’m guessing you have a custom cart? Is everything about the cart vanilla including the quick cart?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    The theme may have a function replacing the standard loop buttons – you’re missing the ajax_add_to_cart button class.

    Thread Starter Kwayy Infotech

    (@bimaljr)

    Yes right. It was theme code problem. It’s solved now.

    I’m having the same issue, the site worked perfectly but about a month ago the ajax stoped working now, when a customer adds and item to the cart the entire page refreshes…. it makes it a poor shopping experience for the visitor… how did you fix this?

    Hi, I’m using custom links to add products to my cart. I’m doing this by attaching the product ID after my site url + “?add-to-cart=”

    Now I want to implement the functionality where the page doesn’t reload when the button has been clicked, or change the current site url.

    Any suggestions? Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ajax add to cart is not working’ is closed to new replies.