Plugin Directory

Changeset 3412260


Ignore:
Timestamp:
12/05/2025 02:19:41 PM (6 weeks ago)
Author:
algol.plus
Message:

dev fix

Location:
advanced-dynamic-pricing-for-woocommerce/trunk/BaseVersion/Includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • advanced-dynamic-pricing-for-woocommerce/trunk/BaseVersion/Includes/Cache/CacheHelper.php

    r3412190 r3412260  
    379379        }
    380380
    381         $parts[]= md5( json_encode( $cart->getContext()->getCustomer() ) );
    382 
    383         $parts = apply_filters("adp_calculate_processed_product_hash", $parts, 
     381        $parts[]= md5( json_encode( $cart->getContext()->getCustomer()->getJson() ) );
     382
     383        $parts = apply_filters("adp_calculate_processed_product_hash", $parts,
    384384                    $theProduct, $variationAttributes, $qty, $cartItemData, $cart, $calc);
    385385
    386386        $hash = md5(implode('_', $parts));
    387        
     387
    388388        return $hash;
    389389    }
  • advanced-dynamic-pricing-for-woocommerce/trunk/BaseVersion/Includes/Core/Cart/CartCustomer.php

    r3412190 r3412260  
    1010defined('ABSPATH') or exit;
    1111
    12 class CartCustomer implements \JsonSerializable
     12class CartCustomer
    1313{
    1414    /**
     
    9797    }
    9898
    99     public function jsonSerialize(): mixed  {
     99    /**
     100     * @return array
     101     */
     102    public function getJson()
     103    {
    100104        return [
    101105            'id'                      => $this->getId(),
Note: See TracChangeset for help on using the changeset viewer.