@ -29,40 +29,37 @@
< h2 class = " font-weight-normal letter-spacing-2 mb-2 text-center " id = " wc_cdp_product_bundle_modal_label " >
< span class = " text-line-warning d-lg-block px-4 px-lg-0 " >
Fazer parzinho é mais legal !
</ span >
< h2 class = " <?php echo apply_filters( 'wc_cdp_modal_title_class', 'wc_cdp_modal_title' ); ?> " id = " wc_cdp_product_bundle_modal_label " >
< ? php echo get_option ( 'wc_cdp_title' ); ?>
</ h2 >
< p class = " text-muted text-center mb-5 " >
eu ouvi desconto ? é só adicionar os itens abaixo e aproveitar o valor promocional !
< p class = " <?php echo apply_filters( 'wc_cdp_modal_description_class', 'wc_cdp_modal_description' ); ?> " >
< ? php echo get_option ( 'wc_cdp_description' ); ?>
</ p >
< form action = " <?php echo get_admin_url(); ?>admin-post.php " method = " POST " >
< div class = " row align-items-center justify-content-center mb-3 " >
< div class = " <?php echo apply_filters( 'wc_cdp_modal_products_row_class', 'wc_cdp_modal_products_row' ); ?> " >
< ? php foreach ( $bundle_products as $key => $bundle_product ) : ?>
< div class = " col-lg-3 align-self-stretch " >
< div class = " <?php echo apply_filters( 'wc_cdp_modal_product_class', 'wc_cdp_modal_product' ); ?> " >
< ? php echo $bundle_product -> get_image (); ?>
< h6 class = " text-uppercase font-weight-bold text-center mt-2 " >
< h3 class = " <?php echo apply_filters( 'wc_cdp_modal_product_title_class', 'wc_cdp_modal_product_title' ); ?> " >
< ? php echo $bundle_product -> get_title (); ?>
</ h6 >
</ h3 >
< ? php
$product_cart_id = WC () -> cart -> generate_cart_id ( $bundle_product -> get_id () );
if ( WC () -> cart -> find_product_in_cart ( $product_cart_id ) ) :
?>
< p class = " text-success text-center " >
< p class = " <?php echo apply_filters( 'wc_cdp_already_on_cart_class', 'wc_cdp_modal_product_already_on_cart' ); ?> " >
< small >
( já está na sua cestinha )
< ? php echo apply_filters ( 'wc_cdp_already_on_cart_text' , __ ( '(já está no seu carrinho)' , 'wc-cdp' ) ); ?>
</ small >
</ p >
< ? php else : ?>
@ -75,10 +72,8 @@
< ? php if ( $key !== array_key_last ( $bundle_products ) ) : ?>
< div class = " col-lg-auto " >
< h2 class = " font-weight-bold text-primary m-0 " >
< div class = " <?php echo apply_filters( 'wc_cdp_modal_product_separator_class', 'wc_cdp_modal_product_separator' ); ?> " >
+
</ h2 >
</ div >
< ? php endif ; ?>
@ -87,24 +82,28 @@
</ div >
< div class = " text-center mb-3 wc_cdp_bundle_amount " >
< del >
< ? php echo wc_price ( $bundle_regular_price ); ?>
</ del >
< div class = " <?php echo apply_filters( 'wc_cdp_bundle_amount_class', 'wc_cdp_bundle_amount' ); ?> " >
< ? php if ( $bundle_discount_price ) : ?>
< del >
< ? php echo wc_price ( $bundle_regular_price ); ?>
</ del >
< ins >
< ? php echo wc_price ( $bundle_discount_price ); ?>
</ ins >
< ins >
< ? php echo wc_price ( $bundle_discount_price ); ?>
</ ins >
< ? php else : ?>
< ? php echo wc_price ( $bundle_regular_price ); ?>
< ? php endif ; ?>
</ div >
< div class = " text-center " >
< div class = " <?php echo apply_filters( 'wc_cdp_bundle_action_row_class', 'wc_cdp_bundle_action_row' ); ?> " >
< input type = " hidden " name = " action " value = " wc_cdp_add_to_cart " />
< input type = " hidden " name = " wc_cdp_bundle_coupon " value = " <?php echo $bundle_coupon->get_code (); ?> " />
< button type = " submit " class = " btn btn-primary text-uppercase text-white font-weight-bold py-1 " >
Colocar todos na cestinha !
< button type = " submit " class = " <?php echo apply_filters( 'wc_cdp_add_to_cart_button_class', 'button wc-forward alt wc_cdp_add_to_cart_button' ); ?> " >
< ? php echo apply_filters ( 'wc_cdp_add_to_cart_text' , get_option ( 'wc_cdp_add_to_cart_text' ) ); ?>
</ button >
</ div >