fix: 4 bugs - checkout virtual, login redirect, licensing, categories
1. Virtual-only checkout: - Added 'virtual' and 'downloadable' to CartController response - Checkout can now detect virtual-only carts 2. Login redirect: - Added useEffect to redirect logged-in users to /my-account 3. License generation: - Fixed meta key mismatch (_woonoow_licensing_enabled -> _licensing_enabled) 4. Product categories: - Added queryClient.invalidateQueries after creating new category - List now refreshes immediately
This commit is contained in:
@@ -96,7 +96,7 @@ class LicenseManager {
|
||||
if (!$product) continue;
|
||||
|
||||
// Check if product has licensing enabled
|
||||
$licensing_enabled = get_post_meta($product_id, '_woonoow_licensing_enabled', true);
|
||||
$licensing_enabled = get_post_meta($product_id, '_licensing_enabled', true);
|
||||
if ($licensing_enabled !== 'yes') continue;
|
||||
|
||||
// Check if license already exists for this order item
|
||||
|
||||
Reference in New Issue
Block a user