Skip to content

Commit

Permalink
fix: 移除 $("#shipping_country").val() === "TW" 條件,以免有些人會移除欄位
Browse files Browse the repository at this point in the history
  • Loading branch information
j7-dev committed Jul 25, 2024
1 parent 93ccc8c commit 570e917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions public/js/woomp-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jQuery(function ($) {
$("#" + field + "_postcode_field")
);
}
if (
$("#billing_country").val() === "TW" &&
$("#shipping_country").val() === "TW"
) {
//TODO $("#shipping_country").val() === "TW" 這個條件先隱藏起來,未來再補

if ($("#billing_country").val() === "TW") {
$(".woocommerce-billing-fields,.woocommerce-shipping-fields").twzipcode();

updateField("billing");
Expand Down
2 changes: 1 addition & 1 deletion woomp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Plugin Name: 好用版擴充 MorePower Addon for WooCommerce
* Plugin URI: https://morepower.club/morepower-addon/
* Description: WooCommerce 好用版擴充,改善結帳流程與可變商品等區塊,並整合多項金流,讓 WooCommerce 更符合亞洲人使用習慣。
* Version: 3.4.0
* Version: 3.4.1
* Author: MorePower
* Author URI: https://morepower.club
* License: GPL-2.0+
Expand Down

0 comments on commit 570e917

Please sign in to comment.