I have a personal theme \"A\" and I want that it can also work without Woocommerce. When Woocommerce \"WC\" plugin is added I would integra
We can try a easy thing .. you want a custom post type to store your products and when WooCommerce is integrated the added products in your custom post type can work as woocommerce products ..
Check if woocommerce is installed ot not.
If not, then Create a custom post type as 'product' (similar to woocommerce).
To check whether woocommerce is active or not use this code