ฟิลด์ผลิตภัณฑ์ตามเงื่อนไขของ WooCommerce ที่จุดชำระเงิน
อัพเดทล่าสุด: 2021-11-26T19:24:02+11:00
ปลั๊กอิน WooCommerce Conditional Product Fields at Checkout ช่วยให้คุณสามารถแสดงฟิลด์ผลิตภัณฑ์เพิ่มเติมเมื่อชำระเงิน! ฟิลด์สามารถ แสดงแบบไดนามิก ตามกฎตรรกะ…และทั้งหมดทำได้โดยใช้โปรแกรมแก้ไขภาพที่ดี!
สาธิตสด
https://www.codecanyondemo.work/wcpfc/wp-admin
(บัญชีแอดมินร้าน)
ผู้ใช้: demo
ผ่าน: สาธิต
(บัญชีลูกค้า)
ผู้ใช้: demo2
ผ่าน: สาธิต
เอกสาร
วิธีอัปเดตปลั๊กอินโดยอัตโนมัติ
หากต้องการรับการอัปเดตอัตโนมัติ เพียงติดตั้งและกำหนดค่าปลั๊กอินตัวอัปเดต Envato: https://goo.gl/pkJS33 คู่มืออย่างเป็นทางการที่อธิบายวิธีกำหนดค่าสามารถพบได้ในลิงก์ต่อไปนี้: https://envato.com/market- เสียบเข้าไป .
มันทำงานอย่างไร
ปลั๊กอินผ่านโปรแกรมแก้ไขภาพช่วยให้สามารถสร้างช่องผลิตภัณฑ์เพิ่มเติมซึ่งจะแสดงในหน้าชำระเงิน แต่ละฟิลด์สามารถมีของตัวเองได้ กฎเงื่อนไข โดยที่ปลั๊กอินกำหนดว่าต้องแสดงหรือไม่ กฎแบบมีเงื่อนไขสามารถพิจารณาค่าฟิลด์เงื่อนไขอื่นๆ หรือ ช่องชำระเงินดั้งเดิมของ WooCommerce ค่าเช่น:
- ช่องการเรียกเก็บเงิน
- พื้นที่จัดส่ง
- วิธีการชำระเงิน
สุดท้ายแต่ไม่ท้ายสุด แต่ละฟิลด์สามารถแสดงได้เพียง ครั้งหนึ่ง ต่อการสั่งซื้อหนึ่งครั้ง ต่อสินค้า, หรือหนึ่งครั้งสำหรับแต่ละ ปริมาณตะกร้าสินค้า.
ตัวอย่าง
ตัวอย่างเช่น คุณสามารถ:
- สร้างฟิลด์ที่จะแสดงก็ต่อเมื่อประเทศที่เรียกเก็บเงินคืออิตาลีและรัฐ/จังหวัดคือโรม
- สร้างฟิลด์ที่จะแสดงก็ต่อเมื่อวิธีการชำระเงินคือ PayPal
- หลังจากสร้างฟิลด์ข้อความชื่อ “field1” คุณสามารถสร้างฟิลด์ที่สองที่จะแสดงก็ต่อเมื่อ “field1” มีวลี “hello world” และอื่น ๆ !
- หลังจากสร้างฟิลด์วันที่ “field1” คุณสามารถสร้างฟิลด์ที่สองที่จะแสดงก็ต่อเมื่อวันที่ที่เลือกสำหรับ “field1” มากกว่า 25 ธันวาคม 2018
และอื่นๆ!
ตรรกะตามเงื่อนไขและการแสดงฟิลด์ไดนามิก
แต่ละฟิลด์สามารถมีกฎเงื่อนไข “และ/หรือ” ได้หลายกฎซึ่งจะทำให้ฟิลด์นี้ แบบไดนามิก มองเห็นได้ก็ต่อเมื่อพอใจ กฎแบบมีเงื่อนไขสามารถเกี่ยวข้องกับค่าของฟิลด์อื่นๆ หรือฟิลด์การเรียกเก็บเงิน/การชำระเงินในการจัดส่งดั้งเดิม
บันทึก: ในกรณีของค่าฟิลด์กำหนดเองอื่น ๆ กฎตรรกะสามารถสร้างขึ้นได้เฉพาะสำหรับฟิลด์ที่มีค่าเดียวกัน นโยบายการแสดงผล และ ตำแหน่ง ตัวเลือก.
ประเภทฟิลด์
ปลั๊กอินจะช่วยให้ผู้ดูแลระบบร้านค้าสร้างประเภทฟิลด์ต่อไปนี้:
- ข้อความ
- Textarea
- ตัวเลข
- อีเมล
- เลือก/เลือกหลายรายการ
- วันที่
- เวลา
- ประเทศและรัฐ
- HTML
สำหรับแต่ละฟิลด์ คุณสามารถกำหนดค่าตัวเลือกของตัวเองได้ เช่น คลาส CSS เพื่อกำหนดให้กับฟิลด์อินพุต, ข้อความตัวแทน, แสดงในอีเมล, แสดงบนหน้ารายละเอียดคำสั่งซื้อ, ขนาดแถว ฯลฯ
บันทึก: ฟิลด์ HTML จะปรากฏขึ้น เท่านั้น ในหน้าชำระเงิน สามารถใช้เพื่อจัดระเบียบฟิลด์อื่น ๆ ได้ (เช่น การสร้างหัวเรื่อง)
การมองเห็นตามผลิตภัณฑ์/หมวดหมู่
ฟิลด์สามารถแสดงได้เฉพาะสำหรับผลิตภัณฑ์หรือหมวดหมู่ที่เลือกเท่านั้น หากไม่มีการเลือกใดๆ ปลั๊กอินจะแสดงหนึ่งฟิลด์สำหรับแต่ละผลิตภัณฑ์ในรถเข็น การเลือกหมวดหมู่ ปลั๊กอินจะแสดงหนึ่งฟิลด์สำหรับแต่ละผลิตภัณฑ์ที่ตรงกับหมวดหมู่ที่เลือก
นโยบายการแสดงผล
โดยค่าเริ่มต้น ปลั๊กอินจะแสดงฟิลด์สำหรับสินค้าแต่ละชิ้นที่ตรงกัน อย่างไรก็ตาม คุณสามารถเลือกจากตัวเลือกต่อไปนี้:
- ต่อผลิตภัณฑ์: ช่องจะแสดงเพียงครั้งเดียวสำหรับการจับคู่ผลิตภัณฑ์
- ต่อปริมาณรถเข็น: ช่องจะแสดง N ครั้งสำหรับการจับคู่สินค้า โดยที่ N คือปริมาณรถเข็น
- ครั้งเดียว: เพียงครั้งเดียวหากผลิตภัณฑ์/หมวดหมู่ที่เลือกอย่างน้อยหนึ่งรายการตรงกับรายการที่อยู่ในรถเข็นในปัจจุบัน
ตำแหน่ง
คุณสามารถเลือกได้ว่าจะให้แสดงฟิลด์ใด: หลังจากแบบฟอร์มการเรียกเก็บเงินหรือการจัดส่ง
บันทึก: ในกรณีที่เลือกแบบฟอร์มการจัดส่ง ช่องจะแสดงก็ต่อเมื่อ จัดส่งไปยังที่อยู่อื่น ตัวเลือกได้รับการตรวจสอบระหว่างการชำระเงิน มิฉะนั้น WooCommerce จะไม่แสดงแบบฟอร์มการจัดส่ง จากนั้นฟิลด์จะมองไม่เห็น
บันทึกช่องประเทศและรัฐ
สามารถเลือกได้เฉพาะรัฐ/จังหวัดสำหรับประเทศที่ขายที่ได้รับอนุญาตซึ่งกำหนดค่าใน WooCommerce -> การตั้งค่า -> เมนูทั่วไป
ความเข้ากันได้ของ WPML
หากตรวจพบ WPML ปลั๊กอินจะแสดงช่องป้อนข้อมูลหลายภาษาสำหรับป้ายกำกับ ตัวยึดตำแหน่ง ฯลฯ โดยอัตโนมัติ ด้วยวิธีนี้ คุณสามารถป้อนข้อความต่างๆ สำหรับแต่ละภาษาได้
การรวมส่วนหน้า
ฟิลด์เพิ่มเติมจะถูกรวมเข้าด้วยกันอย่างราบรื่น (ในกรณีของประเภทฟิลด์ “ครั้งเดียว”) หรือหลังจากนั้น (ในกรณีของประเภทฟิลด์ “ต่อผลิตภัณฑ์” หรือ “ต่อจำนวนรถเข็น”) แบบฟอร์มการเรียกเก็บเงิน / การจัดส่ง หากกฎเงื่อนไขที่เกี่ยวข้อง (ถ้ามี) ) เป็นที่พอใจ บันทึก: ในกรณีที่เลือกแบบฟอร์มการจัดส่ง ช่องจะแสดงก็ต่อเมื่อ จัดส่งไปยังที่อยู่อื่น ตัวเลือกได้รับการตรวจสอบระหว่างการชำระเงิน มิฉะนั้น WooCommerce จะไม่แสดงแบบฟอร์มการจัดส่ง จากนั้นฟิลด์จะมองไม่เห็น
ปลั๊กอินจะแสดงข้อความยืนยันเมื่อมีการสั่งซื้อในกรณีที่มีฟิลด์บังคับ รูปแบบอีเมลไม่ถูกต้อง หรือถ้าค่าตัวเลขไม่อยู่ในช่วงที่เลือกไว้ล่วงหน้า
การรวมแบ็กเอนด์
ฟิลด์เพิ่มเติมจะถูกรวมเข้ากับหน้ารายละเอียดคำสั่งซื้ออย่างราบรื่นตามประเภทฟิลด์ มีการรายงานฟิลด์แบบครั้งเดียวภายใต้รายละเอียดการเรียกเก็บเงิน/การจัดส่งของลูกค้า (ตามตำแหน่งฟิลด์) และประเภทฟิลด์ปริมาณสินค้า/รถเข็นจะถูกรายงานภายใต้แต่ละผลิตภัณฑ์ที่พวกเขาอ้างอิง
หมายเหตุเกี่ยวกับการเปลี่ยนแปลงรูปแบบการชำระเงิน
หากคุณได้เปลี่ยนแปลงรูปแบบการชำระเงินโดยการเพิ่ม/ลบ/ปรับแต่งฟิลด์โดยใช้ปลั๊กอินของบุคคลที่สาม การดำเนินการนี้อาจรบกวนการทำงานของปลั๊กอินทำให้ทำงานไม่ถูกต้อง
ภาพหน้าจอ
หน้าตัวกำหนดค่าฟิลด์
ตรรกะของเงื่อนไข – หน้าตัวกำหนดค่าฟิลด์
หน้าชำระเงิน
หน้ารายละเอียดการสั่งซื้อ
อีเมลแจ้งเตือน

