Added templates product
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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; ?>][product_title]" class="product_title" value="<?php echo $title; ?>" /><?php
|
||||
?><input type="hidden" name="template_data_<?php echo $options?>[<?php echo $loop; ?>][product_id]" class="product_id" value="<?php echo $product_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>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
// Exit if accessed directly.
|
||||
if (!defined('ABSPATH')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div>
|
||||
<h3>
|
||||
<strong class="item-title"><?php echo $title; ?></strong>
|
||||
<strong class="item-title"><?php echo $quantity; ?></strong>
|
||||
</h3>
|
||||
</div><?php
|
||||
Reference in New Issue
Block a user