ResolvedAdd to Cart Button Not Working

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20376
    2410webdesign
    Participant

    Hi, on staging3.2410preview.com/order (see the Deals section or click any category to see more products), none of the add to cart buttons are working. Pretty sure it’s a javascript error. We have the Lafka Quick View enabled with no other quick view plugins & we’ve hidden the link in the titles to the single product page & the images using CSS in the theme’s customizer. I’m using this plugin, if it makes a difference.

    FROM DEBUG.LOG:

    [13-Dec-2019 16:41:25 America/New_York] PHP Notice:  Undefined variable: post in /home/c2410web/staging/3/wp-content/themes/lafka/woocommerce/content-single-product-lafka-quickview.php on line 65
    [13-Dec-2019 16:41:25 America/New_York] PHP Fatal error:  Uncaught Error: Call to a member function get_id() on null in /home/c2410web/staging/3/wp-content/themes/lafka/woocommerce/content-single-product-lafka-quickview.php:65
    Stack trace:
    #0 /home/c2410web/staging/3/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include()
    #1 /home/c2410web/staging/3/wp-content/themes/lafka/incl/woocommerce-functions.php(787): wc_get_template('content-single-...')
    #2 /home/c2410web/staging/3/wp-includes/class-wp-hook.php(288): lafka_quickview('')
    #3 /home/c2410web/staging/3/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters('', Array)
    #4 /home/c2410web/staging/3/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #5 /home/c2410web/staging/3/wp-admin/admin-ajax.php(175): do_action('wp_ajax_lafka_q...')
    #6 {main}
      thrown in /home/c2410web/staging/3/wp-content/themes/lafka/woocommerce/content-single-product-lafka-quickview.php on line 65

    THE LINE 65 REFERENCED ABOVE IS:

    65 echo apply_filters('woocommerce_single_product_image_html', sprintf('<img src="%s" alt="%s" />', wc_placeholder_img_src(), 
    
    66 esc_html__('Placeholder', 'lafka')), $post->get_id());

    Also, while I’ve got you, can you provide me the CSS to cause all the columns/buttons to bottom align or have the button end at the same place horizontally? Nothing I’ve tried works.

    I’d prefer not to provide login credentials to the site or cpanel/ftp, but if there’s anything else I can provide that’s helpful, let me know.

    Thanks!

    #20378
    2410webdesign
    Participant

    I fixed this by using Yith’s quick view plugin & disabling Lafka’s quick view feature.

    #20387
    Althemist
    Keymaster

    Hello 2410webdesign,

    It looks like you have removed the product image from the quickview and this is the reason for the error, as our built-in quick view feature is looking for the image.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register