แอดมินเพจรายละเอียดการสั่งซื้อ

= 5.4 - 11.10.21 =
* Bugfix
= 5.3 - 27.07.21 =
* Code Redesign
= 5.2 - 02.03.21 =
* Bugfix
= 5.1 - 29.12.20 =
* Fixed an issue due to when using date fields, when excluding just one day, the fields were not properly rendered
= 5.0 - 08.09.20 =
* Minor improvement
= 4.9 - 20.08.20 =
* Fixed an issue related to the delete process
= 4.8 - 19.08.20 =
* Minor bugfix
= 4.7 - 18.08.20 =
* Fixed an issue related to the logic condition configurator
= 4.6 - 06.05.20 =
* Fixed an issue related to WPML
= 4.5 - 04.05.20 =
* Minor bugfix
= 4.4 - 02.04.20 =
* Fixed an issue with date display format
= 4.3 - 09.03.20 =
* Added option to disable specific day of the week for date selector
= 4.2 - 19.02.20 =
* Bugfix related to the date and time fields
= 4.1 - 08.02.20 =
* Fixed an issue due to field headers were shown after the shipping form even if they should not
= 4.0 - 04.01.20 =
* Fixed an issue related to the relative max date option
= 3.9 - 12.11.19 =
* Fixed an issue related with WordPress 5.3 that may prevent field to be properly shown on checkout and in the configuration page
= 3.8 - 07.11.19 =
* Fixed an issue related to the min/max date selection option for Date field
= 3.7 - 04.11.19 =
* Fixed an issue related to WPML field label translation on the Order details page
= 3.6 - 01.11.19 =
* Removed "billing" and "shipping" prefixes for "one time" field type
= 3.5 - 21.08.19 =
* Fixed an issue related to the checkout validation process for required fields
= 3.4 - 10.08.19 =
* Fixed an issue due to the "one time" field type mandatory option was ignored
= 3.3 - 31.07.19 =
* Unique id is now showed in the field configuration panel
= 3.2 - 28.07.19 =
* Minor bugfix
= 3.1 - 16.07.19 =
* Fixed an issue related to mandatory fields and blank character
= 3.0 - 11.07.19 =
* Product selector now shows only published products
= 2.9 - 09.07.19 =
* Improved datepicker: is now possible to choose the number of years to show in the year selector
= 2.8 - 08.07.19 =
* Datepicker widget css improvement
= 2.7 - 27.06.19 =
* Fixed an issue with the logic operator option and the Country/state selector
= 2.6 - 11.06.19 =
* Is now possible to multiple select products and categories. Selection box won't close at first selection
= 2.5 - 23.04.19 =
* HTML field type added
= 2.4 - 23.04.19 =
* Minor bugfix
= 2.3 - 19.04.19 =
* Minor bugfix
= 2.2 - 10.01.19 =
* Minor bugfix
= 2.1 - 08.12.18 =
* Fields displayed according product quantity are now visually grouped
= 2.0 - 26.11.18 =
* Fixed an issue due to fields were not displayed on checkout forms
= 1.9 - 21.11.18 =
* Fixed an issue due to using virtual product the plugin crashed at checkout page (thanks to 17seconds)
= 1.8 - 21.11.18 =
* Fixed an issue due to for Select field, placeholder value was not properly showed on configuration menu
= 1.7 - 12.11.18 =
* Fixed an issue due to required fields were highlighted even if a value was still not inserted
= 1.6 - 08.11.18 =
* Fixed an incompability with Admin columns pro
= 1.5 - 08.11.18 =
* Fixed an issue that may raise 500 server error
= 1.4 - 08.11.18 =
* Fixed an issue due to admin Order preview was not working
= 1.3 - 18.10.18 =
* Added "Payment methods" to logic options
= 1.2 - 05.10.18 =
* Added new activation system: now the plugin can be only activated in two domains and they cannot be unregistered
= 1.1 - 07.09.18 =
* Fixed an issue with select fields and logic rules
= 1.0 - 05.09.18 =
* First release
= 5.4 - 11.10.21 = * Bugfix = 5.3 - 27.07.21 = * Code Redesign = 5.2 - 02.03.21 = * Bugfix = 5.1 - 29.12.20 = * Fixed an issue due to when using date fields, when excluding just one day, the fields were not properly rendered = 5.0 - 08.09.20 = * Minor improvement = 4.9 - 20.08.20 = * Fixed an issue related to the delete process = 4.8 - 19.08.20 = * Minor bugfix = 4.7 - 18.08.20 = * Fixed an issue related to the logic condition configurator = 4.6 - 06.05.20 = * Fixed an issue related to WPML = 4.5 - 04.05.20 = * Minor bugfix = 4.4 - 02.04.20 = * Fixed an issue with date display format = 4.3 - 09.03.20 = * Added option to disable specific day of the week for date selector = 4.2 - 19.02.20 = * Bugfix related to the date and time fields = 4.1 - 08.02.20 = * Fixed an issue due to field headers were shown after the shipping form even if they should not = 4.0 - 04.01.20 = * Fixed an issue related to the relative max date option = 3.9 - 12.11.19 = * Fixed an issue related with WordPress 5.3 that may prevent field to be properly shown on checkout and in the configuration page = 3.8 - 07.11.19 = * Fixed an issue related to the min/max date selection option for Date field = 3.7 - 04.11.19 = * Fixed an issue related to WPML field label translation on the Order details page = 3.6 - 01.11.19 = * Removed "billing" and "shipping" prefixes for "one time" field type = 3.5 - 21.08.19 = * Fixed an issue related to the checkout validation process for required fields = 3.4 - 10.08.19 = * Fixed an issue due to the "one time" field type mandatory option was ignored = 3.3 - 31.07.19 = * Unique id is now showed in the field configuration panel = 3.2 - 28.07.19 = * Minor bugfix = 3.1 - 16.07.19 = * Fixed an issue related to mandatory fields and blank character = 3.0 - 11.07.19 = * Product selector now shows only published products = 2.9 - 09.07.19 = * Improved datepicker: is now possible to choose the number of years to show in the year selector = 2.8 - 08.07.19 = * Datepicker widget css improvement = 2.7 - 27.06.19 = * Fixed an issue with the logic operator option and the Country/state selector = 2.6 - 11.06.19 = * Is now possible to multiple select products and categories. Selection box won't close at first selection = 2.5 - 23.04.19 = * HTML field type added = 2.4 - 23.04.19 = * Minor bugfix = 2.3 - 19.04.19 = * Minor bugfix = 2.2 - 10.01.19 = * Minor bugfix = 2.1 - 08.12.18 = * Fields displayed according product quantity are now visually grouped = 2.0 - 26.11.18 = * Fixed an issue due to fields were not displayed on checkout forms = 1.9 - 21.11.18 = * Fixed an issue due to using virtual product the plugin crashed at checkout page (thanks to 17seconds) = 1.8 - 21.11.18 = * Fixed an issue due to for Select field, placeholder value was not properly showed on configuration menu = 1.7 - 12.11.18 = * Fixed an issue due to required fields were highlighted even if a value was still not inserted = 1.6 - 08.11.18 = * Fixed an incompability with Admin columns pro = 1.5 - 08.11.18 = * Fixed an issue that may raise 500 server error = 1.4 - 08.11.18 = * Fixed an issue due to admin Order preview was not working = 1.3 - 18.10.18 = * Added "Payment methods" to logic options = 1.2 - 05.10.18 = * Added new activation system: now the plugin can be only activated in two domains and they cannot be unregistered = 1.1 - 07.09.18 = * Fixed an issue with select fields and logic rules = 1.0 - 05.09.18 = * First release