=== Dprime Woo Thank You ===
Contributors: dprime
Tags: woocommerce, thank-you, order-confirmation, redirect
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.2
Requires Plugins: woocommerce
Stable tag: 2.2.0
License: Commercial
License URI: https://dprime.au/licence

Redirect WooCommerce customers to a dedicated order confirmation page with a secure order details shortcode.

== Description ==

Dprime Woo Thank You replaces the default WooCommerce thank-you destination with a page you choose. The plugin appends the order ID and order key to the redirect URL and provides a shortcode that displays the order confirmation, order summary, bank transfer instructions for BACS orders, and customer addresses.

* Choose any WordPress page as your thank-you destination
* Receives order-id and order-key URL parameters automatically
* Shortcode [dpwty_order_details] renders a complete order summary
* Auto-displays BACS bank transfer details when payment method is bank transfer
* Includes preset appearances and custom styling controls
* Allows disabling the built-in frontend CSS for full custom control

The plugin creates an Order Confirmation page on activation with the shortcode already placed.

== Installation ==

1. Upload and activate the plugin from WordPress Plugins.
2. Make sure WooCommerce is active.
3. Go to Woo Thank You in the admin menu.
4. Select the confirmation page in Settings.
5. Use the Appearance tab to choose whether the built-in frontend CSS should load.

== Frequently Asked Questions ==

= What shortcode should I place on the confirmation page? =

Use [dpwty_order_details].

= Can I use my own page builder layout? =

Yes. Add the shortcode to any page and select that page in the plugin settings.

= Can I disable the plugin CSS? =

Yes. In Appearance, select No CSS and save. Version 2.1.3 also prevents the frontend stylesheet handle from loading when the setting is disabled.

== Screenshots ==

1. Settings tab with confirmation page selector.
2. Appearance tab with style presets and frontend CSS control.
3. Order confirmation shortcode output.

== Changelog ==

= 2.1.4 =
* Fixed: customer names, addresses, and the billing email on the confirmation page are marked as untranslatable, so TranslatePress never rewrites personal data with a stored machine translation.

= 2.1.3 =
* Fixed the frontend CSS control so No CSS disables the stylesheet handle and removes the handle again at a late enqueue priority if another process tries to load it.
* Clarified the No CSS admin label to explain that styling should come from the page.

= 2.1.2 =
* Fixed the No CSS option reverting after save because the radio field was treated as enabled whenever it existed in the submitted form.
* Added uninstall cleanup for plugin options.

= 1.3.0 =
* Moved dpwty_render_help_tab() to includes/help.php. Override CSS class reference added.

= 1.2.5 =
* Previous release.

= 1.2.3 =
* Full Dprime design system. Settings and Help tabs. Canonical menu pattern. Plugin renamed.

= 1.2.2 =
* Previous release.

== Upgrade Notice ==

= 2.1.3 =
Fixes the frontend CSS control so selecting No CSS prevents the plugin stylesheet from loading.

= 2.1.2 =
Fixes the Appearance tab CSS toggle so selecting No CSS remains saved.
