Plugin do WooCommerce para criação de combos de produtos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

52 lines
1.4 KiB

<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link https://horizontes.info
* @since 1.0.0
*
* @package Wc_Cdp
* @subpackage Wc_Cdp/admin/partials
*/
$index = 99999; // dummy index for data-row attribute
ob_start(); //Init the output buffering
include('product-fields-search.php'); //Include (and compiles) the given file
$row_data = ob_get_clean(); //Get the buffer and erase it
$index = 0;
?>
<div class="options_group _wc_cdp_container">
<div class="_wc_cdp_products_container" data-row="<?php esc_html_e($row_data); ?>">
<?php
foreach ( $bundle_products as $index => $product_id ) {
$inner_product = wc_get_product( $product_id );
include('product-fields-search.php');
}
$index += 1;
$inner_product = null;
include('product-fields-search.php');
?>
</div>
<!-- <p class="form-field hide_if_grouped hide_if_external"> -->
<?php
woocommerce_wp_select(
array(
'id' => '_wc_cdp_bundle_coupon',
'value' => $bundle_coupon ?? '',
'label' => __( 'Cupom do combo', 'wc-ped' ),
'options' => $coupons,
'desc_tip' => true,
'description' => __( 'Quando a pessoa adiciona o produto atual ao carrinho, os produtos inseridos aqui são exibidos em um popup.', 'wc-cdp' ),
)
);
?>
<!-- </p> -->
</div>