Plugin Directory

Changeset 3139818


Ignore:
Timestamp:
08/22/2024 02:23:51 PM (20 months ago)
Author:
kluvos
Message:

cart bug fixes

Location:
kluvos/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kluvos/trunk/kluvos.php

    r3108776 r3139818  
    44* Description: Official plugin for Kluvos.
    55* Author: Kluvos, LLC
    6 * Version: 1.1.1
     6* Version: 1.1.2
    77* Requires at least: 1.0
    8 * Tested up to: 6.4.2
     8* Tested up to: 6.6.1
    99* Stable tag: 1.1.1
    1010* Requires PHP: 7.0
     
    7171
    7272    // Hook into WooCommerce product page load
    73     add_action('woocommerce_before_single_product', 'kluvos_send_viewed_product_to_server');
     73    add_action('woocommerce_after_single_product', 'kluvos_send_viewed_product_to_server');
    7474
    7575}
     
    210210    $cart = WC()->cart;
    211211
     212    // Trigger cart totals recalculation
     213    $cart->calculate_totals();
     214
    212215    $cart_contents = $cart->get_cart();
    213216
     
    298301
    299302    $cart = WC()->cart;
     303    // Trigger cart totals recalculation
     304    $cart->calculate_totals();
    300305    $cart_contents = $cart->get_cart();
    301306
     
    630635            WC()->cart->add_to_cart($product_id, $quantity);
    631636        }
     637
     638        // Save the cart session and recalculate totals
     639        WC()->cart->set_session();
     640        WC()->cart->calculate_totals();
    632641    }
    633642
  • kluvos/trunk/readme.txt

    r3108776 r3139818  
    33Tags: analytics, attribution, kluvos
    44Requires at least: 1.0
    5 Tested up to: 6.4.2
    6 Stable tag: 1.1.1
     5Tested up to: 6.6.1
     6Stable tag: 1.1.2
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    6464== Changelog ==
    6565
     66= 1.1.2 =
     67
     68* WooCommerce Cart bug fixes.
     69
    6670= 1.1.1 =
    6771
Note: See TracChangeset for help on using the changeset viewer.