Changeset 2967250
- Timestamp:
- 09/14/2023 08:11:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asm-manager/trunk/includes/asmplsww_query_live.php
r2848702 r2967250 2 2 /** 3 3 * @package ASM Shipping Api 4 * @version 1.2. 54 * @version 1.2.6 5 5 */ 6 6 global $woocommerce; … … 50 50 if (isset($woocommerce->cart->get_applied_coupons()['0']) && $woocommerce->cart->get_applied_coupons()['0'] != "") { 51 51 $coupons_obj = new WC_Coupon($woocommerce->cart->get_applied_coupons()['0']); 52 $coupons_amount = $woocommerce->cart->get_ subtotal() * $coupons_obj->get_amount() / 100;52 $coupons_amount = $woocommerce->cart->get_discount_total(); 53 53 } 54 54 … … 75 75 <AccountIdentifier>BD8h3Dhs7qj18shr2p</AccountIdentifier> 76 76 <StoreIndicator>" . $domainname . "</StoreIndicator> 77 <Total>" . $woocommerce->cart->cart_contents_total. "</Total>77 <Total>" . ($woocommerce->cart->cart_contents_total + $coupons_amount) . "</Total> 78 78 <TotalTaxable>" . $TotalTaxbaleProductPrice . "</TotalTaxable> 79 79 <TotalNonTaxable>" . $NonTaxableProductPrice . "</TotalNonTaxable> … … 110 110 } else { 111 111 $colorSize = ""; 112 } 113 114 $product_tags = get_the_terms( $values['product_id'], 'product_tag' ); 115 $product_tags_array = array(); 116 if ( ! empty( $product_tags ) && ! is_wp_error( $product_tags ) ){ 117 foreach ( $product_tags as $product_tag ) { 118 $product_tags_array[] = $product_tag->name; 119 } 112 120 } 113 121 … … 147 155 <HazMat>" . (asmCap($getcmeta, 'asmplsww_addons_hazmat') == 1 ? 'Y' : 'N') . "</HazMat> 148 156 <OptionsWeightPoints>" . asmCap($getcmeta, 'asmplsww_addons_options_weight_points') . "</OptionsWeightPoints> 157 <ProductTags>" . implode (", ", $product_tags_array) . "</ProductTags> 149 158 </Attributes> 150 159 </Product>";
Note: See TracChangeset
for help on using the changeset viewer.