golden hour
/home/godaofbq/hardchambers.com/wp-content/plugins/discountify/core/admin/discount-rules
⬆️ Go Up
Upload
File/Folder
Size
Actions
.htaccess
127 B
Del
OK
add-bogo-rules.php
2.09 KB
Del
OK
add-rules.php
8.99 KB
Del
OK
discount-rules.php
1.66 KB
Del
OK
repeater-field.php
2.08 KB
Del
OK
Edit: repeater-field.php
<?php $repeater_field = array( array( 'label'=>esc_html__("Minimum QTY:","discountify"), 'label_class' => 'min-label', 'field_type' => 'number', 'id' => 'min', 'value' => '', ), array( 'label'=>esc_html__("Maximum QTY:","discountify"), 'label_class' => 'max-label', 'field_type' => 'number', 'id' => 'max', 'value' => '', ), array( 'label'=>esc_html__("Discount QTY:","discountify"), 'field_type' => 'number', 'id' => 'free_quantity', 'condition_class' => 'free_qty', 'value' => '', ), array( 'label'=>esc_html__("Discount Type:","discountify"), 'field_type' => 'select', 'id' => 'offer_type', 'condition_class' => 'offer_category', 'options' => array( 'free' => esc_html__("Free","discountify") , 'percentage' => esc_html__("Percentage","discountify"), 'fixed' => esc_html__("Fixed","discountify") ), ), array( 'label'=>esc_html__("Discount Number:","discountify"), 'field_type' => 'number', 'id' => 'discount_number', 'condition_class' => 'repeat_discount_no d-none', 'extra_label_class' => 'multi_discounts_symbol', ), ); $products = array( 'label'=>esc_html__("Products:","discountify"), 'field_type' => 'select2', 'id' => 'bogo_x_y_products', 'condition_class' => 'x_y_product d-none', 'options' => \discountify\Utils\Helper::get_products() ); $categories = array( 'label'=>esc_html__("Categories:","discountify"), 'field_type' => 'select2', 'id' => 'bogo_x_y_categories', 'condition_class' => 'x_y_category d-none', 'options' => \discountify\Utils\Helper::get_categories() ); array_push($repeater_field,$products,$categories); // Repeater field multi discounts $args = array( 'label' =>esc_html__("Discount:","discountify"), 'id' => 'multi_discounts', 'name' => 'multi_discounts['.$type.']', 'repeat_field' => $repeater_field ); discountify_repeater_field( $type , $args );
Save