DimDul One Page Product Checkout for WooCommerce
This guide covers installation, configuration and customization of DimDul One Page Product Checkout for WooCommerce.
1. Introduction
This plugin turns any WooCommerce product into a single-page checkout funnel. A visitor sees the product, selects options, adds to cart over AJAX and completes the embedded checkout — all without leaving the page. WooCommerce's native variation form is preserved, so swatch plugins keep working.
2. Requirements
- WordPress 6.0 or higher
- PHP 7.4 or higher
- WooCommerce 7.0 or higher
3. Installation
- Go to Plugins → Add New → Upload Plugin.
- Upload
dimdul-one-page-product-checkout.zipand click Install Now. - Click Activate.
- Make sure WooCommerce is installed and active.
dimdul-one-page-product-checkout folder into wp-content/plugins/.4. Settings
Open WooCommerce → One Page Checkout. These defaults apply whenever a shortcode attribute is omitted.
| Setting | Description |
|---|---|
| Landing template | Classic, Stacked, Detail First, Express, or Sticky Sidebar. Override per page with template="…". |
| Show product summary | Display the image/title/description column. |
| Auto-add simple products | Add one unit on load for simple products. |
| Clear cart on load | Empty the cart before rendering (single-product funnels). |
| Accent colour / hover | Button and highlight colours. |
| Add to cart button text | Custom button label. |
| Checkout heading | Heading shown above the checkout form. |
| Load bundled styles | Disable if your theme styles the layout. |
5. Shortcode
[one_page_product_checkout product_id="123"]
| Attribute | Values | Default |
|---|---|---|
product_id | integer | required |
template | classic / stacked / detail-first / express / sidebar | from settings |
clear_cart | yes / no | from settings |
auto_add_simple | yes / no | from settings |
show_product_summary | yes / no | from settings |
5b. Templates
| Slug | Layout |
|---|---|
classic | Two columns: summary left, purchase controls and checkout right. |
stacked | Single column: image, summary, purchase, checkout, description, reviews. |
detail-first | Summary and purchase on top, then description, reviews, checkout. |
express | Narrow funnel: summary, purchase, and checkout only. |
sidebar | Scrolling content with a sticky checkout card. |
6. Examples
Dedicated funnel (only this product in cart):
[one_page_product_checkout product_id="456" clear_cart="yes"]
Variable product, keep existing cart items:
[one_page_product_checkout product_id="789" show_product_summary="yes"]
Simple product with a manual quantity field:
[one_page_product_checkout product_id="321" auto_add_simple="no"]
7. Variable products
- The visitor sees the standard WooCommerce variation selector.
- Choosing options sets
variation_idandattribute_*fields. - Clicking Add to cart sends those fields over AJAX.
- The server validates the combination, stock and purchasability, then merges into any existing line.
- The checkout section appears and totals refresh.
8. Variation Swatches for WooCommerce
The plugin keeps the native variation form, so swatch plugins attach normally. If a swatch fails, open the browser network tab and confirm admin-ajax.php?action=oppcl_add_to_cart returns success with a cart_item_key.
9. Developer hooks
oppcl_load_assets — force asset loading when the shortcode is stored outside post_content (page builders):
add_filter( 'oppcl_load_assets', function ( $load, $post ) {
if ( $post && (int) $post->ID === 123 ) {
return true;
}
return $load;
}, 10, 2 );
10. Troubleshooting
| Symptom | Check |
|---|---|
| "WooCommerce is required" | Activate WooCommerce. |
| Scripts missing / checkout frozen | Shortcode stored outside post_content — use the oppcl_load_assets filter. |
| Variation add always errors | Confirm attributes match a variation; check stock; test with core dropdowns. |
| Layout looks unstyled | "Load bundled styles" is off and the theme has no matching styles — re-enable it. |
| Duplicate cart items | Use clear_cart="yes" on strict single-product landers. |
11. Support
For help, use the plugin's support forum on WordPress.org. Please include your WordPress and WooCommerce versions and any console/network errors.