Changeset 3373097
- Timestamp:
- 10/05/2025 10:20:46 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
universam-demo/trunk/includes/basket/cart.class.php
r3371969 r3373097 520 520 if ( $basket['contact_id'] != $contact_id ) 521 521 { // Если у зарегистрированного пользователя есть корзина 522 require_once( USAM_FILE_PATH . '/includes/basket/users_basket_query.class.php' ); 522 523 $basket = usam_get_users_baskets(['contact_id' => $contact_id, 'cache_results' => true, 'cache_meta' => true, 'number' => 1]); 523 524 if ( $basket && $basket['user_id'] == 0 ) … … 530 531 } 531 532 } 532 if ( empty($basket) ) 533 if ( empty($basket) ) 534 { 535 require_once( USAM_FILE_PATH . '/includes/basket/users_basket_query.class.php' ); 533 536 $basket = usam_get_users_baskets(['contact_id' => $contact_id, 'cache_results' => true, 'cache_meta' => true, 'number' => 1]); 534 537 } 535 538 $coupon_code = usam_get_contact_metadata($contact_id, 'coupon_code' ); 536 539 if ( $coupon_code )
Note: See TracChangeset
for help on using the changeset viewer.