Changeset 3412260
- Timestamp:
- 12/05/2025 02:19:41 PM (6 weeks ago)
- Location:
- advanced-dynamic-pricing-for-woocommerce/trunk/BaseVersion/Includes
- Files:
-
- 2 edited
-
Cache/CacheHelper.php (modified) (1 diff)
-
Core/Cart/CartCustomer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-dynamic-pricing-for-woocommerce/trunk/BaseVersion/Includes/Cache/CacheHelper.php
r3412190 r3412260 379 379 } 380 380 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, 384 384 $theProduct, $variationAttributes, $qty, $cartItemData, $cart, $calc); 385 385 386 386 $hash = md5(implode('_', $parts)); 387 387 388 388 return $hash; 389 389 } -
advanced-dynamic-pricing-for-woocommerce/trunk/BaseVersion/Includes/Core/Cart/CartCustomer.php
r3412190 r3412260 10 10 defined('ABSPATH') or exit; 11 11 12 class CartCustomer implements \JsonSerializable12 class CartCustomer 13 13 { 14 14 /** … … 97 97 } 98 98 99 public function jsonSerialize(): mixed { 99 /** 100 * @return array 101 */ 102 public function getJson() 103 { 100 104 return [ 101 105 'id' => $this->getId(),
Note: See TracChangeset
for help on using the changeset viewer.