boxuk / dictator-woocommerce
Dictator 的 WooCommerce 状态
1.0.0-alpha
2022-03-14 16:28 UTC
Requires
- php: ^7.4 || ^8.0 || ^8.1
- boxuk/dictator: dev-master@dev
Requires (Dev)
- phpunit/phpunit: ^9.5
- wp-cli/wp-cli-bundle: ^2.4
- wp-cli/wp-cli-tests: ^3.0
README
安装
WP-CLI 包
wp package install boxuk/dictator-woocommerce
Composer 包
composer req boxuk/dictator-woocommerce
用法
在您的 Dictator 状态 yaml 文件中使用如下
state: site # ... woocommerce-general: store_address: 2 Some Street store_address_2: store_city: some town default_country: GB store_postcode: CF10 1XX allowed_countries: specific specific_allowed_countries: [GB, US] # ... woocommerce-advanced: cart_page_id: 10 checkout_page_id: 20 myaccount_page_id: 30 terms_page_id: 40 force_ssl_checkout: true
或作为网络的一部分
state: network # ... sites: : title: Site one active_plugins: - woocommerce/woocommerce.php # ... woocommerce-general: store_address: 2 Some Street store_address_2: store_city: some town default_country: GB store_postcode: CF10 1XX allowed_countries: specific specific_allowed_countries: [GB, US] # ... woocommerce-advanced: cart_page_id: 10 checkout_page_id: 20 myaccount_page_id: 30 terms_page_id: 40 force_ssl_checkout: true
支持设置
woocommerce-generalstore_addressstore_address_2store_citydefault_countrystore_postcodeallowed_countriesspecific_allowed_countriesship_to_countriesspecific_ship_to_countriesdefault_customer_addresscalc_taxesenable_couponscalc_discounts_sequentiallycurrencycurrency_posprice_thousand_sepprice_decimal_sepprice_num_decimals
woocommerce-productshop_page_idcart_redirect_after_addenable_ajax_add_to_cartplaceholder_imageweight_unitdimension_unitenable_reviewsreview_rating_verification_labelreview_rating_verification_requiredenable_review_ratingreview_rating_requiredmanage_stockhold_stock_minutesnotify_low_stocknotify_no_stockstock_email_recipientnotify_low_stock_amountnotify_no_stock_amounthide_out_of_stock_itemsstock_formatfile_download_methoddownloads_require_logindownloads_grant_access_after_paymentdownloads_add_hash_to_filename
woocommerce-taxprices_include_taxtax_based_onshipping_tax_classtax_round_at_subtotaltax_classestax_display_shoptax_display_cartprice_display_suffixtax_total_display
woocommerce-shippingenable_shipping_calcshipping_cost_requires_addressship_to_destinationshipping_debug_mode
woocommerce-accountsenable_guest_checkoutenable_checkout_login_reminderenable_signup_and_login_from_checkoutenable_myaccount_registrationregistration_generate_usernameregistration_generate_passworderasure_request_removes_order_dataerasure_request_removes_download_dataallow_bulk_remove_personal_dataregistration_privacy_policy_textcheckout_privacy_policy_textdelete_inactive_accountstrash_pending_orderstrash_failed_orderstrash_cancelled_ordersanonymize_completed_orders
woocommerce-emailemail_from_nameemail_from_addressemail_header_imageemail_footer_textemail_base_coloremail_background_coloremail_body_background_coloremail_text_colormerchant_email_notifications
woocommerce-advancedcart_page_idcheckout_page_idmyaccount_page_idterms_page_idforce_ssl_checkoutunforce_ssl_checkoutcheckout_pay_endpointcheckout_order_received_endpointmyaccount_add_payment_method_endpointmyaccount_delete_payment_method_endpointmyaccount_set_default_payment_method_endpointmyaccount_orders_endpointmyaccount_view_order_endpointmyaccount_downloads_endpointmyaccount_edit_account_endpointmyaccount_edit_address_endpointmyaccount_payment_methods_endpointmyaccount_lost_password_endpointlogout_endpointapi_enabledallow_trackingshow_marketplace_suggestions
不支持的设置
一些设置不受支持,需要通过其他方式配置。以下列出这些设置
- 税率
- 配送区域
- 支付方式
- 电子邮件通知
- REST API
- Webhooks