fix: licensing table creation, consistent meta keys, checkout virtual detection
1. License table auto-creation: - Added ensure_tables() check on plugins_loaded - Tables created automatically if missing 2. Consistent licensing meta keys: - ProductsController now uses _woonoow_licensing_enabled - Matches LicensingModule and LicenseManager 3. Checkout virtual-only detection: - Added needs_shipping to Cart interface - Checkout uses cart.needs_shipping from WooCommerce API - Fallback to item-level virtual/downloadable check 4. Login redirect for logged-in users added previously
This commit is contained in:
@@ -20,6 +20,7 @@ export interface Cart {
|
||||
tax: number;
|
||||
shipping: number;
|
||||
total: number;
|
||||
needs_shipping?: boolean;
|
||||
coupon?: {
|
||||
code: string;
|
||||
discount: number;
|
||||
|
||||
Reference in New Issue
Block a user