<?php

// Exit if accessed directly.
if (!defined('ABSPATH')) {
    exit;
}

?>
<div class="wc-bundled-item wc-metabox <?php echo $toggle; ?>" rel="<?php echo $loop; ?>">
    <h3>
        <strong name="<?php echo $loop; ?>" class="item-title"><?php echo $title; ?></strong>
        <a href="#" class="remove_row delete"><?php echo __('Remove', 'woocommerce'); ?></a>
    </h3>
    <div class="item-data wc-metabox-content">
        <input type="hidden" name="tempate_data[<?php echo $loop; ?>][menu_order]" class="item_menu_order" value="<?php echo $loop; ?>" /><?php

        if ( false !== $item_id ) {
            ?><input type="hidden" name="template_data_<?php echo $options?>[<?php echo $loop; ?>][item_id]" class="item_id" value="<?php echo $item_id; ?>" /><?php
        }

        ?><input type="hidden" name="template_data_<?php echo $options?>[<?php echo $loop; ?>][template_category_title]" class="product_title" value="<?php echo $title; ?>" /><?php
        ?><input type="hidden" name="template_data_<?php echo $options?>[<?php echo $loop; ?>][template_category_id]" class="product_id" value="<?php echo $template_category_id; ?>" />

    </div><?php

    woocommerce_wp_text_input(array(
        'id' => '_product_quantity',
        'label' => __('Quantity', 'woocommerce'),
        'desc_tip' => 'true',
        'description' => __('Choose the quantity of product', 'woocommerce'),
        'type' => 'text',
        'name' => 'template_data_'.$options .'['. $loop.'][quantity]',
        'value' => $quantity
    ));

    ?></div>
