SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | defined( 'ABSPATH' ) or die(); | |
| 3 | ?> | |
| 4 | <div class="wjecf-fragment-checkout-select-free-product"> | |
| 5 | ||
| 6 | <!-- | |
| 7 | <?php | |
| 8 | - | if ( empty( $coupon_form_data['selected_quantity'] ) ) {
|
| 8 | + | echo 'CART=' . htmlspecialchars( print_r( WC()->cart->get_cart(), true ) ) . "\n\n"; |
| 9 | - | $template->render_template( 'coupon-select-free-product.php', $coupon_form_data ); |
| 9 | + | echo 'STACK=' . htmlspecialchars( print_r( debug_backtrace() , true ) ) . "\n\n"; |
| 10 | - | } |
| 10 | + | |
| 11 | --> | |
| 12 | <?php | |
| 13 | ||
| 14 | foreach ( $coupons_form_data as $coupon_code => $coupon_form_data ) : | |
| 15 | $template->render_template( 'coupon-select-free-product.php', $coupon_form_data ); | |
| 16 | endforeach; | |
| 17 | ||
| 18 | ?> | |
| 19 | </div> |