|
![](/images/resource/spacer.gif) |
|
ช่วย ใส่ดักค่า discount ต้องไม่เกิน 25% ของ total ให้หน่อยครับ |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
<script type="text/x-handlebars-template" id="tmpl-cart-totals">
<tr class="subtotal">
<th colspan="3"><?php _e( 'Cart Subtotal', 'woocommerce-pos' ); ?>:</th>
<td colspan="2">{{{money subtotal}}}</td>
</tr>
{{#if show_cart_discount}}
<tr class="cart-discount">
<th colspan="3"><?php _e( 'Cart Discount', 'woocommerce-pos' ); ?>:</th>
<td colspan="2">{{{money cart_discount negative=false}}}</td>
</tr>
{{/if}}
{{#if show_tax}}
{{#if show_itemized}}
{{#each itemized_tax}}
<tr class="tax">
<th colspan="3">
{{#if ../incl_tax}}<small>(<?php _ex( 'incl.', 'abbreviation for includes (tax)', 'woocommerce-pos' ); ?>)</small>{{/if}}
{{label}}:
</th>
<td colspan="2">{{{money total}}}</td>
</tr>
{{/each}}
{{else}}
<tr class="tax">
<th colspan="3">
{{#if incl_tax}}<small>(<?php _ex( 'incl.', 'abbreviation for includes (tax)', 'woocommerce-pos' ); ?>)</small>{{/if}}
<?php echo esc_html( WC()->countries->tax_or_vat() ); ?>:
</th>
<td colspan="2">{{{money total_tax}}}</td>
</tr>
{{/if}}
{{/if}}
<tr class="order-discount" {{#unless show_order_discount}}style="display:none"{{/unless}}>
<th colspan="3"><?php _e( 'Order Discount', 'woocommerce-pos' ); ?>:</th>
<td colspan="2">
<input type="text" value="{{number order_discount}}" size="10" data-id="order_discount" data-original="{{original}}" data-title="<?php _e( 'Discount', 'woocommerce-pos' ); ?>" data-placement="left" data-numpad="discount" class="autogrow">
<span class="amount">{{{money order_discount negative=false}}}</span>
</td>
</tr>
<tr class="order-total">
<th colspan="3"><?php _e( 'Order Total', 'woocommerce-pos' ); ?>:</th>
<td colspan="2">{{{money total}}}</td>
</tr>
</script>
อยากให้ดักค่า cart discount ห้ามเกิน cart subtotal 25% ต้องเพิ่มยังไงครับ ขอบคุณล่วงหน้าครับ
Tag : PHP, HTML/CSS, JavaScript, JAVA, JSP
![](/images/adv.jpg?v=1001)
|
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2015-01-15 09:48:24 |
By :
nguan08 |
View :
848 |
Reply :
1 |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
cart_discount ตัวแปรนี้หรือเล่าครับ
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
2015-01-15 17:17:50 |
By :
mr.win |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
|
![](/images/digitalocean-banner.jpg)
|
Load balance : Server 02
|