| 1 |
<?php if ( ! defined( 'WPINC' ) ) { |
| 2 |
die; |
| 3 |
} |
| 4 |
|
| 5 |
/** |
| 6 |
* Available variables |
| 7 |
* |
| 8 |
* @var array $rules |
| 9 |
*/ |
| 10 |
|
| 11 |
$prefix = 'category'; |
| 12 |
|
| 13 |
?> |
| 14 |
<style> |
| 15 |
.remove-price-rule { |
| 16 |
display: inline-block; |
| 17 |
position: relative; |
| 18 |
padding: 2px 0 2px 5px; |
| 19 |
outline: none; |
| 20 |
cursor: pointer; |
| 21 |
} |
| 22 |
</style> |
| 23 |
<tr class="form-field"> |
| 24 |
<th scope="row" valign="top"> |
| 25 |
<label for="attribute_label">Tiered pricing</label> |
| 26 |
</th> |
| 27 |
<td> |
| 28 |
|
| 29 |
<p class="form-field" data-tiered-price-type-percentage data-tiered-price-type> |
| 30 |
<span data-price-rules-wrapper> |
| 31 |
<span data-price-rules-container> |
| 32 |
<span data-price-rules-input-wrapper style="display: flex"> |
| 33 |
<input type="number" style="margin-right: 10px;" min="2" |
| 34 |
placeholder="<?php esc_html_e( 'Quantity', 'tier-pricing-table' ); ?>" |
| 35 |
class="price-quantity-rule price-quantity-rule--simple" |
| 36 |
disabled> |
| 37 |
<input type="number" max="99" placeholder="<?php esc_attr_e( 'Percentage discount', 'tier-pricing-table' ); ?>" |
| 38 |
class="price-quantity-rule--simple" |
| 39 |
disabled> |
| 40 |
<span class="notice-dismiss remove-price-rule" style="position: relative"></span> |
| 41 |
</span> |
| 42 |
<br> |
| 43 |
</span> |
| 44 |
|
| 45 |
<button class="button" disabled> |
| 46 |
<?php esc_html_e( 'New tier', 'tier-pricing-table' ); ?> |
| 47 |
</button> |
| 48 |
|
| 49 |
</span> |
| 50 |
</p> |
| 51 |
|
| 52 |
<br> |
| 53 |
<p class="description"> |
| 54 |
Assign percentage discounts for products that have this category. Rules can be overridden |
| 55 |
in product. |
| 56 |
</p> |
| 57 |
<p style="color: red">Available only in the premium version</p> |
| 58 |
<a target="_blank" |
| 59 |
href="<?php echo esc_attr( tpt_fs_activation_url() ); ?>"><?php esc_html_e( 'Upgrade', 'tier-pricing-table' ); ?></a> |
| 60 |
<br> |
| 61 |
</td> |
| 62 |
</tr> |
| 63 |
|