What problem does it solve?
This Skill helps you customize WooCommerce’s classic cart and classic (shortcode) checkout so custom product options and cart item data are correctly merged, displayed, validated, priced, and copied into the right order line item metadata.
Core Features & Use Cases
- Accurate cart item identity & merging: Uses cart item data stored via add-to-cart hooks so items merge only when intended.
- Proper data flow from cart to order lines: Displays custom cart fields and persists them at the correct level using order line item meta (not order-level meta).
- HPOS-safe checkout updates: Updates order line item meta and order APIs safely, avoiding direct post meta writes that break HPOS.
- Classic checkout enhancements: Adds/modifies classic checkout fields, validates posted values, and ensures correct server-side handling.
- Safe dynamic pricing & fees: Mutates prices during totals calculation without compounding, and applies fees in the correct fee hook.
Quick Start
Use the wc-cart-checkout-classic skill to ensure your custom cart option (like engraving or gift-wrap) is shown in the cart/checkout, validated, applied as a fee or price adjustment, and saved to the corresponding order line item meta.