1Day 3 年之前
父節點
當前提交
86fd0059d2
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      app/Classes/Settings/Payments.php
  2. 3 3
      resources/views/admin/settings/tabs/payments.blade.php

+ 1 - 1
app/Classes/Settings/Payments.php

@@ -32,7 +32,7 @@ class Payments
             "SETTINGS::PAYMENTS:STRIPE:TEST_SECRET" => "stripe-test-secret",
             "SETTINGS::PAYMENTS:STRIPE:ENDPOINT_TEST_SECRET" => "stripe-endpoint-test-secret",
             "SETTINGS::PAYMENTS:STRIPE:METHODS" => "stripe-methods",
-            "SETTINGS::PAYMENTS:SALES_TAX" => "salex_tax"
+            "SETTINGS::PAYMENTS:SALES_TAX" => "sales_tax"
         ];
 
 

+ 3 - 3
resources/views/admin/settings/tabs/payments.blade.php

@@ -122,10 +122,10 @@
                     <div class="form-group">
                         <div class="custom-control mb-3">
                             <label
-                                for="salex_tax">{{ __('The %-value of tax that will be added to the product price on checkout')}}</label>
-                            <input x-model="salex_tax" id="salex_tax" name="salex_tax" type="number"
+                                for="sales_tax">{{ __('The %-value of tax that will be added to the product price on checkout')}}</label>
+                            <input x-model="sales_tax" id="sales_tax" name="sales_tax" type="number"
                                    value="{{ App\Models\Settings::getValueByKey("SETTINGS::PAYMENTS:SALES_TAX") }}"
-                                   class="form-control @error('salex_tax') is-invalid @enderror">
+                                   class="form-control @error('sales_tax') is-invalid @enderror">
                         </div>
                     </div>
                 </div>